lyuwenyu / RT-DETR

[CVPR 2024] Official RT-DETR (RTDETR paddle pytorch), Real-Time DEtection TRansformer, DETRs Beat YOLOs on Real-time Object Detection. 🔥 🔥 🔥
Apache License 2.0
2.21k stars 242 forks source link

TypeError: 'NoneType' object is not iterable #188

Closed chenjiecj closed 7 months ago

chenjiecj commented 7 months ago

File "D:\edgedowload\detr-pytorch-master\nets\decode.py", line 525, in forward denoising_class, denoising_bbox_unact, attn_mask, dn_meta =get_contrastive_denoising_training_group(targets, File "D:\edgedowload\detr-pytorch-master\nets\denoising.py", line 22, in get_contrastive_denoising_training_group num_gts = [len(t['labels']) for t in targets]

chenjiecj commented 7 months ago

It's okay. I didn't send “targets” to model().