hoiliu-0801 / DNTR

A DeNoising FPN with Transformer R-CNN for Tiny Object Detection
Apache License 2.0
30 stars 2 forks source link

An error in the code #17

Open LvRuH opened 4 days ago

LvRuH commented 4 days ago

Hello, I found an error in the code while trying to train the model using the Visdrone dataset, in mmdet-dntr/mmdet/models/roi_heads/cascade_roi_head_cas_t2t_new_jit_mask.py line 411 ` ##### visdrone dataset ###

self.t2t_clshead = ModuleList([nn.Linear(128, 11) for in range(self.num_stages)])`

it should be ModuleList([nn.Linear(128*9, 11),or it will cause thr error: numel: integer multiplication overflow

hoiliu-0801 commented 4 days ago

According to the Visdrone categories, the number here should be 10+1(cls token). Maybe somewhere in the codes should be adjusted.

LvRuH commented 2 days ago

Fine,I will check it later.Thanks for your reply!