Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support mmrazor #1701

Merged
merged 4 commits into from
Mar 17, 2023
Merged

support mmrazor #1701

merged 4 commits into from
Mar 17, 2023

Conversation

LKJacky
Copy link
Contributor

@LKJacky LKJacky commented Feb 2, 2023

Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily receiving feedbacks. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.

Modification

We add a new Codebase to support mmrazor. Besides, we modify build_task_processor to detect mmrazor config.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


liukai seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@lvhan028
Copy link
Collaborator

lvhan028 commented Feb 6, 2023

Hi, @LKJacky Could you share a test example?

@LKJacky
Copy link
Contributor Author

LKJacky commented Feb 8, 2023

Please install mmrazor form https://github.com/LKJacky/mmrazor/tree/core)](https://github.com/LKJacky/mmrazor/tree/core

Then, run ./projects/group_fisher/configs/mmcls/vgg/deploy.sh

@grimoire
Copy link
Member

Where is ./work_dirs/vgg_group_fisher_finetune/best_accuracy/top1_epoch_142.pth

@LKJacky
Copy link
Contributor Author

LKJacky commented Mar 2, 2023

@grimoire It is in my disk. You can use any checkpoint as it is able to run no matter whether a right checkpoint loaded.

Copy link
Member

@grimoire grimoire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lvhan028 lvhan028 requested a review from irexyc March 15, 2023 09:06
@irexyc
Copy link
Collaborator

irexyc commented Mar 16, 2023

Hi @LKJacky
where is ./projects/group_fisher/configs/mmcls/vgg/deploy.sh

@LKJacky
Copy link
Contributor Author

LKJacky commented Mar 16, 2023

@irexyc This file had been removed. Please pull dev-1.x branch of mmrazor, and run following commands to test this pr.

razor_config=configs/pruning/mmcls/group_fisher/mobilenet/group_fisher_act_deploy_mobilenet-v2_8xb32_in1k.py
deploy_config=mmdeploy/configs/mmcls/classification_onnxruntime_dynamic.py

python mmdeploy/tools/deploy.py $deploy_config \
    $razor_config \
    https://download.openmmlab.com/mmrazor/v1/pruning/group_fisher/mobilenet/act/group_fisher_act_finetune_mobilenet-v2_8xb32_in1k.pth \
    mmdeploy/tests/data/tiger.jpeg \
    --work-dir ./work_dirs/mmdeploy

python mmdeploy/tools/profiler.py $deploy_config \
    $razor_config \
    mmdeploy/demo/resources \
    --model ./work_dirs/mmdeploy/end2end.onnx \
    --shape 224x224 \
    --device cpu \
    --num-iter 1000 \
    --warmup 100

@lvhan028 lvhan028 added the enhancement New feature or request label Mar 17, 2023
@lvhan028 lvhan028 merged commit 847a906 into open-mmlab:dev-1.x Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants