jiangyzy commited on
Commit
3a54e1f
1 Parent(s): e8e1c24

Update utils/gradio_utils.py

Browse files
Files changed (1) hide show
  1. utils/gradio_utils.py +1 -1
utils/gradio_utils.py CHANGED
@@ -8,7 +8,7 @@ def load_preprocess_model():
8
  batch_size_seg=5,
9
  batch_size_matting=1,
10
  # device='cuda' if torch.cuda.is_available() else 'cpu',
11
- device='cuda',
12
  seg_mask_size=640, # Use 640 for Tracer B7 and 320 for U2Net
13
  matting_mask_size=2048,
14
  trimap_prob_threshold=231,
 
8
  batch_size_seg=5,
9
  batch_size_matting=1,
10
  # device='cuda' if torch.cuda.is_available() else 'cpu',
11
+ device='cpu',
12
  seg_mask_size=640, # Use 640 for Tracer B7 and 320 for U2Net
13
  matting_mask_size=2048,
14
  trimap_prob_threshold=231,