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

improve net config and shape mismatch error messages #2927

Merged
merged 1 commit into from
Aug 25, 2015

Conversation

jeffdonahue
Copy link
Contributor

This PR tries to improve a few unclear error messages that can be triggered from Net::Init (many of which were my fault to begin with, sorry about that). In particular many questions on caffe-users are about the error message Check failed: ShapeEquals(proto) shape mismatch (reshape not set) which occurs in the call to FromProto in CopyTrainedLayersFrom; this new message which displays the layer name and the shape of both blobs (and suggests renaming the layer if you didn't want to finetune) will hopefully help clear up some of that confusion.

@jeffdonahue jeffdonahue force-pushed the improve-net-init-error-msgs branch 7 times, most recently from e80ddb8 to 2201a94 Compare August 14, 2015 20:47
@shelhamer
Copy link
Member

These messages should help spell out issues! Thanks Jeff.

shelhamer added a commit that referenced this pull request Aug 25, 2015
improve net config and shape mismatch error messages
@shelhamer shelhamer merged commit 4092b70 into BVLC:master Aug 25, 2015
@lukeyeager
Copy link
Contributor

👍

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

Successfully merging this pull request may close these issues.

3 participants