HDETR / H-Deformable-DETR

[CVPR2023] This is an official implementation of paper "DETRs with Hybrid Matching".
MIT License
261 stars 28 forks source link

There have a bug? #9

Closed HuKai97 closed 1 year ago

HuKai97 commented 1 year ago

Traceback (most recent call last): File "I:/H-Deformable-DETR/main.py", line 537, in main(args) File "I:/H-Deformable-DETR/main.py", line 460, in main train_stats = train_one_epoch( File "I:\H-Deformable-DETR\engine.py", line 96, in train_one_epoch loss_dict = train_hybrid( File "I:\H-Deformable-DETR\engine.py", line 48, in train_hybrid loss_dict_one2many = criterion(outputs_one2many, multi_targets) File "H:\miniconda\envs\H-deformable-detr\lib\site-packages\torch\nn\modules\module.py", line 889, in _call_impl result = self.forward(*input, *kwargs) File "I:\H-Deformable-DETR\models\deformable_detr.py", line 478, in forward indices = self.matcher(outputs_without_aux, targets) File "H:\miniconda\envs\H-deformable-detr\lib\site-packages\torch\nn\modules\module.py", line 889, in _call_impl result = self.forward(input, **kwargs) File "I:\H-Deformable-DETR\models\matcher.py", line 104, in forward C = C.view(bs, num_queries, -1).cpu() RuntimeError: cannot reshape tensor of 0 elements into shape [1, 0, -1] because the unspecified dimension size -1 can be any value and is ambiguous

JiaDingCN commented 1 year ago

Hi, thank you for your feedback!

HuKai97 commented 1 year ago

ok,I found the error. I input a bad command. Thank you!

ymhlq commented 1 year ago

Could you tell me how to resolve this problem?I met the same question like this.