Spaces:
Running
on
Zero
Running
on
Zero
Update utils/gradio_utils.py
Browse files- 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='
|
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,
|