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

Support batch normalization #63

Open
daylen opened this issue Apr 12, 2016 · 15 comments
Open

Support batch normalization #63

daylen opened this issue Apr 12, 2016 · 15 comments

Comments

@daylen
Copy link

daylen commented Apr 12, 2016

Batch Normalization was added to Caffe in October 2015. (See BVLC/caffe#3229 and BVLC/caffe#3299). The caffe.proto file in this repo is from April 2015, so it doesn't know about Batch Normalization and can't load newer model definition files.

@szagoruyko
Copy link
Owner

thanks, are there models in caffe format with batchnorm available? should be quick to add, just need a test. resnets won't work.

@ghost
Copy link

ghost commented Apr 17, 2016

@szagoruyko You're saying that you cannot use resnets for this test, or you're saying resnets won't work till you get this test working?

@szagoruyko
Copy link
Owner

@JoshPowell resnets have non-sequential structure which loadcaffe doesn't support now

@nhynes
Copy link
Contributor

nhynes commented Aug 10, 2016

@JoshPowell you might want to give [caffegraph](https://github.com/nhynes/caffegraph) a try. It's not yet as fully featured as loadcaffe (it's missing a few modules), but it will load your resnet just fine.

@wuhuo714
Copy link

Hi, could loadcaffe load models in caffe format with batch normalization,now?

@szagoruyko
Copy link
Owner

@wuhuo714 no

@wuhuo714
Copy link

@szagoruyko Will batchnorm be available soon?

@szagoruyko
Copy link
Owner

@wuhuo714 don't have time unfortunately

@wuhuo714
Copy link

wuhuo714 commented Oct 11, 2016

@szagoruyko Thanks a lot,anyway!

@wuhuo714
Copy link

Hi,@szagoruyko,if my caffemodel has batchnorm layers which loadcaffe can not recognize, can the following layers like Relu get its correponding weights?It has confused me a lot.

@szagoruyko
Copy link
Owner

@wuhuo714 no, it will ignore layers it can't recognize

@wuhuo714
Copy link

Although the layers it can't recognize are ignored, will the weights of these unrecognizable layers be used in the following layers it recoginze?
Is that the reason why the following layers like conv can not get their corresponding weights?

@szagoruyko
Copy link
Owner

@wuhuo714 weights of unrecognized layers will not be loaded at all

@wuhuo714
Copy link

@szagoruyko ok, it's very kind of you to answer my doubts!

@Fourure
Copy link

Fourure commented Jan 12, 2017

Hi @szagoruyko,
First thank you for your work, your package is very useful for me (and probably for lot of peoples).
I'm also interested by loading a caffe model with batch normalization. Is it still not available ?

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

5 participants