Commit Graph

137 Commits (c869f7323de39306abff7eedf1b36356683dc932)
 

Author SHA1 Message Date
yancong c869f7323d
[Docs] Fix wrong .mimrc example (#147) 2022-06-28 21:57:42 +08:00
Zaida Zhou b46d2c9119
Fix packaging (#145)
* Fix packaging

* fix type hint
2022-06-27 22:44:44 +08:00
Zaida Zhou b449e97c18
Bump version to v0.2.0 (#141) 2022-06-24 16:35:12 +08:00
Zaida Zhou 73053c1812
Update README (#142)
* Update README

* fix url
2022-06-24 16:34:30 +08:00
yancong xiao eb0b8270a7
[Refactor] refactor mim uninstall (#135)
* refactor(commands/uninstall.py): refactor mim uninstall

* reload pip._vendor.pkg_resources before uninstall

* update(commands/uninstall.py): use subprocess call_command instead of create_command

* remove --root-user-action option

* update(commands/uninstall.py): use subprocess call_command instead of create_command

* update(commands/uninstall.py): support unknown options pass to pip uninstall

* tests(tests/test_uninstall.py): add test case for mim uninstall

* update(commands/uninstall.py): use the pip official recommend way to invoke pip uninstall

* refine(commands/uninstall.py): use isinstance instead of 'type is' make mypy happy

* combine commits: for ci debug

* combine commits: for ci debug

* Apply suggestions from code review

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-06-24 14:30:31 +08:00
Zaida Zhou 90d97cd2f7
Add beautiful progressbar (#139)
* Add beautiful progressbar

* minor refinement
2022-06-24 14:01:17 +08:00
Zaida Zhou d2df7c8023
Add macOS ci (#138) 2022-06-23 19:20:04 +08:00
Zaida Zhou 3276085565
add circleci (#131)
* add circleci

* trigger ci

* configure python

* change py3.7 to py3.8

* install py3.8 first

* fix typo
2022-06-22 21:56:07 +08:00
yancong xiao 03f9261df6
Add more packages that support mim (#134)
* update(PKG2PROJECT): add more packages that support mim

* update(PKG2PROJECT): remove mmrazor and mmfewshot since the .mim folder is missing
2022-06-22 20:09:51 +08:00
yancong xiao 172400dc04
[Refactor] refactor mim install (#132)
* refactor(commands/install.py): refactor mim install

* update(commands/install.py): add missing doc comments

* fix(commands/install.py): fix invalid marker during check_install_conflicts and add mminstall.txt cache

* style(commands/mminstall.txt): fix a stupid autoformat

* combine commit: for ci debug

* for ci debug

* commit suggetion(mim/commands/install.py): refine doc comment

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* commit suggetion(mim/commands/install.py): refine doc comment

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* commit suggestion(mim/commands/install.py): refine doc comments

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* commit suggestion(mim/commands/install.py): refine doc comments

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* commit suggestion(mim/commands/install.py): refine doc comments

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* commit suggestion(mim/commands/install.py): refine doc comments

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* chore(requirements): add pip>=19.3

* refine(commands/install.py): refine contextmanager

* fix(commands/install.py): refine tthe cache logic

* fix(commands/install.py): refine the cache logic

combine commit record: for ci debug

* commit suggestion(mim/commands/install.py): refine doc comments

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* combine commit record: for ci debug

* refine(commands/install.py): add warning log about index_url passed in install_args

* fix(commands/install.py): refine the cache logic

combine commit record: for ci debug

* doc(tests): add line comments

* feat(commands/install.py): add check_mim_resources

* reload pip._vendor.pkg_resources before install
combine commit record: foc ci debug

* doc(tests): add line comments

* feat(commands/install.py): add check_mim_resources

* doc(tests): add line comments

* doc(tests): add line comments

* feat(commands/install.py): add check_mim_resources

* doc(tests): fix line comments typo

* Revert "Merge branch 'yancong-refactor-install' of github.com:ice-tong/mim into yancong-refactor-install"

This reverts commit 97529af51f, reversing
changes made to e70fa88d64.

* refine comments for importlib.reload(pip._vendor.pkg_resources)

* combine commit: for ci debug

* combine commit record: for ci debug

* feat(commands/install.py): add check_mim_resources

combine commit: for ci debug

* combine commit: for ci debug

* refine comments and remove pyetst cache file

* remove duplicate code snippets

* update(tests/test_install.py): add vcs install case

* fix(tests/test_train.py): fix mmcls install issue

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-06-22 20:09:10 +08:00
Zaida Zhou 7421125722
Add extra dependencies to extra_require (#133)
* Add extra dependencies to extra_require

* fix lint
2022-06-16 19:24:19 +08:00
yancong xiao 77f5866a67
[Chore] Fix the issue that the click version is locked at 7.x (#127)
* fix the issue that the click version is locked at 7.x

* add .vscode into .gitignore

* fix the issue that the click version is locked at 7.x

* add .vscode into .gitignore

* refine(click/compat.py): remove helper function

* chore(ci): add click<8.0.0 tests in ci

* refine(commands): refine imports

* commit suggestion(mim/click/option.py): refine doc comments.

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* commit suggestion(mim/click/compat.py): add typing hint

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* commit suggestion(mim/click/compat.py): add line comment

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* commit suggestion(mim/click/compat.py): add typing hit in doc comment

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* update(click/compat.py): add typing hint

* tests(tests/test_search): add a simple functional test for OptionEatAll

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-06-16 15:55:21 +08:00
Ye Liu eb5c5c67ff
Fix mmaction2 package name and run script (#113)
* Fix mmaction2 package name and run script

* Update customcommand.py
2022-06-14 12:34:51 +08:00
Zaida Zhou d8f00ed895
Add pyupgrade and codespell pre-commit hooks (#130)
* Add pyupgrade and codespell pre-commit hooks

* minor fix
2022-06-14 12:32:59 +08:00
Jiazhen Wang 945a565ba4
add windows ci (#106) 2022-06-14 10:00:57 +08:00
Zaida Zhou 82ad74333b
bump version to v0.1.6 (#129) 2022-06-14 09:33:21 +08:00
Zaida Zhou 695f2af0e4
[Fix] Fix and refactor unit tests (#128)
* fix and refactor unit tests

* Fix GPG key error in CI

* use container provided by pytorch

* install git in container

* install git in container

* fix ci

* update pip version

* install system dependencies

* add test data

* add circleci

* add test data

* refine ut
2022-06-14 00:02:58 +08:00
Anton Cherepkov cd3b38d75f
mim install does not work with pip >= 22.1 (#117)
* get rid of --use-feature=in-tree-build from pip22.1

* fix long line

Co-authored-by: Anton Cherepkov <anton.cherepkov@checklens.ai>
2022-06-13 17:55:53 +08:00
yancong xiao 7b9697f8ca
Use mdformat pre-commit hook (#126)
Co-authored-by: yancong <xyancong@qq.com>
2022-06-13 14:06:35 +08:00
Zaida Zhou 28dce468a9
[Fix] Fix search error when models miss the results field (#104)
* update setup.cfg

* fix gridsearch

* refine comments

* refine comments
2022-03-20 22:06:09 +08:00
Zaida Zhou 0f8589dfd5
[Fix] Get the version of CUDA properly (#96) 2022-03-17 09:56:12 +08:00
Mashiro faf51cb3d3
Reorganizing OpenMMLab projects in readme (#107)
* reorgnize readme

* add mmcv
2022-02-25 16:51:06 +08:00
Zaida Zhou c5025ef069
Add copyright pre-commit-hook (#105) 2022-02-23 22:20:01 +08:00
Zaida Zhou d2d2bafd2e
Upgrade the version of isort (#103) 2022-02-23 22:09:27 +08:00
Zaida Zhou 4b27a58606
[Docs] Add the link of mmdeploy (#99) 2022-02-23 21:52:28 +08:00
Zaida Zhou be720eeebb
[Fix] Fix the unit test of the download command (#95)
* [Fix] Fix the unit test of download command

* rename the name of config
2022-01-13 16:54:58 +08:00
Zaida Zhou d85de669b0
Add the link of mmrazor (#98) 2021-12-24 15:21:09 +08:00
Zaida Zhou 08a99cff03
[Docs] Refactor the structure of the documentation (#94)
* [Docs] Refactor the structure of documentation
2021-12-10 20:43:50 +08:00
Zaida Zhou 6b9be66bdb
[Docs] Use shared menu (#93)
* [Docs] Use shared menu

* fix typo

* delete logo
2021-12-10 10:50:50 +08:00
Haodong Duan 7d25759ead
Update gridsearch.py (#84) 2021-12-09 10:03:23 +08:00
Haodong Duan 10f3e61739
Update test_download.py (#85)
Fix Unittest of cifar download
2021-12-09 10:02:42 +08:00
Zaida Zhou 2ec36a90d7
use official markdownlint hook (#92) 2021-12-07 15:10:21 +08:00
Zaida Zhou de026a72ce
[Docs] Use pytorch sphinx theme (#89)
* use pytorch sphinx theme

* update readme

* fix yaml format

* change the log
2021-12-07 14:15:19 +08:00
Zaida Zhou 622cc8a7b1
cancel the outdated action (#91) 2021-12-07 13:15:57 +08:00
Zaida Zhou d234738f88
Skip CI when some specific files were changed (#90) 2021-12-07 13:09:26 +08:00
Zaida Zhou 62bd756d70
bump version to v0.1.5 (#83) 2021-09-07 22:52:14 +08:00
Haodong Duan 4f2b8ec454
[Fix] Fix #80 (#81)
* Fix #80

* Update utils.py

* update
2021-09-07 21:49:51 +08:00
Zaida Zhou dd97fdf226
[Enhancement] Support full match (#79) 2021-09-07 21:49:25 +08:00
Zaida Zhou c156e060ee
[Fix] Change the version of ubuntu from ubuntu-latest to ubuntu-18.04 in CI (#82) 2021-09-01 21:14:04 +08:00
Zaida Zhou 26f364fdde
bump version to v0.1.4 (#78) 2021-08-04 21:00:24 +08:00
Zaida Zhou b6ee8775a6
[Refactor] Speed the list command (#77)
* [Refactor] Speed the list command

* remove importlib_metadata

* rename var

* debug

* upgrade the setuptools in CI
2021-08-04 20:10:11 +08:00
Zaida Zhou 9fe8a75cb4
[Fix] Fix missing package directory error (#72)
* [Fix] Fix missing package directory error

* fix grammar

* fix comment

* fix comment

* remove a comment for debug
2021-07-28 20:09:44 +08:00
Ma Zerun d70f9cf14b
[Fix] Fix searching path of config when invoking train, test and gridsearch command (#75)
* Add `followlinks` argument in `recursively_find`.

* When searching config, `pkg/.mim/configs`  is the default path to be searched if it exists.
2021-07-27 16:02:24 +08:00
Ma Zerun eb35cceb84
When use config file from codebase, use and show the realpath instead of the symbolic path.(#76) 2021-07-27 15:42:00 +08:00
Zaida Zhou db34eff15e
[Fix] Fix error of new feature if verison of pip is slow (#74) 2021-07-27 15:06:42 +08:00
Zaida Zhou a64cd64a88
bump version to v0.1.3 (#70) 2021-07-24 17:32:01 +08:00
Zaida Zhou acab45a6fa
[Refactor] Change resources directory to .mim (#68)
* [Enhancement] Change the directory of configs to be saved

* configs tools model-index.yml will be copied to .mim

* copy files to .mim if setup.py does not handle this

* simply list command

* remove redundant code

* remove redundant code

* modify according to comment
2021-07-24 17:27:21 +08:00
Zaida Zhou 0bd1f4d2dd
[Fix] Solving issues related to out-of-tree builds (#65)
* [Fix] Fix warning information when invoking pip install command

* add comment

* fix error
2021-07-24 15:08:11 +08:00
Zaida Zhou 34e0d56e75
[Enhancement] Enhance recursively find (#69) 2021-07-24 15:07:54 +08:00
Zaida Zhou 27fad951d0
[Fix] Fix error when searching mmsegmentation (#52)
* fix error when searching mmsegmentation

* fix bug when searching metadata from  remote package

* update

* fix typo

* fix
2021-07-24 11:48:22 +08:00