KerwinKai
5b35c5b6ad
[Feature] Publish models after training if published_keys is set in CheckpointHook ( #987 )
...
* 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>
2023-03-29 10:25:14 +08:00
Julius Zhang
aeb5c454c5
[Docs] Fix typo in hook document ( #980 )
2023-03-07 12:53:30 +08:00
Qian Zhao
c712070c90
[Docs] Resolve warnings in sphinx build ( #915 )
...
* add ZeroOptimizer to optim
* resolve `duplicate label` warnings
* upgrade docutils && shpinx to resolve `unknown directive or role` warnings
* fix typo
* resolve literal_block && heading warnings
* resolve json literal_block warnings
* resolve python literal_block warnings
* resolve bunches of reference warnings
* resolve bunches of docstring warnings
* resolve warnings in autosummary
* resolve remaining warnings in en docs
* resolve heading warnings in zh_cn docs
* resolve remaining warnings in zh_cn docs
* fix as comments
* fix as comments
2023-02-08 20:36:57 +08:00
Zaida Zhou
fed4a9224b
[Docs] Refine hook docs ( #704 )
2022-12-06 17:22:02 +08:00
Xiangxu-0103
a530c0d671
[Docs] Refine docs/zh_cn/tutorials ( #694 )
2022-11-09 14:27:45 +08:00
Qian Zhao
09a195b24c
[Docs] Fix Chinese docs whitespaces ( #521 )
...
* change pre-commit-config
* modify docs with pre-commit hook
* change pre-commit-config-zh-cn
* fallback readme.md
Co-authored-by: HAOCHENYE <21724054@zju.edu.cn>
2022-10-17 14:20:00 +08:00
Zaida Zhou
a5eb179153
[Docs] Fix the docstring of model sub-package ( #573 )
2022-10-08 11:19:30 +08:00
Shaun
925f18347a
[Doc]: fix spell error ( #548 )
2022-09-26 14:33:46 +08:00
Mashiro
8770c6c7fc
[Refactor] Refactor data flow to make the interface more natural ( #468 )
...
* [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
2022-08-24 22:04:55 +08:00
Zaida Zhou
6c607bd26f
[Docs] Simplify hook docs ( #428 )
...
* 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
2022-08-23 16:20:47 +08:00
Zaida Zhou
6501d21eab
[Fix]: fix mdformat version to support python3.6 ( #315 )
2022-06-21 16:32:58 +08:00
Zaida Zhou
e76517c63a
[Doc]: Update hooks docs ( #317 )
2022-06-21 15:13:53 +08:00
RangiLyu
4705e1fe3d
[Enhance] Add RuntimeInfoHook to update runtime information. ( #254 )
...
* [Enhance] Add RuntimeInfoHook to update runtime information.
* move lr to runtime info
* docstring
* resolve comments
* update ut and doc
2022-05-26 14:35:37 +08:00
RangiLyu
11688507ba
[Fix] Fix some bugs in hooks and runner. ( #242 )
...
* [Fix] Fix some bugs in hooks and runner.
* fix markdown
* fix latex formula
* resolve comments
2022-05-20 17:18:24 +08:00
Zaida Zhou
f5867f8442
Replace markdownlint with mdformat to avoid installing ruby ( #233 )
...
* Replace markdownlint with mdformat to avoid installing ruby
* fix circleci
2022-05-17 20:52:22 +08:00
Zaida Zhou
53101a1ab1
[Docs] Refine hook documentation ( #181 )
...
* Modify hook documentation
* reslove comments
2022-04-20 13:28:26 +08:00
Zaida Zhou
7313173405
[Docs] Add hooks tutorial ( #38 )
...
* [Docs] Add hooks tutorial
* improve the description about hooks
* Add OptimizerHook usages
* fix comments
* fix comments
* fix comments
* fix comments
* fix typo
* refine description
* refactor
* refactor
* add a sentence to improve docs
* briefly introduce the hook of pytorch
* refactor the order of sections
* improve the description about hooks
* improve
* fix comments
* update priorities
* improve description
* refactor title
* fix typo
* reorder priority of hook
* fix typo
* fix comments
* remove the distributed argument from SyncBuffersHook
2022-03-01 11:57:29 +08:00