Spaces:
Runtime error
Runtime error
Update gradio_app.py
Browse files- gradio_app.py +1 -1
gradio_app.py
CHANGED
|
@@ -58,7 +58,7 @@ if not hasattr(Image, 'Resampling'):
|
|
| 58 |
|
| 59 |
def sam_init():
|
| 60 |
model = SamModel.from_pretrained("facebook/sam-vit-huge").to(device=f"cuda:{_GPU_ID}")
|
| 61 |
-
processor = SamProcessor.from_pretrained("facebook/sam-vit-huge")
|
| 62 |
return model, processor
|
| 63 |
|
| 64 |
def sam_segment(sam_model, sam_processor, input_image, *bbox_coords):
|
|
|
|
| 58 |
|
| 59 |
def sam_init():
|
| 60 |
model = SamModel.from_pretrained("facebook/sam-vit-huge").to(device=f"cuda:{_GPU_ID}")
|
| 61 |
+
processor = SamProcessor.from_pretrained("facebook/sam-vit-huge")
|
| 62 |
return model, processor
|
| 63 |
|
| 64 |
def sam_segment(sam_model, sam_processor, input_image, *bbox_coords):
|