Skip to content
Snippets Groups Projects
  1. Jan 16, 2023
    • Mashiro's avatar
      [Docs] Add Chinese documentation for inferencer (#884) · 50465a20
      Mashiro authored
      
      * [Feature] Add BaseInferencer (#773)
      
      * Update BaseInferencer
      
      * Fix ci
      
      * Fix CI and rename iferencer to infer
      
      * Fix CI
      
      * Add renamed file
      
      * Add test file
      
      * Adjust interface sequence
      
      * refine preprocess
      
      * Update unit test
      
      Update unit test
      
      * Update unit test
      
      * Fix unit test
      
      * Fix as comment
      
      * Minor refine
      
      * Fix docstring and support load image from different backend
      
      * Support load collate_fn from downstream repos, refine dispatch
      
      * Minor refine
      
      * Fix lint
      
      * refine grammar
      
      * Remove FileClient
      
      * Refine docstring
      
      * add rich
      
      * Add list_models
      
      * Add list_models
      
      * Remove backend args
      
      * Minor refine
      
      * Fix typos in docs and type hints (#787)
      
      * [Fix] Add _inputs_to_list (#795)
      
      * Add preprocess inputs
      
      * Add type hint
      
      * update api/infer in index.rst
      
      * rename preprocess_inputs to _inputs_to_list
      
      * Fix doc format
      
      * Update infer.py
      
      Co-authored-by: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>
      
      * [Fix] Fix alias type (#801)
      
      * [Enhance] Support loading model config from checkpoint (#864)
      
      * first commit
      
      * [Enhance] Support build model from weight
      
      * minor refine
      
      * Fix type hint
      
      * refine comments
      
      * Update docstring
      
      * refine as comment
      
      * Add  method
      
      * Refine docstring
      
      * Fix as comment
      
      * refine comments
      
      * Refine warning message
      
      * Fix unit test and refine comments
      
      * add infer.md
      
      * minor refine
      
      * minor refine
      
      * minor refine
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>
      
      * Fix conflicts and minor refine
      
      * minor refine
      
      * Fix as comment
      
      Co-authored-by: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>
      Co-authored-by: default avatarTong Gao <gaotongxiao@gmail.com>
  2. Dec 23, 2022
  3. Aug 08, 2022
  4. Jul 13, 2022
    • Mashiro's avatar
      [Enhance] Add `build_model_from_cfg` (#328) · 6b608b4e
      Mashiro authored
      * clean code
      
      * fix as comment
      
      * fix as comment
      
      * add get_registry_by_scope method
      
      * add unit test and docstring example
      
      * rename get_registry_by_scope to switch_scope_and_registry
      
      * move build function to registry/builder
      
      * fix docstring
      
      * rename builder->registry_builder, move build_from_cfg to registry_builder
      
      rename builder->registry_builder, move build_from_cfg to registry_builder
      
      * rename registry_builder to build_function
      
      rename registry_builder to build_function
      
      * fix docstring and type hint
      
      * rename build_function to build_functions
  5. Jun 10, 2022
  6. Jun 06, 2022
  7. Jun 01, 2022
    • Mashiro's avatar
      [Feature] Add optimizer wrapper (#265) · 3e3866c1
      Mashiro authored
      
      * Support multiple optimizers
      
      * minor refinement
      
      * improve unit tests
      
      * minor fix
      
      * Update unit tests for resuming or saving ckpt for multiple optimizers
      
      * refine docstring
      
      * refine docstring
      
      * fix typo
      
      * update docstring
      
      * refactor the logic to build multiple optimizers
      
      * resolve comments
      
      * ParamSchedulers spports multiple optimizers
      
      * add optimizer_wrapper
      
      * fix comment and docstirng
      
      * fix unit test
      
      * add unit test
      
      * refine docstring
      
      * RuntimeInfoHook supports printing multi learning rates
      
      * resolve comments
      
      * add optimizer_wrapper
      
      * fix mypy
      
      * fix lint
      
      * fix OptimizerWrapperDict docstring and add unit test
      
      * rename OptimizerWrapper to OptimWrapper, OptimWrapperDict inherit OptimWrapper, and fix as comment
      
      * Fix AmpOptimizerWrapper
      
      * rename build_optmizer_wrapper to build_optim_wrapper
      
      * refine optimizer wrapper
      
      * fix AmpOptimWrapper.step, docstring
      
      * resolve confict
      
      * rename DefaultOptimConstructor
      
      * fix as comment
      
      * rename clig grad auguments
      
      * refactor optim_wrapper config
      
      * fix docstring of DefaultOptimWrapperConstructor
      
      fix docstring of DefaultOptimWrapperConstructor
      
      * add get_lr method to OptimWrapper and OptimWrapperDict
      
      * skip some amp unit test
      
      * fix unit test
      
      * fix get_lr, get_momentum docstring
      
      * refactor get_lr, get_momentum, fix as comment
      
      * fix error message
      
      Co-authored-by: default avatarzhouzaida <zhouzaida@163.com>
  8. May 25, 2022
  9. May 24, 2022
  10. May 05, 2022
  11. Apr 15, 2022
  12. Apr 01, 2022
  13. Mar 28, 2022
    • Mashiro's avatar
      [Feature] add defaut scope (#149) · 563b4bad
      Mashiro authored
      * add defaut scope
      
      * Fix docstring
      
      * override get_current_instance method in DefaultScope
      
      clean meta nameing
      
      * remove default mmengine argument of DefaltScope
      
      remove default mmengine argument of DefaltScope
      
      remove default mmengine argument of DefaltScope
      
      * Fix unit test
      
      Fix unit test
      
      * Fix example in docstring
      
      * add explaination of DefaultScope
  14. Mar 14, 2022
    • Zaida Zhou's avatar
      [Feature] Add Runner and Loop (#86) · 248ad9ae
      Zaida Zhou authored
      * [Feature] Add Runner and Loop
      
      * refine docstring
      
      * refine docstring
      
      * refine __init__ of Runner
      
      * add Runner.save_checkpoint
      
      * add comment for data_batch
      
      * rename validation_cfg to val_cfg
      
      * update branch
      
      * update branch
      
      * discard wear reference
      
      * set seed for torch in dataloader worker
      
      * refine comments
      
      * reorder methods
      
      * import module in __init__.py
      
      * add runner.load_checkpoint
      
      * rename attributes
      
      * fix indent
      
      * fix indent
      
      * add comment for LOOPS
      
      * add example for methods
      
      * add example for methods
      
      * refine examples
      
      * add Runner.resume and refactor register_hooks
      
      * remove type hint of runner in CheckpointHook
      
      * rename before_run to before_train
      
      * remove collate
      
      * add before_run after_run for loop.run
      
      * dummy collate_fn
      
      * add more unit tests
      
      * move call_hook('before_run') to runner
      
      * minor fix
      
      * add comments for collate_fn
      
      * fix type hint
      
      * refactor logic to load or resume checkpoint
      
      * fix typo
      
      * add comments for IterBasedTrainLoop
      
      * refactor unit tests
      
      * fix unit tests
      
      * refactor
      
      * fix setup_env
      
      * refine
      
      * minor fix
      
      * Merge branch 'main' of github.com:open-mmlab/mmengine into zzd/add-runner
      
      * minor fix
      
      * minor fix
      
      * refine
      
      * refactor unit tests
      
      * fix unit tests
      
      * add launcher property
      
      * add logger, message_hub and writer unit tests
      
      * add cur_dataloader attribute for runner
      
      * fix IterBasedTrainLoop
      
      * add torch.no_grad decorator
      
      * add master_only decorator for save_checkpoint
      
      * add before_test_epoch in TestLoop
      
      * refactor load_or_resume method
      
      * refine docstring
      
      * fix typo
      
      * build_dataloader can handle dataset object
      
      * add dump_config for runner
      
      * collate_fn should not a lambda function
      
      * minor fix
      
      * refine docstring
      
      * fix unit tests
      
      * improve comments
      
      * refine unit tests
      
      * rename collate_fn to pseduo_collate
      
      * add 'TODO' tag
  15. Mar 07, 2022
    • Haian Huang(深度眸)'s avatar
      Add writer (#74) · 824be950
      Haian Huang(深度眸) authored
      * add writer
      
      * update
      
      * update
      
      * update docstr
      
      * update unittest
      
      * update unittest
      
      * fix comment
      
      * update unittest
      
      * fix comment
      
      * fix comment
      
      * fix comment
      
      * fix comment
      
      * update
    • liukuikun's avatar
      Visualizer (#67) · 7acaca14
      liukuikun authored
      * [WIP] Visualizer
      
      * add draw featmap
      
      * update docstring
      
      * update docstring
      
      * update docstring
      
      * fix comment
      
      * fix comment
      
      * fix comment
      
      * fix comment
      
      * fix comment
  16. Feb 26, 2022
  17. Feb 24, 2022
  18. Feb 16, 2022
Loading