* [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>
* [Fix] Call SyncBufferHook before validation in IterBasedTrainLoop
* Add before_val_epoch in SyncBuffersHook
* Fix white space format
* Add comments for SyncBuffersHook
* Add comments for SyncBuffersHook
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Add comments for SyncBuffersHook
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* Fix white space format
* Add before_test_epoch
* Remove before_test_epoch
---------
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>
* Complement type hint of get_model_complexity_info()
The type of `inputs` should be one of `torch.Tensor`,
`tuple[torch.Tensor, ...]` and `None`.
Signed-off-by: Shengjiang QUAN <qsj287068067@126.com>
* Update print_helper.py
---------
Signed-off-by: Shengjiang QUAN <qsj287068067@126.com>
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
* print_helper: optimize inputs of get_model_complexity_info
Signed-off-by: Shengjiang QUAN <qsj287068067@126.com>
* directly throw error
When "input_shape" and "inputs" are both `None` or both set,
throw ValueError.
Signed-off-by: Shengjiang QUAN <qsj287068067@126.com>
---------
Signed-off-by: Shengjiang QUAN <qsj287068067@126.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>