Spaces:
Sleeping
Sleeping
Update inference_seg.py
Browse files- inference_seg.py +1 -1
inference_seg.py
CHANGED
|
@@ -27,7 +27,7 @@ def load_model(use_box=False):
|
|
| 27 |
|
| 28 |
@torch.no_grad()
|
| 29 |
def run(model, img_path, box=None, device="cpu"):
|
| 30 |
-
print("DEVICE"
|
| 31 |
model.move_to_device(device)
|
| 32 |
model.eval()
|
| 33 |
with torch.no_grad():
|
|
|
|
| 27 |
|
| 28 |
@torch.no_grad()
|
| 29 |
def run(model, img_path, box=None, device="cpu"):
|
| 30 |
+
print("DEVICE:", device)
|
| 31 |
model.move_to_device(device)
|
| 32 |
model.eval()
|
| 33 |
with torch.no_grad():
|