Open dgcnz opened 2 months ago
Commenting line 532 in the snippet above silences the error but results in bounding boxes with a vertical offset:
Okay, it seems that there is some padding happening somewhere that messes up predictions. If I manually resize the image to have square dimensions, then everything works as expected.
Description
Tested all
dino_eva_02_vitdet
models from here and the models withimage_size=1024
seem to be failing.Used this image from the installation tutorial.
Working:
projects/dino_eva/configs/dino-eva-02/dino_eva_02_vitdet_l_4attn_1280_lrd0p8_4scale_12ep.py
projects/dino_eva/configs/dino-eva-02/dino_eva_02_vitdet_l_8attn_1536_lrd0p8_4scale_12ep.py
projects/dino_eva/configs/dino-eva-02/dino_eva_02_vitdet_b_6attn_win32_1536_lrd0p7_4scale_12ep.py
Not working:
projects/dino_eva/configs/dino-eva-02/dino_eva_02_vitdet_l_4attn_1024_lrd0p8_4scale_12ep.py
projects/dino_eva/configs/dino-eva-02/dino_eva_02_vitdet_b_4attn_1024_lrd0p7_4scale_12ep.py
Looking at the logs, the culprit seems to be this snippet of code: https://github.com/IDEA-Research/detrex/blob/03e02cb3182112569724092fc1c6935b61d54141/projects/dino_eva/modeling/dino.py#L529-L532
Log info example
Command
Logs