Giter VIP home page Giter VIP logo

Comments (5)

Eric-mingjie avatar Eric-mingjie commented on May 27, 2024

It is better to train from start with sparsity. We haven't tried fine-tuning with sparsity on a pretrained model before.

To implement pruning, you just need to collect all the scaling factors in bn layers. Use model.modules() to go through all the modules.

from network-slimming.

MissyDu avatar MissyDu commented on May 27, 2024

@Eric-mingjie , always thanks for quick answer.
I have implemented InceptionV3prune.py, but found accuracy drops a lot after prune.
The trouble of InceptionV3prune.py is that it has many branchs. So it means the cfg_mask can't be read one by one in turn. My main modification is to solve this problem.

from network-slimming.

Eric-mingjie avatar Eric-mingjie commented on May 27, 2024

The significant drop in accuracy could be due to that the model is not sparse. You can analyze the magnitude of scaling factors in the models.

from network-slimming.

MissyDu avatar MissyDu commented on May 27, 2024

@Eric-mingjie ,yes. The model is not sparse enough.
One more question, druning the sparsity training, the channel_selection is necessary?

from network-slimming.

Eric-mingjie avatar Eric-mingjie commented on May 27, 2024

The use of channel_selection depends on the architecture you use and the way you want to do pruning. For VGG, no channel selection is needed. For ResNet and DenseNet, channel selection is normally needed.

However, if you use mask implementation, channel selection is not needed for any model.

from network-slimming.

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.