Commit Graph

28 Commits (main)

Author SHA1 Message Date
6V b40fe72e2f
[Fix] Delete version verification of CANN on Ascend NPU () 2023-11-01 15:57:19 +08:00
Yinlei Sun 8021d1b0eb
[Feature] Support downloading OpenMMLab projects on Ascend NPU () 2023-10-23 10:58:34 +08:00
Zaida Zhou 444862746d
[Refactor] Search remote package metadata from PyPI rather than Github ()
* [Refactor] Search remote package from PyPI

* fix format

* fix ut

* minor refine
2023-01-18 14:46:58 +08:00
Junhwa Song 8fb7776ebe
[Enhance] Add support for sequence input in --search-args option ()
* Add support for sequence

* Add test code

* Fix

Co-authored-by: KKIEEK <kkieek@KKIEEKui-MacBookPro.local>
2023-01-17 20:26:50 +08:00
yancong d84cf6e79c
Support mim train / test / gridsearch in OpenMMLab-2.0 ()
* Suport openmmlab-2.0 with the following features:

- import Config from mmengine
- remove extra options for train / test / gridsearch
- create destination directory if dose not exists in `mim donwload`
- add mmengine in `mim list`

* fix ci with the following 2 problems:
- mmcv2.x have not pre-built package for torch1.5.
- patch xxx not found after install (cause by importlib.reload).

* Update mim/commands/download.py

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

* dev(download): remove echo line

* support openmmlab 1.0 and 2.0

* use tests/data/lenet5_mnist_2.0.py in test case

* use tests/data/lenet5_mnist_2.0.py in test case

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-09-23 19:16:40 +08:00
yancong 23e63429ae
use mmengine.Config instead of mmcv.Config ()
* use mmengine.Config instead of mmcv.Config

* install mmengine in CI

* fix mmengine install issue
2022-09-01 11:33:31 +08:00
yancong 5427b1a7c6
[Fix] Fix `mim --version` crash in click>=8.x () 2022-08-02 14:23:35 +08:00
yancong xiao eb0b8270a7
[Refactor] refactor mim uninstall ()
* 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
yancong xiao 172400dc04
[Refactor] refactor mim install ()
* 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
yancong xiao 77f5866a67
[Chore] Fix the issue that the click version is locked at 7.x ()
* 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
Zaida Zhou 695f2af0e4
[Fix] Fix and refactor unit tests ()
* 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
Zaida Zhou c5025ef069
Add copyright pre-commit-hook () 2022-02-23 22:20:01 +08:00
Zaida Zhou be720eeebb
[Fix] Fix the unit test of the download command ()
* [Fix] Fix the unit test of download command

* rename the name of config
2022-01-13 16:54:58 +08:00
Haodong Duan 10f3e61739
Update test_download.py ()
Fix Unittest of cifar download
2021-12-09 10:02:42 +08:00
Zaida Zhou acab45a6fa
[Refactor] Change resources directory to .mim ()
* [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 27fad951d0
[Fix] Fix error when searching mmsegmentation ()
* 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
Zaida Zhou 6f309bdd98
[Refactor] Refactor list cmd ()
* [Refactor] Refactor list cmd

* simply

* fix errror when getting home-pag from pypi

* fix unittet

* add unittest

* fix ci

* fix ci

* install wheel in CI to fix error

* refactor and add a decorator to make sure package has been installed

* rename function and add commnent for CI
2021-07-24 11:43:31 +08:00
Zaida Zhou 0a1ffd3c1c
[Fix] Fix filename of model zoo and output of search command ()
* fix filename of model zoo

* add comment

* fix install

* update search cmd

* update search command

* fix model zoo

* format output

* update readem

* fix typo

* reset display_width

* fix typo

* support substring match

* simply _filter_field
2021-07-21 14:03:30 +08:00
Zaida Zhou 73692e491a
[Fix] Fix install ambiguous ()
* fix install ambigous

* fix install local repo

* fix docstring
2021-06-23 21:05:23 +08:00
Zaida Zhou d1863fc15a
[Feature] Support installing package with editable mode ()
* [Feature] Support installing package with editable mode

* create symlinks when installing package with editable mode
2021-06-16 19:09:42 +08:00
Haodong Duan a20a02a97f
[Improvement] Switch More UnitTest On ()
* cpu training

* update README

* test all

* fix unittest
2021-06-01 13:03:39 +08:00
Zaida Zhou 11adbd231c
[Fix] Fix unittest () 2021-05-24 22:23:45 +08:00
Haodong Duan bff6849e3f update link 2021-05-20 09:18:31 +00:00
Wenwei Zhang 18c16f8df0
Merge pull request from open-mmlab/mmcv-version
[Fix] Use a new version of mmcv in examples
2021-05-20 16:01:34 +08:00
zhouzaida 7e1119bda6 fix typo 2021-05-20 15:43:07 +08:00
Kenny b484810026 use a new version of mmcv in examples 2021-05-20 12:42:18 +08:00
Kenny 89bb658cdd add part2 2021-05-20 00:03:43 +08:00
zhouzaida e3dad73e5e [Feature] Add install uninstall list search download command 2021-05-19 22:56:54 +08:00