Update app.py
Browse files
app.py
CHANGED
|
@@ -112,7 +112,7 @@ def _prog(pct: float, desc: str):
|
|
| 112 |
from sam2.sam2_image_predictor import SAM2ImagePredictor
|
| 113 |
|
| 114 |
# Build model with explicit config
|
| 115 |
-
sam2_model = build_sam2("
|
| 116 |
sam2_model.to(device)
|
| 117 |
predictor = SAM2ImagePredictor(sam2_model)
|
| 118 |
|
|
|
|
| 112 |
from sam2.sam2_image_predictor import SAM2ImagePredictor
|
| 113 |
|
| 114 |
# Build model with explicit config
|
| 115 |
+
sam2_model = build_sam2("sam2_hiera_l.yaml", checkpoint_path)
|
| 116 |
sam2_model.to(device)
|
| 117 |
predictor = SAM2ImagePredictor(sam2_model)
|
| 118 |
|