Spaces:
Running
on
Zero
Running
on
Zero
Update inference_seg.py
Browse files- inference_seg.py +1 -0
inference_seg.py
CHANGED
|
@@ -24,6 +24,7 @@ def load_model(use_box=False):
|
|
| 24 |
|
| 25 |
@torch.no_grad()
|
| 26 |
def run(model, img_path, box=None, device="cpu"):
|
|
|
|
| 27 |
model.move_to_device(device)
|
| 28 |
model.eval()
|
| 29 |
with torch.no_grad():
|
|
|
|
| 24 |
|
| 25 |
@torch.no_grad()
|
| 26 |
def run(model, img_path, box=None, device="cpu"):
|
| 27 |
+
print(device)
|
| 28 |
model.move_to_device(device)
|
| 29 |
model.eval()
|
| 30 |
with torch.no_grad():
|