- Apr 20, 2023
-
-
Luo Yihang authored
* [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>
-
- Apr 12, 2023
-
-
Junwei Zheng authored
-
- Apr 07, 2023
-
-
sung-hwa kim authored
* add vis mlflow backend
-
Mashiro authored
* 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>
-
- Apr 06, 2023
-
-
Mashiro authored
* 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 eeb7a8c5ed2766bf773a9ed28f731fddacd10ac1. * Revert "Revert "remove _get_metric_scope"" This reverts commit 5398255f6fb3dac8341f7d808f0d7d09350fcaae. * Revert "tmp save" This reverts commit cdc9919be8e0a78bbf264c060de2a4396c137d5a. * clean the code * Fix ut * minor fix * use str.replace
-
- Mar 30, 2023
-
-
Mashiro authored
* [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
-
- Mar 29, 2023
-
-
KerwinKai authored
* 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>
-
- Mar 13, 2023
-
-
Mashiro authored
* 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
-
- Mar 06, 2023
-
-
Mashiro authored
* Replace warning with print_log * Add comments for testing warning
-
Hakjin Lee authored
* [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>
-
- Feb 27, 2023
-
-
Zaida Zhou authored
-
- Feb 21, 2023
-
-
Mashiro authored
* 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
-
Mashiro authored
* refactor base hooks * Fix CI
-
luomaoling authored
* Feature NPUProfilerHook * Feature NPUProfilerHook
-
- Feb 13, 2023
-
-
Zaida Zhou authored
* Fix docstring * fix
-
- Jan 16, 2023
-
-
LEFTeyes authored
* [Feature] Add ReduceOnPlateauParamScheduler and change ParamSchedulerHook * [Feature] add ReduceOnPlateauLR and ReduceOnPlateauMomentum * pre-commit check * add a little docs * change position * fix the conflict between isort and yapf * fix ParamSchedulerHook after_val_epoch execute without train_loop and param_schedulers built * Apply suggestions from code review Co-authored-by:
Mashiro <57566630+HAOCHENYE@users.noreply.github.com> * update ReduceOnPlateauParamScheduler, ReduceOnPlateauMomentum and ParamSchedulerHook * fix get need_step_args attribute error in ParamSchedulerHook * fix load_state_dict error for rule in ReduceOnPlateauParamScheduler * add docs for ParamSchedulerHook and fix a few codes * [Docs] add ReduceOnPlateauParamScheduler, ReduceOnPlateauMomentum and ReduceOnPlateauLR docs * [Refactor] adjust the order of import * [Fix] add init check for threshold in ReduceOnPlateauParamScheduler * [Test] add test for ReduceOnPlateauParamScheduler, ReduceOnPlateauLR and ReduceOnPlateauMomentum * [Fix] fix no attribute self.min_value * [Fix] fix numerical problem in tests * [Fix] fix error in tests * [Fix] fix ignore first param in tests * [Fix] fix bug in tests * [Fix] fix bug in tests * [Fix] fix bug in tests * [Fix] increase coverage * [Fix] fix count self._global_step bug and docs * [Fix] fix tests * [Fix] modified ParamSchedulerHook test * Update mmengine/optim/scheduler/param_scheduler.py Co-authored-by:
Mashiro <57566630+HAOCHENYE@users.noreply.github.com> * Apply suggestions from code review Co-authored-by:
Mashiro <57566630+HAOCHENYE@users.noreply.github.com> * [Fix] modified something according to commented * [Docs] add api for en and zh_cn * [Fix] fix bug in test_param_scheduler_hook.py * [Test] support more complicated test modes(less, greater, rel, abs) for ReduceOnPlateauParamScheduler * [Docs] add docs for rule * [Fix] fix pop from empty list bug in test * [Fix] fix check param_schedulers is not built bug * [Fix] fix step_args bug and without runner._train_loop bug * [Fix] fix step_args bug and without runner._train_loop bug * [Fix] fix scheduler type bug * [Test] rename step_args to step_kwargs * [Fix] remove redundancy check * [Test] remove redundancy check * Apply suggestions from code review Co-authored-by:
Zaida Zhou <58739961+zhouzaida@users.noreply.github.com> * [Test] fix some defects Co-authored-by:
Mashiro <57566630+HAOCHENYE@users.noreply.github.com> Co-authored-by:
Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
-
- Jan 12, 2023
-
-
Ma Zerun authored
* [Enhance] Support non-scalar type metric value. * Refactor support. * Fix non-scalar tags problem during validation * Update tag processor.
-
- Dec 28, 2022
-
-
Zaida Zhou authored
* [Enhance] Ensure metrics is not empty when saving best ckpts * fix warn to warning * delete a unnecessary method
-
- Dec 27, 2022
-
-
Mashiro authored
* Add build_runner_with_tta and PrepareTTAHook * rename hook file * support build tta runner with runner type * add unit test * Add build_runner_with_tta to index.rst * minor refine * Add runner test cast * Fix unit test * fix unit test * tmp save * pop None if key does not exist * Fix is_model_wrapper and force register class in test_runner * [Fix] Fix is_model_wrapper * destroy group after ut * register module in testcase * pass through unit test * fix as comment * remove breakpoint * remove mmengine/testing/runner_test_cast.py * minor refine * minor refine * minor refine * set default data preprocessor for model * minor refine * minor refine Co-authored-by:
Zaida Zhou <58739961+zhouzaida@users.noreply.github.com> * fix lint * Fix unit test * replace with in ImgDataPreprocessor * Fix as comment * add inference tutorial in advanced tutorial * update index.rst * add tta example * refine tta tutorial * Add english tutorial * add note for build_runner_with_tta * Fix as comment * add examples * remove chinese comment * Update docs/en/advanced_tutorials/test_time_augmentation.md Co-authored-by:
RangiLyu <lyuchqi@gmail.com> Co-authored-by:
Zaida Zhou <58739961+zhouzaida@users.noreply.github.com> Co-authored-by:
RangiLyu <lyuchqi@gmail.com>
-
BayMax_BHL authored
* [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * [Feature] Add profiler hook functionality * Apply suggestions from code review * Update mmengine/hooks/profiler_hook.py Co-authored-by:
Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
-
- Nov 22, 2022
-
-
songyuc authored
* Add test of get_hooks_info() * Change to use original Runner for get_hook_info() test * Change to test after_train_iter hooks for get_hook_info() * Complement the stages list * Add logging hooks information in Runner.__init__() * Rearrange the stages list * Restore the stages to tuple type * Clean the unnecessary changes * Replace statement with TestCase's methods * add test stages in method_stages_map * change the hooks info into a f-string * return list(trigger_stages) directly * change keys of method_stages_map * Fix previous changes to method_stages_map.keys
-
- Nov 21, 2022
-
-
shenmishajing authored
* fix add graph func is not called bug * move add graph call to NaiveVisualizationHook.before_train * Update mmengine/hooks/naive_visualization_hook.py Co-authored-by:
Zaida Zhou <58739961+zhouzaida@users.noreply.github.com> * adjust param sequence and add docstring * minor refine * Update mmengine/visualization/vis_backend.py * update version info Co-authored-by:
Zaida Zhou <58739961+zhouzaida@users.noreply.github.com> Co-authored-by:
HAOCHENYE <21724054@zju.edu.cn>
-
- Nov 08, 2022
-
-
Mashiro authored
-
- Oct 28, 2022
-
-
Mashiro authored
* [Fix] resume std and mean * refine docstring Co-authored-by:
Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
-
- Oct 27, 2022
-
-
Hakjin Lee authored
* [Feature] Support torch ZeRORedundancyOptimizer Co-authored-by:
Junhwa Song <ethan9867@gmail.com> Signed-off-by:
Junhwa Song <ethan9867@gmail.com> Signed-off-by:
Hakjin Lee <nijkah@gmail.com> * lint * Fix saving optimizer state_dict * Fix handling import error * Add test case * fix UT * Revert "fix UT" This reverts commit dd64538960ff7440c6020f533d43945ffc23f2d2. * fix handling import in UT * Fix saving zero checkpoint and delete redundant master_only * lint * test unittest * Fix handling impor error * Fix UT condition * Edit docstrings * Fix typo * Skip redundant procudure in checkpoint hook * fix typo again * Update mmengine/optim/optimizer/zero_optimizer.py Co-authored-by:
Zaida Zhou <58739961+zhouzaida@users.noreply.github.com> * Add api info * lint * Fix lint * Handling AmpOptimWrapper case * handling overlap_with_ddp * Fix error Signed-off-by:
Junhwa Song <ethan9867@gmail.com> Signed-off-by:
Hakjin Lee <nijkah@gmail.com> Co-authored-by:
Junhwa Song <ethan9867@gmail.com> Co-authored-by:
Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
-
- Oct 18, 2022
-
-
Mashiro authored
* Fix error format of log message * Fix unit test * remove unnecessary comment
-
- Sep 26, 2022
-
-
Zaida Zhou authored
* [Refactor] Refactor fileio but without breaking bc * handle compatibility * fix format * modify io functions * fix ut * fix ut * rename method names * refine * refine docstring * fix ut in windows * update ut * minor fix * ensure client is not None when closing it * add more examples for list_dir_or_file interface * refine docstring * refine deprecated info * fix ut * add a description for lmdb docstring
-
- Sep 22, 2022
-
-
Qian Zhao authored
-
- Sep 09, 2022
- Aug 26, 2022
-
-
RangiLyu authored
* [Fix] Fix EMAHook trigger train loop init during testing. * fix sync buffer * update ut * fix sync buffer * fix sync buffer
-
- Aug 24, 2022
-
-
Mashiro authored
* [Refactor]: modify interface of Visualizer.add_datasample (#365) * [Refactor] Refactor data flow: refine `data_preprocessor`. (#359) * refine data_preprocessor * remove unused BATCH_DATA alias * Fix type hints * rename move_data to cast_data * [Refactor] Refactor data flow: collate data in `collate_fn` of `DataLoader` (#323) * acollate data in dataloader * fix docstring * refine comment * fix as comment * refactor default collate and psedo collate * foramt test file * fix docstring * fix as comment * rename elem to data_item * minor fix * fix as comment * [Refactor] Refactor data flow: `data_batch` argument of `Evaluator.process is a `dict` (#360) * refine evaluator and metric * compatible with new default collate * replace default collate with pseudo * Handle data_batch in metric * fix unit test * fix unit test * fix unit test * minor refine * make data_batch optional make data_batch optional * rename outputs to predictions * fix ut * rename predictions to outputs * fix docstring * fix docstring * fix unit test * make outputs and data_batch to kwargs * fix unit test * keep signature of metric * fix ut * rename pred_sample arguments to data_sample(Visualizer) * fix loop and ut * [refactor]: Refactor model dataflow (#398) * [Refactor] Refactor data flow: refine `data_preprocessor`. (#359) * refine data_preprocessor * remove unused BATCH_DATA alias * Fix type hints * rename move_data to cast_data * refactor model data flow tmp_commt tmp commit * make val_cfg and test_cfg optional * roll back runner * pass test mmdet * fix as comment fix as comment fix ci in DataPreprocessor * fix ut * fix ut * fix rebase main * [Fix]: Fix test val ddp (#462) * [Fix] Fix docstring and type hint of data flow (#463) * Fix docstring of data flow * change signature of hook * fix unit test * resolve conflicts * fix lint
-
Zaida Zhou authored
* Rename data to structure * adjust the way to import module * adjust the way to import module * rename Structure to Data Structures in docs api * rename structure to structures * support using some modules of mmengine without torch * fix circleci config * fix circleci config * fix registry ut * minor fix * move init method from model/utils to model/weight_init.py * move init method from model/utils to model/weight_init.py * move sync_bn to model * move functions depending on torch to dl_utils * format import * fix logging ut * add weight init in model/__init__.py * move get_config and get_model to mmengine/hub * move log_processor.py to mmengine/runner * fix ut * Add TimeCounter in dl_utils/__init__.py
-
- Aug 23, 2022
-
-
Zaida Zhou authored
* [Refactor] Refactor the import rule * minor refinement * add a comment
-
Zaida Zhou authored
* Move the design of hook to design/hook.md * add relative links in docs * update docstring of hooks * refine checkpointhook docs * refine * fix comments * refine * add logging.md link in hook.md * resolve comments * fix typo
-
- Aug 17, 2022
-
-
Mashiro authored
-
- Aug 11, 2022
- Aug 08, 2022
-
-
Mashiro authored
* BaseAveragedModel support load ckpt without module prefix * refine docstring * allow EMAHook does not load ckpt strictly * add unit test for strict argument of EMAHook * sync remote * sync remote * clean the code * ema hook supports setting start iter * fix unit test * fix as comment * fix as comment * describe kwargs
-
LeoXing1996 authored
* support save best based on multi metrics * add unit test * resolve bugs after rebasing * revise docstring * revise docstring * fix as comment * revise as comment
-