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

这是一个DETR-pytorch的仓库,可以训练自己的数据集

Results 17 detr-pytorch issues
Sort by recently updated
recently updated
newest added

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 这是怎么回事呢?

毕导您好, 我在参考以往您YOLO系列,其中的注意力热图可视化模块(mode="heatmap")并向DETR模型中手动加入heatmap模块时,遇到如下问题: ![R8W$96XYB03T_MS~ SUMMC3](https://user-images.githubusercontent.com/79405447/232177773-63980374-11f7-4a66-95b5-e48be7ebcd5a.png) 请问,我应该如何将 output的shape 由 [batch_size, 100, num_classes + 1],[batch_size, 100, 4] 转为为YOLO系列(如yolov4-tiny)中的 [b, c, h, w],如下图所示。 ![8A~62J ~YUJN(CF~QXCC )D](https://user-images.githubusercontent.com/79405447/232177894-e14fc6e8-bbdf-4dc2-b4eb-e9956bb04cde.png)

![image](https://user-images.githubusercontent.com/110646950/226831999-3b956cc0-87ef-4343-a4c2-ed586610ca90.png) 在训练到第10个epoch时,进行mAP评估出现上述问题。

![L0F}GEC0ABM%P`0HI@ J{BC](https://user-images.githubusercontent.com/44053847/212519918-4d7bdfab-f12f-44bf-95dd-0a2cc09614a1.png) B导过年好,我抽取了VOC数据集中的4个类,用这个数据集训练过其他检测器都没有问题,但您DETR报了这个错,请问是什么问题呀

VOC2007数据集上跑了50多个epoch,Total Loss和Val Loss数值一直保持在4点多不下降

RuntimeError: Error(s) in loading state_dict for DETR: size mismatch for class_embed.weight: copying a param with shape torch.Size([6, 256]) from checkpoint, the shape in current model is torch.Size([92, 256]). size mismatch...