Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ import random
|
|
17 |
import spaces
|
18 |
import gradio as gr
|
19 |
|
20 |
-
mobile_sam = sam_model_registry['vit_h'](checkpoint='data/ckpt/sam_vit_h_4b8939.pth')
|
21 |
mobile_sam.eval()
|
22 |
mobile_predictor = SamPredictor(mobile_sam)
|
23 |
colors = [(255, 0, 0), (0, 255, 0)]
|
|
|
17 |
import spaces
|
18 |
import gradio as gr
|
19 |
|
20 |
+
mobile_sam = sam_model_registry['vit_h'](checkpoint='data/ckpt/sam_vit_h_4b8939.pth').to("cuda")
|
21 |
mobile_sam.eval()
|
22 |
mobile_predictor = SamPredictor(mobile_sam)
|
23 |
colors = [(255, 0, 0), (0, 255, 0)]
|