Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yolov3-spp.cfg转为caffe的时候报错:Error parsing text-format caffe.NetParameter: 2447:14: Expected integer. #9

Open
yll1 opened this issue May 20, 2020 · 2 comments

Comments

@yll1
Copy link

yll1 commented May 20, 2020

你好,非常感谢您分享这个方法。用您的方法,我成功的将yolov3.cfg 和yolov3.weights转为对应的caffe文件。但是我在转换yolov3-spp.cfg 时,出错了。
我的系统是ubuntu16.4,cuda10,python3.5.
我运行的转换命令如下:
python darknet2caffe.py cfg/yolov3-spp.cfg weights/yolov3-spp.weights 16/yolov3-spp.prototxt 16/yolov3-spp.caffemodel
出的错误如下:

unknow layer type yolo 
[libprotobuf ERROR google/protobuf/text_format.cc:274] Error parsing text-format caffe.NetParameter: 2447:14: Expected integer.
WARNING: Logging before InitGoogleLogging() is written to STDERR
F0520 14:06:03.818563 26556 upgrade_proto.cpp:90] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: 16/yolov3-spp.prototxt
*** Check failure stack trace: ***
已放弃 (核心已转储)

这个是生成的yolov3-spp.prototxt文件的第2447:14行,如下所示。



layer {
    bottom: "layer78-conv"
    top: "layer78-conv"
    name: "layer78-act"
    type: "ReLU"
    relu_param {
        negative_slope: 0.1
    }
}
layer {
    bottom: "layer78-conv"
    top: "layer79-maxpool"
    name: "layer79-maxpool"
    type: "Pooling"
    pooling_param {
        stride: 1
        pool: MAX
        kernel_size: 5
        pad: 2.0 ##这个是2447行,这一行报错,但是我对比了您给出的yolov3-spp.prototxt文件没有发现有什么不同。
    }
}
layer {
    bottom: "layer78-conv"
    top: "layer80-route"
    name: "layer80-route"
    type: "Concat"
}
layer {
    bottom: "layer80-route"
    top: "layer81-maxpool"
    name: "layer81-maxpool"
    type: "Pooling"
    pooling_param {
        stride: 1
        pool: MAX
        kernel_size: 9
        pad: 4.0
    }
}

这个问题能帮忙看看怎么解决吗?非常感谢.

@yll1 yll1 changed the title yolov3-spp.cfg convert error yolov3-spp.cfg转为caffe的时候报错:Error parsing text-format caffe.NetParameter: 2447:14: Expected integer. May 21, 2020
@becauseofAI
Copy link
Contributor

becauseofAI commented Jun 28, 2020

@yll1 @ChenYingpeng
We have fixed the bug with PR.

@yll1
Copy link
Author

yll1 commented Jul 22, 2020

@yll1 @ChenYingpeng
We have fixed the bug with PR.

thank you,I'll try it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants