* [Fix] Fix build unnecessary loop during train/test/val
* move unit test to runner
* Update unit test
* Fix unit test
* check train_loop is None
* update comment
* replace(type(None)) with is not None
* [Enhance] Enhance the efficiency of Visualizer.show
* Update unit test
* Simplify the logic of creating opencv window
* Update docstring
* Update unit test
* Update mmengine/visualization/visualizer.py
---------
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* [Enhance] Support configuring synchronize directory for BaseMetric
* Raise error if tmpdir is not an shared dirctory for ann ranks
* Raise error if tmpdir is not an shared dirctory for ann ranks
* Update mmengine/evaluator/metric.py
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* refine
* Update mmengine/evaluator/metric.py
---------
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Enhance config
* add unit test data
* reafactor unittest of loggerhook
* fix rebase error
* Fix permission error in windows
* Fix CI
* Fix windows ci
* Fix windows ci
* Fix windows ci
* Fix windows CI
* Apply suggestions from code review
Co-authored-by: Qian Zhao <112053249+C1rN09@users.noreply.github.com>
* clean the code
* Refine as comment
* Refine error rasing
* Update mmengine/hooks/logger_hook.py
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* replace assert_called_with with assert_has_calls
* Fix as comment
* Do not remove filehandler and fix unit test
---------
Co-authored-by: Qian Zhao <112053249+C1rN09@users.noreply.github.com>
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Enhance config
* add unit test data
* Refacotr unitest of checkpointhook
* add comments
* Fix unit test
* remove _get_metric_scope
* tmp save
* Revert "remove _get_metric_scope"
This reverts commit eeb7a8c5ed.
* Revert "Revert "remove _get_metric_scope""
This reverts commit 5398255f6f.
* Revert "tmp save"
This reverts commit cdc9919be8.
* clean the code
* Fix ut
* minor fix
* use str.replace
* align the evaluation result in log
* align the evaluation result in log
* align the evaluation result in log
* align the evaluation result in log
* fix test log_processor
* [Enhance] Make sure the FileHandler still alive after
* Resume filter
* avoid bc
* Fix unit test
* clean the code
* revert changes and set mode from 'm' to 'a'
* mode to file_mode
* add comments
* refine comments
* Fix duplicated the
* [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>
* [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
* 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>
* 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
* 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
* [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>