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 #80

Open Zzz730 opened 2 years ago

Zzz730 commented 2 years ago

Hello.Sorry for troubling you. When I run python train_meta.pycfg/metayolo.data cfg/darknet_dynamic.cfg cfg/reweighting_net.cfg darknet19_448.conv.23,a TypeError occured: TypeError: conv2d() received an invalid combination of arguments - got (Tensor, Parameter, NoneType, tuple, tuple, tuple, int), but expected one of:

ataftaf commented 2 years ago

Hello, Did you manage to fix it? I am facing the same problem :( Thanks,

gusdhg commented 2 years ago

Hello,I met the same problem,did you fix it?

mmtmmt2 commented 1 year ago

hello,i also met the problem

zhanjunyao commented 1 year ago

hello, the same problem, how to solve?

HeuristicLU commented 1 year ago

change darknet_meta.py
226 to: pad = (kernel_size-1)//2 if is_pad else 0 This will work successfully.

GgJbMy0320 commented 1 year ago

I changed pad=(kernel_size-1)/2 to pad=int((kernel_size-1)/2) if is_pad else 0