Ask Your Question
0

Opencv_dnn >> can't load network ResNet-101

asked 2016-12-22 06:25:01 -0600

pi-null-mezon gravatar image

Hello. I have found that ResNet-101 cannot be loaded by opencv dnn module. When try to load this message appears:

[libprotobuf ERROR C:\Programming\3rdParties\opencv310\opencv_contrib\modules\dn
n\3rdparty\protobuf\sources\protobuf-3.1.0\src\google\protobuf\text_format.cc:29
8] Error parsing text-format caffe.NetParameter: 33:26: Message type "caffe.Laye
rParameter" has no field named "batch_norm_param".

OpenCV Error: Unspecified error (FAILED: ReadProtoFromTextFile(param_file, param
). Failed to parse NetParameter file: ResNet-101-deploy_augmentation.prototxt) in cv::dnn::ReadNetParamsFromTextFileOrDie, file C:\Programming\3rdParties\opencv310\opencv_contrib\mo
dules\dnn\src\caffe\caffe_io.cpp, line 1101 C:\Programming\3rdParties\opencv310\opencv_contrib\modules\dnn\src\caffe\caffe_io.cpp:1101: error: (-2) FAILED: ReadProtoFromTextFile(param_file, param). Failed to parse NetParameter file: ResNet-101-deploy_augmentation.prototxt in function cv::dnn::ReadNetParamsFromTextFileOrDie

So, it is clear that it is because: "caffe.LayerParameter" has no field named "batch_norm_param". But, what I supposed to do to solve this? Any ideas? Please, help me.

edit retag flag offensive close merge delete

Comments

I have checked the last one version of the sources. It seems that this error appears because of opencv_dnn module have no implementation for the BatchNorm layer. Maybe somebody already works on it?

pi-null-mezon gravatar imagepi-null-mezon ( 2016-12-22 07:58:26 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2017-02-20 05:20:16 -0600

pi-null-mezon gravatar image

Good news everyone! ResNet layers have been added!

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-12-22 06:25:01 -0600

Seen: 2,013 times

Last updated: Feb 20 '17