juxuan27 commited on
Commit
a56355e
·
verified ·
1 Parent(s): 884584a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)]