lakshmi082024 commited on
Commit
876c47b
·
verified ·
1 Parent(s): 7b7575f

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. 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 = "C:/Users/Administrator/Desktop/streamlit_tl/models/sam_vit_h_4b8939.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
 
 
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