GithubHelp home page GithubHelp logo

Actual acceleration on Resnet about ds-net HOT 2 OPEN

changlin31 avatar changlin31 commented on July 17, 2024
Actual acceleration on Resnet

from ds-net.

Comments (2)

changlin31 avatar changlin31 commented on July 17, 2024 1

Yes, it can achieve actual acceleration on ResNet. We plan to report detailed latency comparison on ResNet.

Please note that if practical acceleration on batch inference is wanted, the dynamic gate should be disabled, as dynamic mode only support sequential inference, i.e., one input at a time.

from ds-net.

lixinghe1999 avatar lixinghe1999 commented on July 17, 2024

Edited.
Seems the default cfg is "mobilenet", which can't get acceleration on cuda.

Previous question:
@changlin31
Dear author,
I just tried model, however, I don't receive actual acceleration.

I test DSNet with "largest" and "smallest", 30 warm-up and 30 test. The input data is (1, 3, 224, 224)
The latency is almost the same.
My machine: GPU3060 + CUDA 11.2 + torch 1.12.
Note that I find one line in dyn_slim_ops/DSConv2d: self.channel_choice = -1, which can prohibit the inference of mode "smallest", so I temporarily comment it. Otherwise, the smallest model can only run once.
I have tested the intermediate feature shape, my "smallest" model actually gets a smaller feature shape, however, no actual acceleration is found.

Can you give me some hints? Am I misunderstanding?

from ds-net.

Related Issues (19)

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.