iQua / M-DGT

The source code of the CVPR22 paper titled "Multi-Modal Dynamic Graph Transformer for Visual Grounding".
19 stars 2 forks source link

IndexError: tuple index out of range #1

Open freedom6927 opened 2 years ago

freedom6927 commented 2 years ago

when I run refcoco_train.py. It accur IndexError: tuple index out of range on the code pred_rois_feas = main_model.an_roi_aligner(normed_transformed_boxes) of train.py. Could you fix it ?

almumujin commented 2 years ago

I had the same problem。

HoBeom commented 2 years ago

https://github.com/iQua/M-DGT/blob/070020eeefc4410781c172cef77ef31a3018b063/models/MDGT_framework.py#L213

also ss is not assigned.Maybe we should change it to ws.

HoBeom commented 2 years ago

https://github.com/pytorch/vision/blob/c4c28dff8a68fae20eb7f2a82051ef7a388353bd/torchvision/ops/poolers.py#L280

I think we should use 5 or [5, 5]. https://github.com/iQua/M-DGT/blob/070020eeefc4410781c172cef77ef31a3018b063/f30k_eval.py#L65

worker121 commented 1 year ago

Hello? I met the same question, when i run f30k_train.py, It accur IndexError: tuple index out of range. Is there any way to solve it?