kitti-ssd icon indicating copy to clipboard operation
kitti-ssd copied to clipboard

KeyError: 'fc7_conv'

Open albertyou2 opened this issue 7 years ago • 4 comments

hi @jinfagang

when I run 'python train_ssd_kitti.py', I got this error :

Traceback (most recent call last): File "train_ssd_kitti.py", line 455, in prior_variance=prior_variance, kernel_size=3, pad=1, lr_mult=lr_mult) File "/home/sojoyoo/caffe_ssd/python/caffe/model_libs.py", line 870, in CreateMultiBoxHead num_output=num_loc_output, kernel_size=kernel_size, pad=pad, stride=1, **bn_param) File "/home/sojoyoo/caffe_ssd/python/caffe/model_libs.py", line 97, in ConvBNLayer net[conv_name] = L.Convolution(net[from_layer], num_output=num_output, File "/home/sojoyoo/caffe_ssd/python/caffe/net_spec.py", line 188, in getitem return self.getattr(item) File "/home/sojoyoo/caffe_ssd/python/caffe/net_spec.py", line 182, in getattr return self.tops[name] KeyError: 'fc7_conv'

Have you met this before?

albertyou2 avatar May 04 '17 06:05 albertyou2

hi @albertyou2

Have you solved your problem? I changed the fc7_conv into fc7 and it worked well. But my problem is that my training loss is always be zero. Have you kept doing on this?

wenchima avatar May 18 '17 03:05 wenchima

@wenchima No , I didn't solve this. I 'm now switch to caffe_ssd .

albertyou2 avatar May 19 '17 07:05 albertyou2

Facing the same issue. Anyone solved it yet?

nattari avatar Nov 18 '17 08:11 nattari

~~Same error, no luck~~

Looking at https://github.com/weiliu89/caffe/blob/ssd/examples/ssd/ssd_pascal.py and comparing, they use fc7 instead of fc7_conv. Make the change and the script will run without error

ss32 avatar Feb 01 '18 15:02 ss32