phoebe777777 commited on
Commit
d55530a
·
verified ·
1 Parent(s): 741e5fe

Update inference_seg.py

Browse files
Files changed (1) hide show
  1. 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():