dog-qiuqiu / MobileNet-Yolo

MobileNetV2-YoloV3-Nano: 0.5BFlops 3MB HUAWEI P40: 6ms/img, YoloFace-500k:0.1Bflops 420KB:fire::fire::fire:
Other
1.72k stars 278 forks source link

Cannot convert spp model by darknet2Caffe #12

Open stereomatchingkiss opened 4 years ago

stereomatchingkiss commented 4 years ago

OS : ubuntu18.04

Follow the instructions, install and build the caffe, able to convert nano, lite, the error messages are

Traceback (most recent call last):
  File "darknet2caffe.py", line 443, in <module>
    darknet2caffe(cfgfile, weightfile, protofile, caffemodel)
  File "darknet2caffe.py", line 8, in darknet2caffe
    net_info = cfg2prototxt(cfgfile)
  File "darknet2caffe.py", line 309, in cfg2prototxt
    bottom2 = topnames[prev_layer_id2]
KeyError: 126
dog-qiuqiu commented 4 years ago

你是否修改过模型的cfg,是否直接转我提供的模型报的错吗?

stereomatchingkiss commented 4 years ago

你是否修改过模型的cfg,是否直接转我提供的模型报的错吗?

是的,直接转换,没有修改过cfg