Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colab tutoral doesn't work #312

Open
podturkinalex opened this issue Dec 12, 2022 · 0 comments
Open

Colab tutoral doesn't work #312

podturkinalex opened this issue Dec 12, 2022 · 0 comments

Comments

@podturkinalex
Copy link

podturkinalex commented Dec 12, 2022

After this code:
results_per_input = utils.decode_results(detections_batch) best_results_per_input = [utils.pick_best(results, 0.40) for results in results_per_input]

I've got this error:

`RuntimeError Traceback (most recent call last)
in
----> 1 results_per_input = utils.decode_results(detections_batch)
2 best_results_per_input = [utils.pick_best(results, 0.40) for results in results_per_input]

2 frames
~/.cache/torch/hub/NVIDIA_DeepLearningExamples_torchhub/PyTorch/Detection/SSD/ssd/utils.py in decode_single(self, bboxes_in, scores_in, criteria, max_output, max_num)
219 _, max_ids = scores_out.sort(dim=0)
220 max_ids = max_ids[-max_output:]
--> 221 return bboxes_out[max_ids, :], labels_out[max_ids], scores_out[max_ids]
222
223

RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu)`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant