Giter Site home page Giter Site logo

blackfeather-wang / gfnet-pytorch Goto Github PK

View Code? Open in Web Editor NEW
180.0 5.0 29.0 6.23 MB

A general framework for inferring CNNs efficiently. Reduce the inference latency of MobileNet-V3 by 1.3x on an iPhone XS Max without sacrificing accuracy.

License: Apache License 2.0

Python 82.10% C 17.90%

gfnet-pytorch's People

Contributors

blackfeather-wang 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

gfnet-pytorch's Issues

How do you plot the MobileNet-V3,EfficientNet,etc inFigure4

Thanks for your great work which inspires me a lot.
I understand the process of budgeted batch classification, you set a threshold to every classifier, so you can calcuate the FLOPs via different stages with a rate. But in the baseline in figure4 just like MobileNet-V3,EfficientNet, how do you get the result of multi flops with different accuracy. You esemble them with early-exit? or other settings? Thank you.

How to set flops in inference.py

I am interested in your project and your paper.
I find flops = checkpoint['flops'] in inference.py. But when I train a new model by myself, I couldn't find 'flops' during the process of saving checkpoint.
I think I can set this parameter manually. But what should I based on, if I want to set this parameter manually?
Looking forward to your reply.

老哥,我在跑你代码的时候,看到了inference.py里有个flops = checkpoint['flops'],但是,我看了训练和保存模型代码,这些部分并没有设定这个flops,我就想在inference过程里手动设定一下,但是我应该按啥标准来设定这个列表呀?期待你的回复。

Missing License

Thank you for sharing your code with the community.

Please consider adding an open-source license to the repository.

Thanks.

Where does your 'dynamic_threshold' come from?

I find you have dynamic_threshold = checkpoint['dynamic_threshold '] in inference.py and this code is necessary when eval_mode=1. But where does 'dynamic_threshold' come from? You did not save this value when you saved you checkpoint.

very nice work!

very great work,great paper ,l have a question just is for example,in first layer Classifier fc,l know fc is RNN,but l dont know what is the fc to next fc pass through h1C,thanks,vevy nice!

请问为什么不训练某些特定prime model

image

您好,非常感谢您代码的分享,我想训练一个轻量级的模型,比如mobilenetv3_small_100,但并没有提供预训练模型。如果prime model因为with torch.no_grad()而无法更新网络,效果应该会受到影响。期待您的回复!

Test Code

Hello,
Thanks for your great work, it's a really fascinating
Can you release the code for visualization ? I mean how can we see the sequence of patches in network ?

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.