Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ st.title("📦 Volume Estimation using SAM Segmentation + MiDaS Depth")
|
|
| 25 |
# Load SAM and MiDaS models
|
| 26 |
@st.cache_resource
|
| 27 |
def load_models():
|
| 28 |
-
sam_checkpoint = "
|
| 29 |
sam = sam_model_registry["vit_h"](checkpoint=sam_checkpoint).to("cuda" if torch.cuda.is_available() else "cpu")
|
| 30 |
predictor = SamPredictor(sam)
|
| 31 |
|
|
|
|
| 25 |
# Load SAM and MiDaS models
|
| 26 |
@st.cache_resource
|
| 27 |
def load_models():
|
| 28 |
+
sam_checkpoint = "sam_vit_b_01ec64.pth"
|
| 29 |
sam = sam_model_registry["vit_h"](checkpoint=sam_checkpoint).to("cuda" if torch.cuda.is_available() else "cpu")
|
| 30 |
predictor = SamPredictor(sam)
|
| 31 |
|