ducha-aiki / caffenet-benchmark Goto Github PK
View Code? Open in Web Editor NEWEvaluation of the CNN design choices performance on ImageNet-2012.
Evaluation of the CNN design choices performance on ImageNet-2012.
Hi, @ducha-aiki
I am trying to figure out BN implementations from the PR you test and there's no bias and shift implemented there.
I also notice that from your experiments, it seems that BN + Affine doesn't improve performance that much from the initial training stages.
And in your Caffe fork, https://github.com/ducha-aiki/caffe, there's another version of bn implementation as Caffe PR 1965, which implements shift and bias.
So may I know why such two operations is dropped in Caffe Upstream you test? Do they even hurt performance? Or what version should I choose to use?
Thanks a lot.
.
There is a 'group' param in Caffenet and Alexnet. I've googled a bit. It seams that no direct comparison between one group and two. Is it worth trying? Hope not too stupid.;-)
Thanks.
Could you please release the pre-trained GoogLeNet-128 model?
Thanks a lot!
Just a clarification question.
From ilsvrc2012, there were three data sets for the classification task: training, validation, and testing.
Did you train on only the training data, and are showing validation?
Or did you train on training+validation and are showing results on testing?
Thanks!
Suggestions and training logs from community are welcomed.
I've copied the lsuv.py script into my current caffe installation (not the one in here) and when I try to use it with PReLU units I get errors.
For LSUV:
Loading
conv_1 (128, 1, 5, 5)
conv_1 var = 0.0857792 mean = 0.19733
conv_1 var = 1.16208 mean = 0.189732
conv_1 var = 0.733266 mean = 0.193065
conv_1 var = 1.08708 mean = 0.190994
conv_1 var = 0.938934 mean = 0.191936
conv_1 var = 0.968886 mean = 0.191879
conv_1 var = 0.914341 mean = 0.192624
conv_1 var = 1.04143 mean = 0.191765
conv_1 var = 1.00926 mean = 0.191769
conv_1_rectifier (128,)
Traceback (most recent call last):
File "/home/sharpy/caffe/tools/extra/lsuv.py", line 73, in <module>
solver.net.forward(end=k)
File "/home/sharpy/caffe/tools/extra/../../python/caffe/pycaffe.py", line 124, in _Net_forward
return {out: self.blobs[out].data for out in outputs}
File "/home/sharpy/caffe/tools/extra/../../python/caffe/pycaffe.py", line 124, in <dictcomp>
return {out: self.blobs[out].data for out in outputs}
KeyError: 'conv_1_rectifier'
-- line 73 in my copy is
if 'LSUV' in init_mode:
if var_before_relu_if_inplace:
solver.net.forward(end=k) #this one
For Ortho:
Loading
conv_1 (128, 1, 5, 5)
conv_1_rectifier (128,)
Traceback (most recent call last):
File "/home/sharpy/caffe/tools/extra/lsuv.py", line 66, in <module>
weights=svd_orthonormal(v[0].data[:].shape)
File "/home/sharpy/caffe/tools/extra/lsuv.py", line 17, in svd_orthonormal
raise RuntimeError("Only shapes of length 2 or more are supported.")
RuntimeError: Only shapes of length 2 or more are supported.
Line 66 is
if 'Orthonormal' in init_mode:
weights=svd_orthonormal(v[0].data[:].shape) #it's this one
Meanwhile, I don't have any errors if I replace PReLU activation with ELU, or ReLU.
Are you editing this prototxt by hand or you can share the python code to generate it?
hi ducha-aiki,
I saw in the caffenet128_lsuv_no_lrn_BatchNormAfterReLU.prototxt file, the lr_mult of BatchNorm is 0, and there are no other layers doing scale/shift learning, so the tests are all done without scale/shift learning?
thank you
This benchmark is really awesome!
Could you, if possible, release pre-trained caffe models?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.