Mashiro
26a7a92a13
[Enhance] Do no catch unnecessary exceptions in registry ( #1010 )
2023-03-29 16:15:42 +08:00
Mashiro
30c5996af2
Skip test_dist in Github Action ( #1027 )
2023-03-29 14:25:35 +08:00
Mashiro
eb79d64af1
[Fix] Add PyTorch 2.0 CI and fix unit tests ( #1026 )
...
* [Enhance] Make sure the FileHandler still alive after
* minor refine
* minor refine
* refine unit test
* update CI
* update CI
* Fix CI
* fix build_windows
* fix build_windows
* fix build_windows
* fix build_windows
* debug
* debug
* debug
* debug
* debug
* debug
* debug
* test windows CI
* Fix
* Debug
* Fix unit test
* Fix unit test
* Fix CI
* update image version
* update action/checkout and action/setup-python
* add condition to skip test compile
* [Fix] Update CI and fix unit test
* check compiling by attempting compilation
* check compiling by attempting compilation
* check compiling by attempting compilation
* use windows-2022 in runs on
* Apply suggestions from code review
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* update yml
* remove unnecessary assert
* assert grad is None according to the PyTorch version
* Fix code
---------
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2023-03-29 13:09:23 +08:00
KerwinKai
5b35c5b6ad
[Feature] Publish models after training if published_keys is set in CheckpointHook ( #987 )
...
* add publish keys in checkpointhook and update hook.md file
* Update checkpoint_hook.py
To avoid `mypy` warning `mmengine/hooks/checkpoint_hook.py:358: error: Unsupported right operand type for in ("Optional[List[str]]") Found 1 error in 1 file (checked 224 source files)`
* Update hook.md
Try to avoid trim trailing whitespace waring in hook.md
* Update mmengine/hooks/checkpoint_hook.py
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
* Update mmengine/hooks/checkpoint_hook.py
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
* Update mmengine/hooks/checkpoint_hook.py
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
* Update mmengine/hooks/checkpoint_hook.py
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
* Update mmengine/hooks/checkpoint_hook.py
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
* Update mmengine/hooks/checkpoint_hook.py
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
* Update mmengine/hooks/checkpoint_hook.py
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
* Update mmengine/hooks/checkpoint_hook.py
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
* Update mmengine/hooks/checkpoint_hook.py
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
* Update mmengine/hooks/checkpoint_hook.py
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
* Update checkpoint_hook.py
* Update docs/en/tutorials/hook.md
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update mmengine/hooks/checkpoint_hook.py
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update mmengine/hooks/checkpoint_hook.py
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update mmengine/hooks/checkpoint_hook.py
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update mmengine/hooks/checkpoint_hook.py
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update hook.md
add 自动发布最好的和最后的权重
* Update mmengine/hooks/checkpoint_hook.py
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update checkpoint_hook.py
add condition when the best checkpoints more than 1.
* Update mmengine/hooks/checkpoint_hook.py
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update checkpoint_hook.py
delete re judge
* Update checkpoint_hook.py
* Update checkpoint_hook.py
* Update mmengine/hooks/checkpoint_hook.py
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
* Update mmengine/hooks/checkpoint_hook.py
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
* Update checkpoint_hook.py
* Update mmengine/hooks/checkpoint_hook.py
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
* Update mmengine/hooks/checkpoint_hook.py
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
* Update checkpoint_hook.py
* Update mmengine/hooks/checkpoint_hook.py
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Add Test for publish model
* Update checkpoint_hook.py
* Update test_checkpoint_hook.py
* Fix file to pass pre-commit check
* Update mmengine/hooks/checkpoint_hook.py
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
* Fix mypy warning
* rm not necessary line in checkpoint_hook.py
* Update mmengine/hooks/checkpoint_hook.py
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* rm unnecessary messages add to message_hub
* Update mmengine/hooks/checkpoint_hook.py
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update docs/zh_cn/tutorials/hook.md
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update docs/zh_cn/tutorials/hook.md
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* update checkpoint hook and hook.md file
* Apply suggestions from code review
* Apply suggestions from code review
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
* Update mmengine/hooks/checkpoint_hook.py
---------
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2023-03-29 10:25:14 +08:00
Mashiro
cd3fc65c76
[Docs] Add more social networking links ( #1024 )
...
* [Docs] Add more social networking links
* change discord channel to mmengine
2023-03-28 19:39:44 +08:00
Mashiro
d174952a3e
[Fix] Fix there is no space between data_time and metric ( #1025 )
2023-03-28 19:20:56 +08:00
Evan
f356b3c207
[Docs] Minor fixes in docs to remove or replace unicode chars with ascii chars ( #1018 )
...
* Remove CN comments in EN docs code
* Replace some full-width unicode chars with half-width ascii chars
2023-03-26 13:59:26 +08:00
Qian Zhao
cbb671403f
[Refactor] Refactor the `get_device` and `is_npu_available` ( #1004 )
...
* refactor get_device and is_npu_available
* Update mmengine/device/utils.py
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
---------
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2023-03-19 15:55:27 +08:00
LEFTeyes
ff27b723db
[Enhancement] Unify the use of print_log and logger ( #997 )
2023-03-17 12:31:51 +08:00
Ma Zerun
2955ddb01b
[Enhance] Add `mmpretrain` to the `MODULE2PACKAGE` ( #1002 )
2023-03-17 11:03:44 +08:00
Mashiro
ef4c68deb7
Bump version to v0.7.0 ( #999 )
...
* Bump version to v0.7.0
* Minor refine
* Fix as comment
* Add docs link
* update release date
2023-03-16 21:03:09 +08:00
liukuikun
67ce04d918
[Fix] Fix pytorch2.0 does not support sys._getframe used to remove private keys ( #979 )
...
* [Fix] fix pytorch2.0 not support sys._getframe to remove private key
* Update mmengine/structures/base_data_element.py
---------
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2023-03-15 00:37:12 +08:00
Mashiro
ad33a7d0e5
[Fix] Fix inferencer gets wrong configs path ( #996 )
...
* [Fix] Fix inferencer get wrong configs path
* Update CI
* Fix indent
* Fix CI arguments
* gpu test in CI
gpu test in CI
* require lint
* Adjust pytorch version and cuda version
* Fix docker
* Fix docker syntax
* Use bach -c
* Use bach -c
* Replace is_installed with is_imported
* Fix
* Fix PYTHONPATH
2023-03-14 18:28:33 +08:00
Zaida Zhou
789330e2ac
Add citation in README ( #995 )
2023-03-13 19:09:45 +08:00
luomaoling
8177ef2aef
[Fix] Fix AMP in Ascend and support using NPUJITCompile environment ( #994 )
...
* add npu device support
* add npu device support
2023-03-13 19:08:50 +08:00
Zaida Zhou
60872c38d4
fix lint ( #993 )
2023-03-13 14:46:59 +08:00
Mashiro
395ebf8d82
[Enhancement] Support dumping logs of different ranks ( #968 )
...
* Add hostname
* Update mmengine/logging/logger.py
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Fix lint
* support record device id
* Fix unit test
* Clean the code
* Fix as comment
* Fix as comment
* Fix unit test
* Update doc
* Fix unit test
* Adjust sequence
* Replace \ with ()
* remove unnecessary ()
* does not change filename in single gpu training
* Fix ci
* fix docs
* Fix as comment
---------
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2023-03-13 14:35:31 +08:00
Yijie Zheng
330985d6c1
[Docs] Translate "Model Complexity Analysis" to Chinese ( #969 )
...
* [Doc] Translate model complexity analysis into Chinese.
* [Doc] Translate model complexity analysis into Chinese.
* [Docs] fix the description of the interface
* update introduction
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
* Update description of FLOPs
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
* Update activation
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
* Update model description
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
* Beautify code style
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
* Modify examples
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
* Upadate output description
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
* Update docs/zh_cn/advanced_tutorials/model_analysis.md
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
* Replace FLOPs with flop; fix typo
* Fix typo
* fix lint error
* Update docs/zh_cn/advanced_tutorials/model_analysis.md
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update docs/zh_cn/advanced_tutorials/model_analysis.md
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update docs/zh_cn/advanced_tutorials/model_analysis.md
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update docs/zh_cn/advanced_tutorials/model_analysis.md
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update docs/zh_cn/advanced_tutorials/model_analysis.md
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update docs/zh_cn/advanced_tutorials/model_analysis.md
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update model_analysis.md
* Update model_analysis.md
* Apply suggestions from code review
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
---------
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2023-03-13 14:31:06 +08:00
Mashiro
8063d2cce7
[Enhancement] Support writing data to `vis_backend` with prefix ( #972 )
...
* Log with prefix
* Fix test of loggerhook
* minor refine
* minor refine
* Fix unit test
* clean the code
* deepcopy in method
* replace regex
* Fix as comment
* Enhance readable
* rename reserve_prefix to remove_prefix
* Fix as comment
* Refine unit test
* Adjust sequence
* clean the code
* clean the code
* revert renaming reserve prefix
* Count the dataloader length in _get_dataloader_size
2023-03-13 13:07:37 +08:00
Qian Zhao
0d25625ba2
[Feature] Support torch.compile since PyTorch2.0 ( #976 )
...
* enable compile configurations to support torch.compile in Runner
* enable compilation in train, val and test
* fix as comments
* add docstring to illustrate usage
* minor refine error message
* add unittests
* fix ut skip
* add logging message to inform users
* compile `train_step`, `val_step`, `test_step` instead
* fix as comments
* revert to compile `train_step` only due to pt2 issue
* add documentation about torch.compile
2023-03-12 18:26:43 +08:00
Mashiro
6ea23a2f71
[Fix] Fix duplicated warning ( #992 )
...
* [Fix] Fix repeated warning
* Add type hint
* Fix unit test
* Rename recorder_dict to seen
* Fix as comment
2023-03-10 19:27:36 +08:00
Mashiro
7a074fa478
[Enhancement] Silence error when `ManagerMixin` built instance with duplicate name. ( #990 )
...
* [Fix]Silence error when ManagerMixin built duplicate name instance
* [Fix]Silence error when ManagerMixin built duplicate name instance
* Update mmengine/utils/manager.py
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
---------
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2023-03-10 11:07:31 +08:00
Mashiro
8beacd3b58
[Fix] Support calculate the flops of `matmul` with single dimension matrix ( #970 )
...
* Support calculate the flops of matmul
* Remove unnecessary type ignore
* Update mmengine/analysis/jit_handles.py
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
---------
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2023-03-09 17:29:26 +08:00
Xin Li
6e58c0d24c
[Docs] Translate "how to set random seed" ( #930 )
...
* translate random_seed init
* try fix lint err
* update en/index.rst
* translate zhihu answer
* Update docs/en/common_usage/set_random_seed.md
* Update docs/en/common_usage/set_random_seed.md
* Update docs/en/common_usage/set_random_seed.md
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
* Update docs/en/common_usage/set_random_seed.md
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
* Update docs/en/common_usage/set_random_seed.md
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
* Update docs/en/common_usage/set_random_seed.md
Co-authored-by: Qian Zhao <112053249+C1rN09@users.noreply.github.com>
* Update docs/en/common_usage/set_random_seed.md
Co-authored-by: Qian Zhao <112053249+C1rN09@users.noreply.github.com>
* Update docs/en/common_usage/set_random_seed.md
Co-authored-by: Qian Zhao <112053249+C1rN09@users.noreply.github.com>
* Update docs/en/common_usage/set_random_seed.md
Co-authored-by: Qian Zhao <112053249+C1rN09@users.noreply.github.com>
* Update docs/en/common_usage/set_random_seed.md
Co-authored-by: Qian Zhao <112053249+C1rN09@users.noreply.github.com>
* reorg last part
* minor refine
* Update set_random_seed.md
* fix lint
---------
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
Co-authored-by: Qian Zhao <112053249+C1rN09@users.noreply.github.com>
Co-authored-by: zhouzaida <zhouzaida@163.com>
2023-03-09 17:23:12 +08:00
Mashiro
12e3d4e1e1
Fix changelog date ( #986 )
2023-03-08 16:07:49 +08:00
Infinity_lee
4585c369c9
[Enhancement] Save the memory to visualization backends ( #974 )
...
* add memory in other log
* fix
* fix
* keep empty line
2023-03-08 14:12:22 +08:00
Mashiro
44f30f649e
[Enhancement] Add `FUNCTIONS` root Registry ( #983 )
...
* [Enhancement] Add FUNCTIONS Registry
* Refine as comment
* clean the code
2023-03-08 12:53:24 +08:00
Julius Zhang
aeb5c454c5
[Docs] Fix typo in hook document ( #980 )
2023-03-07 12:53:30 +08:00
Mashiro
dbae83c52f
[Enhancement] Replace warnings.warn with print_log ( #961 )
...
* Replace warning with print_log
* Add comments for testing warning
2023-03-06 17:25:28 +08:00
Hakjin Lee
b3430e4257
[Feature] Support EarlyStoppingHook ( #739 )
...
* [Feature] EarlyStoppingHook
* delete redundant line
* Assert stop_training and rename tests
* Fix UT
* rename `metric` to `monitor`
* Fix UT
* Fix UT
* edit docstring on patience
* Draft for new code
* fix ut
* add test case
* add test case
* fix ut
* Apply suggestions from code review
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
* Append hook
* Append hook
* Apply suggestions
* Update suggestions
* Update mmengine/hooks/__init__.py
* fix min_delta
* Apply suggestions from code review
* lint
* Apply suggestions from code review
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* delete save_last
* infer rule more robust
* refine unit test
* Update mmengine/hooks/early_stopping_hook.py
---------
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
Co-authored-by: zhouzaida <zhouzaida@163.com>
Co-authored-by: HAOCHENYE <21724054@zju.edu.cn>
2023-03-06 13:18:42 +08:00
Zaida Zhou
d34fb58773
Update .owners.yml ( #978 )
2023-03-05 23:43:13 +08:00
Infinity_lee
54b6bbbd65
[Docs] Translate model analysis document to English ( #956 )
...
* add model analysis eng doc
* fix doc style
* add link in index.rst
* fix
* fix
* fix
* rename file
* fix
2023-03-05 21:03:26 +08:00
Qian Zhao
b1b1f53db2
[Fix] Fix optim_wrapper unittest for pytorch <= 1.10.0 ( #975 )
2023-03-02 14:14:23 +08:00
Qian Zhao
2ed8e343a0
[Feature] Enable bf16 in AmpOptimWrapper ( #960 )
...
* support bf16 in AmpOptimWrapper
* add docstring
* modify docs
* add unittests for bf16 in AmpOptimWrapper
* fix type
* fix to pass ci
* fix ut skip logic to pass ci
* fix as comment
* add type hints
* fix docstring and add warning information
* remove check for pytorch>=1.6 in unittest
* modify unittest
* modify unittest
* remove torch.float32 && torch.float64 from valid dtypes
* fix as comments
* minor refine docstring
* fix unittest parameterized to pass CI
* fix unittest && add back torch.float32, torch.float64
2023-03-01 21:35:18 +08:00
Infinity_lee
8a407ca214
[Docs] Translate "Debug Tricks" to English ( #953 )
...
* add english docs
* fix superlink
* fix
* fix
2023-03-01 19:29:04 +08:00
Yuetian Wang
53ae4fb2ec
[Docs] Add a document about setting interval ( #964 )
...
* Add a document about setting interval.
Add a document about Setting the Frequency of Logging, Weight Saving, and Validation.
* Update set_interval.md
Fixed a small bug in the hyperlink.
* Update set_interval.md
Fixed the wrong hyperlink
* Update with pre-commit.
* Update docs/en/common_usage/set_interval.md
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update docs/en/common_usage/set_interval.md
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update docs/en/common_usage/set_interval.md
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update docs/en/common_usage/set_interval.md
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update docs/en/common_usage/set_interval.md
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update docs/en/common_usage/set_interval.md
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update docs/en/common_usage/set_interval.md
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update docs/en/common_usage/set_interval.md
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update docs/en/common_usage/set_interval.md
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update docs/en/common_usage/set_interval.md
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update docs/en/common_usage/set_interval.md
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update docs/en/common_usage/set_interval.md
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Update index.rst
Added: common_usage/set_interval.md
---------
Co-authored-by: YuetianW <wangyuetian@supermicro.dscvlab.com>
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2023-03-01 19:28:14 +08:00
Zaida Zhou
cb7e04d3cf
fix typo ( #965 )
2023-02-27 17:13:38 +08:00
Mashiro
6a56ca78e3
Bump version to v0.6.0 ( #954 )
...
* update version
* Update change log
* Fix as comment
* Add link to username
* Refine
* Adjust highlight sequence
* Fix as comment
* Fix error format in changelog
* delete chinese changelog
* remove link
* Adjust highlight sequence
2023-02-24 14:30:01 +08:00
Mashiro
7e1b27305a
[Enhance] Get model configs from metafile without installation ( #901 )
...
* Support get config from model-index without installing downstream repo
* Rename _get_models_from_package to _get_models_from_config_dir
* adjust priority
* Fix as comment
* Refine exception
* Replace osp.xxx with fileio.xxx
* Refine as comment
* Revert "Replace osp.xxx with fileio.xxx"
This reverts commit 6aed9b2e88
.
* replace fileio with osp
* fix
* Fix as comment
2023-02-23 22:24:12 +08:00
Zaida Zhou
d8abf9ac0f
fix typo ( #955 )
2023-02-23 15:22:33 +08:00
Zaida Zhou
fc9518e2c1
[Feature] Add Lion optimizer ( #952 )
2023-02-23 11:24:50 +08:00
Qian Zhao
25dfe41c19
Change codeowners ( #949 )
2023-02-22 14:20:56 +08:00
Zaida Zhou
c94e7518e5
[Enhancement] Clear UT warning caused by pytest ( #947 )
...
* [Enhancement] Clear UT warning caused by pytest
* revert some changes for unittest
* revert
* update
* clear a numpy warning
* Update tests/test_visualizer/test_vis_backend.py
* fix a warning
2023-02-22 12:17:56 +08:00
Weihang Xia
8370c1e7f7
[Enhance] Make sure Tensors to broadcast is contiguous ( #948 )
...
* Make sure Tensors to cast is contiguous
* simplify
---------
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2023-02-22 11:41:06 +08:00
Qian Zhao
e271454527
[Fix] Temporarily fix collect_env raises errors and stops programs ( #944 )
...
* temporarily fix `collect_env` raise errors and stops programs
* remove the final catch block
2023-02-22 00:25:36 +08:00
Mashiro
b14c179fad
[Refactor] Refactor ema hook ( #804 )
...
* Refacot ema hook unit test
* Refacot ema hook unit test
* Enhance test_after_load_checkpoint
* refine error messsage
* Refine as comment
---------
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
Fix unit test
2023-02-22 00:08:38 +08:00
Mashiro
aa69ba1a86
[Refactor] Refactor unit test of ParamSchedulerHook ( #809 )
...
* Refactor unit test of param_schemeduler hook
* Refactor unit test of param_schemeduler hook
2023-02-22 00:08:38 +08:00
Mashiro
29f399441f
[Refactor] Use a real runner to test RuntimeInfohook ( #810 )
...
* Refactor RuntimeInfoHook
* Fix as comment
2023-02-22 00:08:38 +08:00
Mashiro
c4efda4186
[Refactor] Use a real runner to test DistSamplerSeedHook ( #812 )
...
* Refactor unit test of DistSamplerSeedHook
* rename the case
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2023-02-22 00:08:38 +08:00
Mashiro
a094976e9f
[Refactor] Use a real runner to test IterTimerHook ( #807 )
...
* Refactor iter_timer_hook
* Refactor iter_timer_hook
2023-02-22 00:08:38 +08:00