IDEA-Research / DN-DETR

[CVPR 2022 Oral] Official implementation of DN-DETR
Apache License 2.0
541 stars 62 forks source link

关于“inference.py” #50

Open higher-hai opened 1 year ago

higher-hai commented 1 year ago

请问使用预测文件出现以下问题怎么解决呀?! RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument index in method wrapper__index_select)

FengLi-ust commented 1 year ago

You should put the tensor on the same device, GPU or CPU.

higher-hai commented 1 year ago

You should put the tensor on the same device, GPU or CPU.

Thank you for your reply.Your model has helped me a lot!