IDEA-Research / DINO

[ICLR 2023] Official implementation of the paper "DINO: DETR with Improved DeNoising Anchor Boxes for End-to-End Object Detection"
Apache License 2.0
2.1k stars 230 forks source link

Question about a line in the dino forward code #200

Open RomStriker opened 1 year ago

RomStriker commented 1 year ago

Hi,

There is a line in the dino forward code hs[0] += self.label_enc.weight[0,0]*0.0. The comment above it says "# In case num object=0" what does that mean and what is this line doing?

RomStriker commented 1 year ago

Is this leftover code from something else, because it just adds 0 to hs[0]?