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

[Feature] Support entry point #52

Merged
merged 1 commit into from
Jun 29, 2022
Merged

[Feature] Support entry point #52

merged 1 commit into from
Jun 29, 2022

Conversation

nijkah
Copy link
Member

@nijkah nijkah commented Jun 27, 2022

Now you can run mmtune with CLI.

example

python3 -m mmtune configs/mmtune/mmcls_cifar_100_asynchb_nevergrad_pso.py configs/mmcls/resnet/resnet50_8xb16_cifar100.py

Code pattern for entry-point is borrowed from https://github.com/pytest-dev/pytest/blob/main/src/pytest/__main__.py.

@nijkah nijkah requested review from KKIEEK and yhna940 June 27, 2022 02:12
Copy link
Contributor

@yhna940 yhna940 left a comment

Choose a reason for hiding this comment

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

LGTM

@nijkah
Copy link
Member Author

nijkah commented Jun 27, 2022

I'll check other patterns such as https://github.com/pypa/virtualenv/blob/main/src/virtualenv/__main__.py.

@github-actions
Copy link

Coverage report

The coverage rate is 79.95%

The branch rate is 59.4%

0% of new lines are covered.

Diff Coverage details (click to unfold)

mmtune/main.py

0.0% of new lines are covered

mmtune/run.py

0.0% of new lines are covered

@nijkah nijkah merged commit 7a3c6ed into master Jun 29, 2022
@nijkah nijkah deleted the feature/entrypoint branch June 29, 2022 06:09
@nijkah nijkah mentioned this pull request Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants