Skip to content
Snippets Groups Projects
  1. Apr 06, 2023
    • Mashiro's avatar
      [Refactor] Refactor checkpointhook unit tests (#789) · 2dbc8ed2
      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
      Unverified
      2dbc8ed2
  2. Mar 30, 2023
  3. Mar 29, 2023
  4. Mar 13, 2023
    • Mashiro's avatar
      [Enhancement] Support writing data to `vis_backend` with prefix (#972) · 8063d2cc
      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
      Unverified
      8063d2cc
  5. Mar 06, 2023
  6. Feb 27, 2023
  7. Feb 21, 2023
  8. Feb 13, 2023
  9. Jan 16, 2023
    • LEFTeyes's avatar
      [Feature] Support ReduceOnPlateauParamScheduler(#819) · 0b59a90a
      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: default avatarMashiro <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: default avatarMashiro <57566630+HAOCHENYE@users.noreply.github.com>
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarMashiro <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: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>
      
      * [Test] fix some defects
      
      Co-authored-by: default avatarMashiro <57566630+HAOCHENYE@users.noreply.github.com>
      Co-authored-by: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>
      Unverified
      0b59a90a
  10. Jan 12, 2023
  11. Dec 28, 2022
  12. Dec 27, 2022
    • Mashiro's avatar
      Make TTAModel compatible with FSDP (#611) · a9b6753f
      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: default avatarZaida 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: default avatarRangiLyu <lyuchqi@gmail.com>
      
      Co-authored-by: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>
      Co-authored-by: default avatarRangiLyu <lyuchqi@gmail.com>
      Unverified
      a9b6753f
    • BayMax_BHL's avatar
      [Feature] Add ProfilerHook (#768) · 16589ce3
      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: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>
      Unverified
      16589ce3
  13. Nov 22, 2022
    • songyuc's avatar
      [Feature] Add get_hooks_info() to print hooks messages (#672) · 6636f07c
      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
      Unverified
      6636f07c
  14. Nov 21, 2022
  15. Nov 08, 2022
  16. Oct 28, 2022
  17. Oct 27, 2022
  18. Oct 18, 2022
  19. Sep 26, 2022
    • Zaida Zhou's avatar
      [Refactor] Refactor fileio without breaking back compatibility (#533) · ed84dfd3
      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
      Unverified
      ed84dfd3
  20. Sep 22, 2022
  21. Sep 09, 2022
  22. Aug 26, 2022
  23. Aug 24, 2022
    • Mashiro's avatar
      [Refactor] Refactor data flow to make the interface more natural (#468) · 8770c6c7
      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
      Unverified
      8770c6c7
    • Zaida Zhou's avatar
      [Refactor] Refactor code structure (#395) · 7e1d7af2
      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
      Unverified
      7e1d7af2
  24. Aug 23, 2022
  25. Aug 17, 2022
  26. Aug 11, 2022
  27. Aug 08, 2022
  28. Aug 04, 2022
  29. Aug 02, 2022
  30. Jul 20, 2022
  31. Jul 04, 2022
Loading