Commit Graph

529 Commits (381c5f103c3c77b55ee8ecf233ce0916eac67b61)
 

Author SHA1 Message Date
Ming-Hsuan-Tu 381c5f103c
[Enhance] Support passing kwargs to update_params (#796)
* [Enhance]

Support step arugments and zero arguments with update_params

* Update mmengine/optim/optimizer/optimizer_wrapper.py

* Update mmengine/optim/optimizer/optimizer_wrapper.py

Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-12-08 13:15:42 +08:00
Youfu 57f6644ea0
Fix the wrong examples for Visualizer.draw_polygons (#798)
* examples wrong

* Update visualizer.py

Thanks, learn more.
solve "lint failed"

* Update visualizer.py
2022-12-08 11:44:59 +08:00
Mashiro 491d71c0ef
[Docs] Replace markdown table with html table (#800) 2022-12-07 22:36:16 +08:00
Mashiro c22e900f2e
Add torch1.13 checking in CI (#752)
* Update CI

* Update CI

* restore python -m pip to pip

* refine
2022-12-07 20:58:57 +08:00
Ma Zerun 6a3028c0ab
[Docs] Translate data transform docs. (#737)
* [Docs] Translate data transform tutorial and migration docs.

* Update according to comments

* Update image link
2022-12-07 11:42:24 +08:00
Ma Zerun fe26c6559e
[Enhance] Support multiple `--cfg-options`. (#759) 2022-12-07 10:44:25 +08:00
Range King bced7d6ef0
[Doc] fix typos in EN contributing.md (#792) 2022-12-06 17:39:03 +08:00
jason_w 8f36b2d3c0
[Docs] Fix document link (#775)
* Fix the document link

* Update mmengine/dataset/base_dataset.py

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-12-06 17:36:14 +08:00
zhouzaida 41c60cc3aa [Docs] Update documentations links in README 2022-12-06 17:22:02 +08:00
RangiLyu 1acdb94d45 [Docs] Translate scheduler tutorial (#466)
* [Doc] Translate scheduler doc

* Apply suggestions from code review

Co-authored-by: Qian Zhao <112053249+C1rN09@users.noreply.github.com>

* Update docs/en/tutorials/param_scheduler.md

Co-authored-by: Qian Zhao <112053249+C1rN09@users.noreply.github.com>

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
Co-authored-by: Qian Zhao <112053249+C1rN09@users.noreply.github.com>
2022-12-06 17:22:02 +08:00
Mashiro 04714ef6cf [Docs] Translate migration docs of model (#728)
* first commit

* Update two column table wrapper

* update two-column table wrapper

* update chinese

* update chinese migrate model with new css

* Apply suggestions from code review

Co-authored-by: Qian Zhao <112053249+C1rN09@users.noreply.github.com>

* Update model.md

* Update docs/en/migration/model.md

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
Co-authored-by: Qian Zhao <112053249+C1rN09@users.noreply.github.com>
2022-12-06 17:22:02 +08:00
Mashiro af408786a2 [Docs] Translate model tutorial (#738)
* translate model first time

* Update docs/en/tutorials/model.md

Co-authored-by: Qian Zhao <112053249+C1rN09@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Qian Zhao <112053249+C1rN09@users.noreply.github.com>
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-12-06 17:22:02 +08:00
Qian Zhao 7f11b5d1f0 [Docs] Translate runner tutorial (#724)
* partially translated the runner tutorial

* more translation done

* finish translation

* minor refine

* minor refine of chinese doc

* Apply suggestions from code review

Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>

* fix as comments

* Apply suggestions from code review

Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-12-06 17:22:02 +08:00
Mashiro 88fd959d68 [Docs] Translate config tutorial (#689)
* First commit

* Fix as comment

* Apply suggestions from code review

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* add content in Predefined fields~

* add content in Predefined fields~

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-12-06 17:22:02 +08:00
yancong 9abf5e04c9 [Docs] Translate fileio doc (#753)
* translate the fileio doc

* Update docs/en/advanced_tutorials/fileio.md

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* Update docs/en/advanced_tutorials/fileio.md

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-12-06 17:22:02 +08:00
Qian Zhao af2788f721 [Docs] Translate logging design (#719)
* translate logging design

* fix as comments

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: liukuikun <24622904+Harold-lkk@users.noreply.github.com>

* fix as comments

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
Co-authored-by: liukuikun <24622904+Harold-lkk@users.noreply.github.com>
2022-12-06 17:22:02 +08:00
Mashiro e4cf5fda10 [Docs] translate initialize docs (#687)
* translate initialize

* Fix as comment

* minor refine

* Fix as comment

* Apply suggestions from code review

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-12-06 17:22:02 +08:00
Mashiro b142774a42 [Docs] Translate migration guide of Runner (#720)
* Translate runner

* minor refine

* update two-column table wrapper

* minor refine

* update chinese

* refine chinese runner

* Apply suggestions from code review

Co-authored-by: Qian Zhao <112053249+C1rN09@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Qian Zhao <112053249+C1rN09@users.noreply.github.com>
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-12-06 17:22:02 +08:00
Qian Zhao d7065cdb7e [Docs] Translate dataset tutorial (#727)
* translate dataset tutorial

* Apply suggestions from code review

Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>

* fix as comments

* minor refine

* Apply suggestions from code review

Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-12-06 17:22:02 +08:00
Mashiro bda8c940d2 [Docs] translate the mangermixin tutorial (#711)
* [Docs] translate the mangermixin tutorial

* Fix as comment

Co-authored-by: Qian Zhao <112053249+C1rN09@users.noreply.github.com>

* Minor refine

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* Remove blank block

* fix lint

Co-authored-by: Qian Zhao <112053249+C1rN09@users.noreply.github.com>
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-12-06 17:22:02 +08:00
Zaida Zhou afd66b42b4 [Docs] Translate examples docs (#715)
* [Docs] Translate examples docs

* Update docs/en/examples/resume_training.md

Co-authored-by: Qian Zhao <112053249+C1rN09@users.noreply.github.com>

Co-authored-by: Qian Zhao <112053249+C1rN09@users.noreply.github.com>
2022-12-06 17:22:02 +08:00
RangiLyu 6e042dcb6d [Doc] Translate scheduler migration (#729)
* [Doc] Translate scheduler migration

* fix
2022-12-06 17:22:02 +08:00
Mashiro 288a7f4abc [Docs] Update two-column table wrapper (#726)
* update two-column table wrapper

* update chinese
2022-12-06 17:22:02 +08:00
Mashiro bfe7d2d467 [Docs] Refactor model.md (#674)
* Refactor model.md

* minor refine

* Fix as comment

* Fix error link

* Fix as comment

* Fix as comment

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* replace Dataloader with DataLoader

* minor refine

* resolve conflict

* fix render code block

* Fix error link

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-12-06 17:22:02 +08:00
Qian Zhao 6482845671 [Doc] Refactor runner tutorial (#657)
* refactor runner tutorial

* remove watermark in picture

* fix as comments

* remove toc in runner tutorial

* Apply suggestions from code review

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* Update docs/zh_cn/tutorials/runner.md

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-12-06 17:22:02 +08:00
Mashiro 11ae76ae3e [Docs] Translate logging docs (#697)
* Translate logging

* Minor refine

* Fix as comment

* Apply suggestions from code review

* Update logging.md

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-12-06 17:22:02 +08:00
Zaida Zhou 32c2c1e3e4 [Docs] Translate hook docs (#709)
* [Docs] Translate hook docs

* fix indent

* Apply suggestions from code review

Co-authored-by: Qian Zhao <112053249+C1rN09@users.noreply.github.com>

Co-authored-by: Qian Zhao <112053249+C1rN09@users.noreply.github.com>
2022-12-06 17:22:02 +08:00
Qian Zhao daab8e067d [Doc] Translate runner design (#710)
* translate runner design

* Update docs/en/design/runner.md

* fix as comments

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-12-06 17:22:02 +08:00
Yining Li 1323251c02 [Doc] Refine evaluation docs (#701)
* refine evaluation docs

* fix link

* Update docs/zh_cn/design/evaluation.md

Co-authored-by: Qian Zhao <112053249+C1rN09@users.noreply.github.com>

* Update docs/zh_cn/tutorials/evaluation.md

Co-authored-by: RangiLyu <lyuchqi@gmail.com>

* Update docs/zh_cn/tutorials/evaluation.md

Co-authored-by: RangiLyu <lyuchqi@gmail.com>

* resolve comments

* Apply suggestions from code review

* Update docs/zh_cn/tutorials/evaluation.md

Co-authored-by: Qian Zhao <112053249+C1rN09@users.noreply.github.com>
Co-authored-by: RangiLyu <lyuchqi@gmail.com>
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-12-06 17:22:02 +08:00
Qian Zhao ee75ad4396 [Docs] Translate distributed documentation (#712) 2022-12-06 17:22:02 +08:00
Mashiro 9033c70a3e [Docs] Refine `optim_wrapper.md` (#676)
* refine optim_wrapper.md

* minor refine

* Minore refine
2022-12-06 17:22:02 +08:00
RangiLyu 66ba4f749d [Doc] Update scheduler doc (#670)
* [Doc] Update scheduler doc.

* Update docs/zh_cn/tutorials/param_scheduler.md

* Update docs/zh_cn/tutorials/param_scheduler.md

* Update docs/zh_cn/tutorials/param_scheduler.md

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-12-06 17:22:02 +08:00
Qian Zhao bcbfa20c8b [Doc] Add dataset & dataloader tutorial (#696)
* dataset tutorial abstract

* complete dataloader & dataset tutorial

* minor fix

* minor fix

* resolve comments

* rename some link to be more specific

* add warning to manually constructed sampler

* fix as comments
2022-12-06 17:22:02 +08:00
RangiLyu 134b63c363 [Doc] Add cross library en doc (#703)
* [Doc] Add cross library en doc.

* fix

* fix

* Apply suggestions from code review

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-12-06 17:22:02 +08:00
Zaida Zhou fed4a9224b [Docs] Refine hook docs (#704) 2022-12-06 17:22:02 +08:00
Qian Zhao af0e29094b [Doc] Adjust docs structure (#646)
* adjust docs structure

* en caption rename

* Update docs/en/index.rst

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* Update docs/en/index.rst

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* Update docs/zh_cn/index.rst

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-12-06 17:22:02 +08:00
Qian Zhao bd6791382f
[Fix] BaseModel & BaseDataPreprocessor `to` method to be consistent with torch.nn.Module (#783)
* fix BaseModel `to` method to be consistent with torch.nn.Module

* fix data_preprocessor as well

* fix docstring alignment

* fix docstring alignment
2022-12-05 18:04:47 +08:00
Mashiro 0dd0a22e75
[Docs] Add gif to 15 min tutorial (#748)
* add gif

* replace gif

* minor refine

* replace gif with higher resolution
2022-12-04 11:21:40 +08:00
Mashiro a49985f637
[Docs] Add contributing.md and code_style.md (#754)
* add contributing.md

* refine

* Fix as comment
2022-12-04 10:52:11 +08:00
Qian Zhao 5ea21f2424
[Fix] Fix hub.get_model failure on some mmcls models (#784) 2022-12-04 10:40:48 +08:00
SUNYC 7e787d8ffa
[Enhance] Add a new parameter conf_path in PetrelBackend (#774)
* feat: add conf_path in PetrelBackend

* Update mmengine/fileio/backends/petrel_backend.py

Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
Co-authored-by: Mashiro <57566630+HAOCHENYE@users.noreply.github.com>
2022-11-29 14:23:16 +08:00
vansin d3d7528835
[Docs] Update the qq group link (#760)
* [Docs] change the qq group link

* [Doc] update qq group link
2022-11-25 13:13:35 +08:00
Mashiro 17624d250e
Bump version to v0.3.2 (#763)
* Bump version to v0.3.2

* minor refine

* Apply suggestions from code review

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* remove highlights

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-11-24 23:38:26 +08:00
liukuikun 5f58517069
[Enchance] remove redundant attributes in BaseDataElement (#690)
* remove redundant attribute in dump or print

* optimize efficiency

Co-authored-by: HAOCHENYE <21724054@zju.edu.cn>
2022-11-24 21:36:19 +08:00
Mashiro ded73f3a56
[Enhance] Enhance compatibility of `revert_sync_batchnorm` (#695)
* [Enhance] Enhance revert_sync_batchnorm and convert_sync_batchnorm

* [Enhance] Enhance revert_sync_batchnorm and convert_sync_batchnorm

* Fix unit test

* Add coments

* Refine comments

* clean the code

* revert convert_sync_batchnorm

* revert convert_sync_batchnorm

* refine comment

* fix CI

* fix CI
2022-11-24 16:41:54 +08:00
BayMax_BHL 9b4dbb3131
Update the repo url of pyupgrade pre-commit hook (#756) 2022-11-23 20:11:53 +08:00
cir7 0e6bb48b12
[Enhance] Support eta_min_ratio in CosineAnnealingParamScheduler (#725)
* [Enhance] support eta_min_ratio in CosineAnnealingParamScheduler

* [doc] fix docstring

* [Enhance] add ut for eta_min_ratio

* [doc] update docstring

* avoid bc-breaking of eta_min

* [doc] add docstring in CosineAnnealingParamScheduler and CosineAnnealingMomentum

* Apply suggestions from code review

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-11-22 20:19:16 +08:00
songyuc 6636f07cfe
[Feature] Add get_hooks_info() to print hooks messages (#672)
* 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
2022-11-22 20:02:29 +08:00
Mashiro b06234cfcd
[Enhance] Right align the log (#436)
* right allign the log

* fix as comment

* Add comments for magic number 3

* remove max_len_str

* Update mmengine/runner/log_processor.py

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-11-21 11:55:18 +08:00
Mashiro c478bdca27
[Enhance] enhance runner test case (#631)
* Add runner test cast

* Fix unit test

* fix unit test

* 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

* fix as comment

* minor refine

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* fix lint

Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
2022-11-21 11:54:05 +08:00