Coder Social home page Coder Social logo

Comments (10)

yonghenglh6 avatar yonghenglh6 commented on May 30, 2024 4

@ryusaeba
The slight difference comes from the blas algorithm. I did not employ the blas lib, while the original conv layer did.
I assume the blas algorithm sacrifice slight precision to get better performance, because the depthwise outputs matches my handcraft computation.

from depthwiseconvolution.

ONLY-VEDA avatar ONLY-VEDA commented on May 30, 2024

He already implement the cpu version,you can find that in code.

from depthwiseconvolution.

mychina75 avatar mychina75 commented on May 30, 2024

But looks like cpu version does not optimized for depthwise conversion.

from depthwiseconvolution.

yonghenglh6 avatar yonghenglh6 commented on May 30, 2024

I'm sorry for uncertainty about this.
It's a tough work and I am right busy on other work.

from depthwiseconvolution.

ryusaeba avatar ryusaeba commented on May 30, 2024

Hi @yonghenglh6
Can we use your cpp/hpp/cu files to load MobileNet you pasted as pretrained weight to do finetune work? I have this question is because when we update conv to depthwsie, caffe still can load the pretrained weight? Or caffe base on layer {name} to load the pretrained weight?

from depthwiseconvolution.

ryusaeba avatar ryusaeba commented on May 30, 2024

I check the website http://caffe.berkeleyvision.org/gathered/examples/finetune_flickr_style.html and saw the following statement. "If we provide the weights argument to the caffe train command, the pretrained weights will be loaded into our model, matching layers by name."
Therefore, I assume your answer is correct. If I am wrong, please correct me. Thanks!

from depthwiseconvolution.

yonghenglh6 avatar yonghenglh6 commented on May 30, 2024

@ryusaeba Yes, that's why I use the original conv_param instead of new special param. You can just change the type without compatible price.

from depthwiseconvolution.

ryusaeba avatar ryusaeba commented on May 30, 2024

@yonghenglh6 Thanks! I have got all pass message by using check.py. Then I apply DepthWiseConvlution on https://github.com/shicai/MobileNet-Caffe inference path, the TOP-1 result (accuracy) is the same but I get slight difference on loss. I assume the loss will be the same. Do you have any idea about this?

from depthwiseconvolution.

libra7 avatar libra7 commented on May 30, 2024

hello ,do you implement the DepthwiseConvolutionLayer for CPU?

from depthwiseconvolution.

sunjunlishi avatar sunjunlishi commented on May 30, 2024

.....wait

from depthwiseconvolution.

Related Issues (20)

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.