Git Product home page Git Product logo

caffenet-benchmark's People

Contributors

blgene avatar dereyly avatar ducha-aiki avatar ibmua avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

caffenet-benchmark's Issues

EltAffine Functionality

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.

.

What about group in Caffenet and Alexnet

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.

Question about your log loss benchmarks

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!

What I will test next

  • Continue random walk on ResNets - to understand how to train them properly. There is definitely somewhere problem I cannot see :(
  • Pooling: AVG-pooling caffenet Generalizing Pooling Functions in Convolutional Neural Networks: Mixed, Gated, and Tree http://arxiv.org/abs/1509.08985 -- all three from paper, thanks authors for code.
  • Regularization: weight decay values , L1\L2 weights decay, dropout rates.
  • Freeze conv structure and play with fc6-fc8 classifier. Maxout? More layers? Convolution? Inspired by http://arxiv.org/abs/1504.06066, but in end-to-end style.
  • Solvers: default caffenet + ADAM\RMSProp\ Nesterov\ "poly" policy
  • BatchNorm for blocks of layers, not each.
    -For fully convolutional nets, what is better - avg pool on features, then classifier, or other way round</
  • SqueezeNet https://github.com/DeepScale/SqueezeNet
  • (very future) how best choices stacks? I.e. BN+20% dropout + best activation + best solver + ...

Suggestions and training logs from community are welcomed.

LSUV/Ortho with PReLU

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.

Prototxt python code

Are you editing this prototxt by hand or you can share the python code to generate it?

questions about BatchNorm usage

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.