Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

An error occurred when run cpp_classification for ResNet #1

Closed
heagoo opened this issue Aug 30, 2016 · 5 comments
Closed

An error occurred when run cpp_classification for ResNet #1

heagoo opened this issue Aug 30, 2016 · 5 comments

Comments

@heagoo
Copy link

heagoo commented Aug 30, 2016

An error occurred when run cpp_classification for ResNet from https://github.com/KaimingHe/deep-residual-networks

./build/examples/cpp_classification/classification.bin ./ResNet-101-deploy.prototxt ./ResNet-101-model.caffemodel ./ResNet_mean.binaryproto data/ilsvrc12/synset_words.txt examples/images/cat.jpg
F0830 02:25:38.625051 18678 net.cpp:785] Check failed: target_blobs.size() == source_layer.blobs_size() (2 vs. 3) Incompatible number of blobs for layer bn_conv1
*** Check failure stack trace: ***
@ 0x7f61a2222ddd google::LogMessage::Fail()
@ 0x7f61a2224c9f google::LogMessage::SendToLog()
@ 0x7f61a2222973 google::LogMessage::Flush()
@ 0x7f61a22255be google::LogMessageFatal::~LogMessageFatal()
@ 0x7f61a27ae822 caffe::Net<>::CopyTrainedLayersFrom()
@ 0x7f61a27b49d2 caffe::Net<>::CopyTrainedLayersFromBinaryProto()
@ 0x7f61a27b4a36 caffe::Net<>::CopyTrainedLayersFrom()
@ 0x7f61a8f4d729 Classifier::Classifier()
@ 0x7f61a8f4a73b main
@ 0x7f619ee31af5 __libc_start_main
@ 0x7f61a8f4adbd (unknown)
Aborted (core dumped)

while, there is no such error for BVLC caffe.

@heagoo
Copy link
Author

heagoo commented Aug 30, 2016

btw, i use the MKL2017 engine:
USE_MKL2017_AS_DEFAULT_ENGINE := 1

@jczaja
Copy link
Contributor

jczaja commented Sep 15, 2016

Thank you very much for report of this failure. Currently model of You choice is not working with USE_MKL2017_AS_DEFAULT _ENGINE:= 1. As a temporary workaround please do not use USE_MKL2017_AS_DEFAULT_ENGINE:=1 . Use Caffe Engine. We hope to have it fixed soon. Sorry for inconvenience.

@pnoga
Copy link
Contributor

pnoga commented Oct 13, 2016

Bug has been fixed and new version of IntelCaffe was deployed.
Please check the current status.

@jdukat
Copy link

jdukat commented Oct 21, 2016

@heagoo, we will close this issue within next few days unless we hear from you that the problem still exists.

@pnoga
Copy link
Contributor

pnoga commented Oct 25, 2016

closing issue as fixed

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

No branches or pull requests

4 participants