Spaces:
Runtime error
Runtime error
Commit
·
f944c1e
1
Parent(s):
057f3bb
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,8 +44,8 @@ def segment_image(input_image, selected_model):
|
|
| 44 |
for result in results:
|
| 45 |
boxes = result.boxes
|
| 46 |
bbox = boxes.xyxy.tolist()[0]
|
| 47 |
-
sam_checkpoint = "
|
| 48 |
-
model_type = "
|
| 49 |
sam = sam_model_registry[model_type](checkpoint=sam_checkpoint, map_location=torch.device('cpu'))
|
| 50 |
|
| 51 |
#sam_checkpoint = "medsam_vit_b.pth"
|
|
|
|
| 44 |
for result in results:
|
| 45 |
boxes = result.boxes
|
| 46 |
bbox = boxes.xyxy.tolist()[0]
|
| 47 |
+
sam_checkpoint = "medsam_vit_b.pth"
|
| 48 |
+
model_type = "vit_b"
|
| 49 |
sam = sam_model_registry[model_type](checkpoint=sam_checkpoint, map_location=torch.device('cpu'))
|
| 50 |
|
| 51 |
#sam_checkpoint = "medsam_vit_b.pth"
|