spdraptor commited on
Commit
ed51f1c
·
1 Parent(s): e003fb9

fix/try sam

Browse files
modules/__pycache__/masking_module.cpython-310.pyc CHANGED
Binary files a/modules/__pycache__/masking_module.cpython-310.pyc and b/modules/__pycache__/masking_module.cpython-310.pyc differ
 
modules/masking_module.py CHANGED
@@ -31,7 +31,7 @@ def load_sam_image_model(
31
  config: str = SAM_CONFIG,
32
  checkpoint: str = SAM_CHECKPOINT
33
  ) -> SAM2ImagePredictor:
34
- model = build_sam2(config, checkpoint, device=device)
35
  return SAM2ImagePredictor(sam_model=model)
36
 
37
 
 
31
  config: str = SAM_CONFIG,
32
  checkpoint: str = SAM_CHECKPOINT
33
  ) -> SAM2ImagePredictor:
34
+ model = build_sam2(config, checkpoint)
35
  return SAM2ImagePredictor(sam_model=model)
36
 
37