IDEA-Research / DN-DETR

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

RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! #42

Open 94268 opened 2 years ago

94268 commented 2 years ago

I get the following error using the inference.py code: RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! When I debug, I get the following result:input = {devic:'cuda:0'},weight = device : cpu I look forward to answering my questions at your convenience. Thank you very much!