Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
|
@@ -14,7 +14,7 @@ st.title("Volume Estimation using SAM Segmentation + MiDaS Depth")
|
|
| 14 |
# Load SAM and MiDaS models
|
| 15 |
@st.cache_resource
|
| 16 |
def load_models():
|
| 17 |
-
sam_checkpoint = "
|
| 18 |
sam = sam_model_registry["vit_h"](checkpoint=sam_checkpoint).to("cuda" if torch.cuda.is_available() else "cpu")
|
| 19 |
predictor = SamPredictor(sam)
|
| 20 |
|
|
|
|
| 14 |
# Load SAM and MiDaS models
|
| 15 |
@st.cache_resource
|
| 16 |
def load_models():
|
| 17 |
+
sam_checkpoint = "sam_vit_b_01ec64.pth"
|
| 18 |
sam = sam_model_registry["vit_h"](checkpoint=sam_checkpoint).to("cuda" if torch.cuda.is_available() else "cpu")
|
| 19 |
predictor = SamPredictor(sam)
|
| 20 |
|