Giter VIP home page Giter VIP logo

Comments (4)

HIT-cwh avatar HIT-cwh commented on August 18, 2024

Thanks for your issue. Is the order of the channel-cfgs in step 4 the same as that of algorithm.channel_cfg in step 3?

from mmrazor.

priscillapan avatar priscillapan commented on August 18, 2024

Thanks for your issue. Is the order of the channel-cfgs in step 4 the same as that of algorithm.channel_cfg in step 3?

Yes. the channel-cfgs in step 4 is the same as that of algorithm.channel_cfg in step 3, the same file.

python -m torch.distributed.launch --nproc_per_node=8 ./tools/mmcls/train_mmcls.py
configs/pruning/autoslim/autoslim_mbv2_subnet_8xb256_in1k.py
--cfg-options algorithm.channel_cfg=/root/work/mmrazor/work_dirs/autoslim_mbv2_search_8xb1024_in1k/subnet_199761362.yaml
--launcher pytorch

By the way, for step3 if 'algorithm.channel_cfg' is 3 files which is the same as 'channel-cfgs' in step 4, that's all right.
But if 'algorithm.channel_cfg' is only 1 file which is the same as 'channel-cfgs' in step 4, the test result in step 5 is wrong.

from mmrazor.

HIT-cwh avatar HIT-cwh commented on August 18, 2024

I'm a little confused. Maybe you do not need to split checkpoint when you only retrain one subnet('algorithm.channel_cfg' is only 1 file). Only when you retrain multiple subnets together (just like autoslim), you need to split the checkpoint before you test subnets with different flops.

By the way, experiments show that replacing LabelSmoothLoss with CrossEntropyLoss may lead to better results. And we will fix it later.

from mmrazor.

priscillapan avatar priscillapan commented on August 18, 2024

When i only retrain one subnet, i dont need to split checkpoint, I knew it when I tried to retrain 3 subnets later.
But when the first time i used it, i did not know. you should fix the split step or include a detailed explanation.

I'll try the CrossEntropyLoss. How good?
Is autoslim suitable for mmdet.FasterRCNN or yolo? @HIT-cwh

Thank you for your great work.

from mmrazor.

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.