[Refactor] Refine LoggerHook (#155)
* rename global accessible and intergration get_sintance and create_instance * move ManagerMixin to utils * fix as docstring and seporate get_instance to get_instance and get_current_instance * fix lint * fix docstring, rename and move test_global_meta * rename LogBuffer to HistoryBuffer, rename MessageHub methods, MessageHub support resume * refine MMLogger timestamp, update unit test * MMLogger add logger_name arguments * Fix docstring * Add LogProcessor and some unit test * update unit test * complete LogProcessor unit test * refine LoggerHook * solve circle import * change default logger_name to mmengine * refactor eta * Fix docstring comment and unitt test * Fix with runner * fix docstring fix docstring * fix docstring * Add by_epoch attribute to LoggerHook and fix docstring * Please mypy and fix comment * remove \ in MMLogger * Fix lint * roll back pre-commit-hook * Fix hook unit test * Fix comments * remove \t in log and add docstring * Fix as comment * should not accept other arguments if corresponding instance has been created * fix logging ddp file saving * fix logging ddp file saving * move log processor to logging * move log processor to logging * remove current datalaoder * fix docstring * fix unit test * add learing rate in messagehub * Support output training/validation/testing message after iterations/epochs * fix docstring * Fix IterBasedRunner log string * Fix IterBasedRunner log string * Support parse validation loss in log processor
Showing
- mmengine/hooks/hook.py 9 additions, 10 deletionsmmengine/hooks/hook.py
- mmengine/hooks/iter_timer_hook.py 52 additions, 10 deletionsmmengine/hooks/iter_timer_hook.py
- mmengine/hooks/logger_hook.py 92 additions, 369 deletionsmmengine/hooks/logger_hook.py
- mmengine/hooks/optimizer_hook.py 3 additions, 0 deletionsmmengine/hooks/optimizer_hook.py
- mmengine/logging/__init__.py 4 additions, 1 deletionmmengine/logging/__init__.py
- mmengine/logging/log_processor.py 409 additions, 0 deletionsmmengine/logging/log_processor.py
- mmengine/logging/logger.py 9 additions, 9 deletionsmmengine/logging/logger.py
- mmengine/runner/runner.py 10 additions, 1 deletionmmengine/runner/runner.py
- tests/test_hook/test_hook.py 4 additions, 5 deletionstests/test_hook/test_hook.py
- tests/test_hook/test_iter_timer_hook.py 55 additions, 14 deletionstests/test_hook/test_iter_timer_hook.py
- tests/test_hook/test_logger_hook.py 67 additions, 278 deletionstests/test_hook/test_logger_hook.py
- tests/test_hook/test_optimizer_hook.py 2 additions, 2 deletionstests/test_hook/test_optimizer_hook.py
- tests/test_logging/test_log_processor.py 242 additions, 0 deletionstests/test_logging/test_log_processor.py
- tests/test_runner/test_runner.py 1 addition, 1 deletiontests/test_runner/test_runner.py
Loading
Please register or sign in to comment