bingykang / Fewshot_Detection

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

TypeError: conv2d() received an invalid combination of arguments #86

Open yomik-js opened 1 year ago

yomik-js commented 1 year ago

Hello, when I run the code, I found this problem. I think it might be because I'm using python3 and I'm causing the problem. So I modified the definition of pad in the def create_network() in the Class Darknet(nn.Module). Change it to "//",such as pad = (kernel_size-1)//2 if is_pad else 0 This will work successfully.

STSTERANDMOMO commented 1 year ago

I did it as you said,but it didn't work.