-
Notifications
You must be signed in to change notification settings - Fork 544
Open
Description
Hello
I'm trying to use this repo to run live demo to use mobielnet-ssd-v2.
I tried to run python run_ssd_live_demo.py mb2-ssd-lite models/mb2-ssd-lite-mp-0_686.pth models/voc-model-labels.txt
.
I got this error as output
$ python run_ssd_live_demo.py mb2-ssd-lite models/mb2-ssd-lite-mp-0_686.pth models/voc-model-labels.txt
Traceback (most recent call last):
File "run_ssd_live_demo.py", line 70, in <module>
boxes, labels, probs = predictor.predict(image, 10, 0.4)
File "/home/dai_guard/Workspaces/apps/pytorch-ssd/vision/ssd/predictor.py", line 37, in predict
scores, boxes = self.net.forward(images)
File "/home/dai_guard/Workspaces/apps/pytorch-ssd/vision/ssd/ssd.py", line 93, in forward
locations, self.priors, self.config.center_variance, self.config.size_variance
File "/home/dai_guard/Workspaces/apps/pytorch-ssd/vision/utils/box_utils.py", line 108, in convert_locations_to_boxes
locations[..., :2] * center_variance * priors[..., 2:] + priors[..., :2],
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!
-
Environments
OS: Ubuntu 18.04
GPU: NVIDIA GeForce RTX 2070 SUPER
DRIVER: 515.65.01
CUDA: 11.6 -
Dependecies
torch==1.10.2
torchaudio==0.10.1
torchvision==0.11.2
opencv-python==4.6.0.66
Metadata
Metadata
Assignees
Labels
No labels