detr-pytorch icon indicating copy to clipboard operation
detr-pytorch copied to clipboard

运行报错

Open ChristmasLee opened this issue 1 year ago • 5 comments

b导,我在跑您的detr代码时,训练10个epoch没问题,但是在每十个epoch计算一次mAP的时候报错: File "/opt/data/private/detr/utils/utils_bbox.py", line 31, in forward boxes = boxes * scale_fct[:, None, :] RuntimeError: expected device cuda:0 and dtype Float but got device cuda:0 and dtype Long 这是怎么回事呢?

ChristmasLee avatar Mar 08 '23 02:03 ChristmasLee