bingykang / Fewshot_Detection

Few-shot Object Detection via Feature Reweighting
https://arxiv.org/abs/1812.01866
529 stars 112 forks source link

IndexError: The shape of the mask [845] at index 0 does not match the shape of the indexed tensor [5, 13, 13] at index 0 #61

Open zoufeng2416 opened 3 years ago

zoufeng2416 commented 3 years ago

When I run the train_meta.py . I meet this error .if anyone can help me?

MartinYYYYan commented 3 years ago

got same error

MartinYYYYan commented 3 years ago

When I run the train_meta.py . I meet this error .if anyone can help me? @zoufeng2416 try this code on line70 conf_mask[b][torch.reshape(cur_ious, (nA, nH, nW)) > sil_thresh] = 0

HeuristicLU commented 1 year ago

When I run the train_meta.py . I meet this error .if anyone can help me? @zoufeng2416 try this code on line70 conf_mask[b][torch.reshape(cur_ious, (nA, nH, nW)) > sil_thresh] = 0

赞赞赞

zoufeng2416 commented 1 year ago

Thank you. Now i don't use this code.

---Original--- From: @.> Date: Mon, Mar 13, 2023 20:26 PM To: @.>; Cc: @.**@.>; Subject: Re: [bingykang/Fewshot_Detection] IndexError: The shape of the mask[845] at index 0 does not match the shape of the indexed tensor [5, 13, 13] atindex 0 (#61)

When I run the train_meta.py . I meet this error .if anyone can help me? @zoufeng2416 try this code on line70 conf_mask[b][torch.reshape(cur_ious, (nA, nH, nW)) > sil_thresh] = 0

赞赞赞

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>