lakshmi082024 commited on
Commit
142fc35
·
verified ·
1 Parent(s): f9933e5

Update app.py

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