MogensR commited on
Commit
4ea9747
·
1 Parent(s): 41938cc

Rename hair_segmentation.py to processing/segmentation/hair_segmentation.py

Browse files
hair_segmentation.py → processing/segmentation/hair_segmentation.py RENAMED
@@ -5,7 +5,7 @@
5
  This module provides high-quality hair segmentation for video processing
6
  using SAM2 + MatAnyone pipeline with comprehensive error handling and fallbacks.
7
 
8
- Author: Your Project
9
  License: MIT
10
  """
11
 
@@ -230,6 +230,10 @@ def _process_hf_api(self, image_path: str, trimap_path: str) -> np.ndarray:
230
  logger.error(f"HF API processing failed: {e}")
231
  raise
232
 
 
 
 
 
233
  def get_model_name(self) -> str:
234
  return "MatAnyone"
235
 
 
5
  This module provides high-quality hair segmentation for video processing
6
  using SAM2 + MatAnyone pipeline with comprehensive error handling and fallbacks.
7
 
8
+ Author: BackgroundFX Pro
9
  License: MIT
10
  """
11
 
 
230
  logger.error(f"HF API processing failed: {e}")
231
  raise
232
 
233
+ def _process_local(self, image_path: str, trimap_path: str) -> np.ndarray:
234
+ """Process locally - placeholder for implementation"""
235
+ raise NotImplementedError("Local MatAnyone processing not implemented")
236
+
237
  def get_model_name(self) -> str:
238
  return "MatAnyone"
239