joe-siyuan-qiao / DetectoRS

DetectoRS: Detecting Objects with Recursive Feature Pyramid and Switchable Atrous Convolution
Apache License 2.0
1.14k stars 176 forks source link

The size of 'out' and 'rfp_feat' is not match #60

Open sunpeng96 opened 4 years ago

sunpeng96 commented 4 years ago

Thanks for your error report and we appreciate it a lot.

in resnet.py 305 out = out + rfp_feat

The size of 'out' and 'rfp_feat' is not match

Through debugging, I found that the problem lies in resnet.py lines of 607 RFP forward(). x = layer.rfp forward(x, rfp In feat), layer does not operate on img, resulting in x is tensor(img) in this statement. Finally, in the RFP In forward (), lead to The size of 'out' and 'rfp_feat' is not match.

In fact, I didn't make any changes to the program. I just called your resnet.py in my program.

I don't know if it's a version problem? We look forward to your reply.

InkedQQ截图20200724203638_LI

QQ截图20200724203534

joe-siyuan-qiao commented 4 years ago

Hi @sunpeng96

If the size doesn't match, it's likely that your input size does not satisfy the requirement of the backbone. You can start debugging from this.