1. 14 Dec, 2021 2 commits
  2. 06 Dec, 2021 1 commit
  3. 10 Nov, 2021 2 commits
  4. 24 Oct, 2021 1 commit
    • Zaida Zhou's avatar
      [Feature] Upload checkpoints and logs to ceph (#1375) · 32e09f49
      Zaida Zhou authored
      * [Feature] Choose storage backend by the prefix of filepath
      
      * refactor FileClient and add unittest
      
      * support loading from different backends
      
      * polish docstring
      
      * fix unittet
      
      * rename attribute str_like_obj to is_str_like_obj
      
      * [Docs] Upload checkpoint to petrel oss
      
      * add infer_client method
      
      * Support uploading checkpoint to petrel oss
      
      * add check_exist method
      
      * refactor CheckpointHook
      
      * support uploading logs to ceph
      
      * rename var client to file_client
      
      * polish docstring
      
      * enhance load_from_ceph
      
      * refactor load_from_ceph
      
      * refactor TextLoggerHook
      
      * change the meaning of out_dir argument
      
      * fix test_checkpoint_hook.py
      
      * add join_paths method
      
      * remove join_paths and add _format_path
      
      * enhance unittest
      
      * refactor unittest
      
      * add a unittest for EvalHook when file backend is petrel
      
      * singleton pattern
      
      * fix test_clientio.py
      
      * deprecate CephBackend
      
      * add warning in load_from_ceph
      
      * fix type of out_suffix
      
      * enhance docstring
      
      * refactor unittest for petrel
      
      * refactor unittest for disk backend
      
      * update io.md
      
      * add concat_paths method
      
      * fix CI
      
      * mock check_exist
      
      * improve docstring
      
      * improve docstring
      
      * improve docstring
      
      * improve docstring
      
      * add isdir and copyfile for file backend
      
      * delete copyfile and add get_local_path
      
      * remove isdir method of petrel
      
      * fix typo
      
      * rename check_exists to exists
      
      * refactor code and polish docstring
      
      * fix windows ci
      
      * add comment and polish docstring
      
      * polish docstring
      
      * polish docstring
      
      * rename _path_mapping to _map_path
      
      * polish docstring and fix typo
      
      * refactor get_local_path
      
      * add list_dir_or_file for FileClient
      
      * add list_dir_or_file for PetrelBackend
      
      * fix windows ci
      
      * Add return docstring
      
      * polish docstring
      
      * fix typo
      
      * fix typo
      
      * fix typo
      
      * fix error when mocking PetrelBackend
      
      * deprecate the conversion from Path to str
      
      * add docs for loading checkpoints with FileClient
      
      * rename keep_log to keep_local
      
      * refactor map_path
      
      * add _ensure_methods to ensure methods have been implemented
      
      * fix list_dir_or_file
      
      * rename _ensure_method_implemented to has_method
      
      * refactor
      
      * polish information
      
      * format information
      32e09f49
  5. 04 Oct, 2021 1 commit
  6. 07 Sep, 2021 1 commit
  7. 24 Aug, 2021 1 commit
    • Wenwei Zhang's avatar
      [Feature] Add windows CI (#1023) · 979a355d
      Wenwei Zhang authored
      
      
      * add windows CI
      
      * clean versions
      
      * only allow pt1.7 on windows
      
      * fix windows install issue
      
      * add win cpu
      
      * fix win command
      
      * clean unnecessary command
      
      * resolve turbojpeg & tempfile on win
      
      * replace os.readlink with os.path.realpath
      
      * fix windows ci
      
      * close file before removing it
      
      * fix windows ci
      
      * fix symlink on windows
      
      * fix windows ci
      
      * fix windows ci
      
      * fix windows ci
      
      * fix windows ci
      
      * fix windows ci
      
      * fix windows ci
      
      * fix windows ci
      
      * fix windows ci
      
      * fix windows ci
      
      * modify according to comment
      Co-authored-by: default avatarzhouzaida <zhouzaida@163.com>
      979a355d
  8. 23 Aug, 2021 1 commit
    • Ma Zerun's avatar
      [WIP] continue PR #784 (#1221) · 357b0dfb
      Ma Zerun authored
      
      
      * Add gradient cumulative optimizer
      
      fixes #190
      
      * Update optimizer.py
      
      * Update optimizer.py
      
      * fix loss scale improperly in last equivalent_iter
      
      * Add `GradientCumulativeOptimizerHook` in `__init__.py`.
      
      * Add docstring of `GradientCumulativeOptimizerHook`.
      
      * Add type check, BN warning and resume warning. And fix typo, lint the
      code.
      
      * Add unit test
      
      * Update docstring example.
      
      * Change GradientCumulativeOptimizerHook `__init__` arguments.
      
      * Add GradientCumulativeOptimzierHook unit tests with IterBasedRunner.
      
      * Add GradientCumulativeFp16OptimizerHook.
      
      * Add unit tests of GradientCumulativeFp16OptimizerHook
      
      * Use '!=' instead of '>' to determine resume
      Co-authored-by: default avatarZhiyuan Chen <this@zyc.ai>
      357b0dfb
  9. 11 Aug, 2021 2 commits
    • Zaida Zhou's avatar
      [Fix] Fix the bug that the training log and evaluating log are mixed (#1252) · 846d3a4a
      Zaida Zhou authored
      * [Fix] Fix the bug that training log and evaluating log are mixed
      
      * [Fix] Fix the bug that training log and evaluating log are mixed
      
      * fix comment
      
      * fix import error
      
      * refactor
      
      * refactor
      
      * refactor
      
      * clear log_buffer before evaluation
      
      * fix error
      
      * add unittest
      846d3a4a
    • Shilong Zhang's avatar
      Fix potential bugs of basemodule when record the initilization information (#1217) · 18c64d5f
      Shilong Zhang authored
      * add logger for init
      
      * change init_info of oevrload init_weight
      
      * add judgement for params_init_info
      
      * add delete comments for params_init_info
      
      * add docstr and more comments
      
      * add docstr and more comments
      
      * resolve comments
      
      * dump to a file
      
      * add unitest
      
      * fix unitest
      
      * fix unitest
      
      * write to ori log
      
      * fix typo
      
      * resolve commnets
      
      * fix call initweights twice in topmost module
      
      * fix the potential bug of recursive import
      
      * fix unitest
      
      * fix potiential bugs
      
      * remove unneccesary change
      
      * add more unitest
      
      * fix add param in initweights
      
      * add more comments
      
      * raise error
      
      * add more detail assert error
      18c64d5f
  10. 08 Aug, 2021 1 commit
  11. 23 Jul, 2021 2 commits
    • Shilong Zhang's avatar
      [Features] Add logger for initialization of parameters (#1150) · 17fa6670
      Shilong Zhang authored
      * add logger for init
      
      * change init_info of oevrload init_weight
      
      * add judgement for params_init_info
      
      * add delete comments for params_init_info
      
      * add docstr and more comments
      
      * add docstr and more comments
      
      * resolve comments
      
      * dump to a file
      
      * add unitest
      
      * fix unitest
      
      * fix unitest
      
      * write to ori log
      
      * fix typo
      
      * resolve commnets
      17fa6670
    • Haodong Duan's avatar
      [Improvement] Improve digit_version & use it for version_checking (#1185) · ef48a473
      Haodong Duan authored
      * improve digit_version & use it for version_checking
      
      * more testing for digit_version
      
      * setuptools >= 50 is needed
      
      * fix CI
      
      * add debuging log
      
      * >= to ==
      
      * fix lint
      
      * remove
      
      * add failure case
      
      * replace
      
      * fix
      
      * consider TORCH_VERSION == 'parrots'
      
      * add unittest
      
      * digit_version do not deal with the case if 'parrots' in version name.
      ef48a473
  12. 20 Jul, 2021 1 commit
    • Gu Wang's avatar
      [Feature] Add flat cosine lr updater (#1066) · 025ee9f5
      Gu Wang authored
      * add flat cosine lr updater
      
      * add test
      
      * add doc
      
      * update doc
      
      * reformat
      
      * update unittest
      
      * update test flat cos
      
      * remove momentum hook test
      
      * update test
      
      * change assert to ValueError
      
      * fix unittest
      
      * add by_epoch=True unittest
      
      * change to start_percent
      
      * change to start_percent in test
      025ee9f5
  13. 09 Jul, 2021 1 commit
    • Y_Xuan's avatar
      [Feature] Porting mmcv for hip (#1022) · 2dc0a219
      Y_Xuan authored
      * porting mmcv for hip
      
      * add nvcc
      
      * fix format
      
      * fix format
      
      * fix bug for carafe
      
      * fix test_utils because rocm_torch not allow set torch.backends.cudnn.benchmark to false
      
      * add LOOSEVERSION
      
      * fix format
      
      * fix format of version
      
      * fix code format
      
      * test for yaml
      
      * fix bug for citest
      
      * fix bug for how to get torch._version_ at setup.py
      2dc0a219
  14. 25 Jun, 2021 2 commits
    • Ma Zerun's avatar
      support print hooks before running. (#1123) · 1b15f022
      Ma Zerun authored
      * support print using hooks before running.
      
      * Support to print hook trigger stages.
      
      * Print stage-wise hook infos. And make `stages` as class attribute of
      `Hook`
      
      * Add util function `is_method_overriden` and use it in
      `Hook.get_trigger_stages`.
      
      * Add unit tests.
      
      * Move `is_method_overriden` to `mmcv/utils/misc.py`
      
      * Improve hook info text.
      
      * Add base_class argument type assertion, and fix some typos.
      
      * Remove `get_trigger_stages` to `get_triggered_stages`
      
      * Use f-string.
      1b15f022
    • Ma Zerun's avatar
      Refine default hooks and custom hooks priority rank. (#1120) · 6fe37225
      Ma Zerun authored
      * Refine default hooks and custom hooks priority rank.
      
      * Add unit tests for custom hooks with string priority.
      
      * Use priority `ABOVE_NORMAL` and `BELOW_NORMAL` instead of `HIGHER` and
      `LOWER`.
      
      And add unit tests for custom hook with the same priority as
      default hooks.
      6fe37225
  15. 24 Jun, 2021 1 commit
  16. 08 Jun, 2021 1 commit
  17. 23 May, 2021 1 commit
  18. 13 May, 2021 2 commits
  19. 11 May, 2021 2 commits
  20. 27 Apr, 2021 1 commit
  21. 20 Apr, 2021 1 commit
  22. 10 Apr, 2021 2 commits
  23. 09 Apr, 2021 1 commit
  24. 08 Apr, 2021 1 commit
  25. 02 Apr, 2021 1 commit
  26. 26 Mar, 2021 1 commit
  27. 17 Mar, 2021 1 commit
  28. 03 Mar, 2021 1 commit
    • Ycr's avatar
      [Feature] Support revise_keys in load_checkpoint(). (#829) · e076c8b0
      Ycr authored
      * Simplified the code.
      
      * Improved chkpt compatibility.
      
      * One may modify the checkpoint via adding keywords.
      
      * Tiny.
      
      * Following reviewer's suggestion.
      
      * Added unit_test.
      
      * Fixed.
      
      * Modify the state_dict  with  construction.
      
      * Added test.
      
      * Modified。
      
      * Mimimalised the modification.
      
      * Added the docstring.
      
      * Format.
      
      * Improved.
      
      * Tiny.
      
      * Temp file.
      
      * Added assertion.
      
      * Doc string.
      
      * Fixed.
      e076c8b0
  29. 20 Feb, 2021 1 commit
  30. 07 Feb, 2021 1 commit
    • Miao Zheng's avatar
      add initializers and BaseModule for unified parameter initialization (#780) · a4c37026
      Miao Zheng authored
      * add initializers and BaseModule for unified parameter initialization
      
      * fix circle import
      
      * bug fix
      
      * add is_init flag in BaseModule
      
      * fix docstring
      
      * sort import and fix doc format
      
      * fix bug
      
      * fix docformat and double quote string
      
      * fix import sort
      
      * import sort
      
      * sort import
      
      * revise according to comments
      
      * fix doc format
      
      * revise according to comments
      
      * revise import and fix typo
      
      * polish code
      
      * revise minors
      
      * revice minors
      
      * revise apply function
      
      * revise bias initialization with probability
      
      * add type test for bias_prob
      
      * revise minors
      a4c37026
  31. 28 Jan, 2021 1 commit
    • Haian Huang(深度眸)'s avatar
      Refactor _load_checkpoint fn (#790) · 96892bdc
      Haian Huang(深度眸) authored
      * Refactor _load_checkpoint fn
      
      * Update _load_checkpoint fn
      
      * Update docs str and add unit test
      
      * Fix unit test
      
      * Fix lint
      
      * Add comment and Optimize function
      
      * Fix docs str
      
      * Update load_ckpt and fix doc str
      
      * Update doc str and add sort unit test
      
      * Update and fix unit test
      
      * Fix unit test
      
      * Update and add unit test
      
      * Fix openmmlab prefix error
      96892bdc
  32. 14 Jan, 2021 1 commit