Tong Gao
a6dfde5e13
[CI] Full tests ( #402 )
...
* [CI] Full tests
* Add github tests
* fix
* fix typo
Co-authored-by: zhouzaida <zhouzaida@163.com>
2022-08-29 15:34:08 +08:00
Zaida Zhou
2f09342663
[Docs] Refine registry docs ( #443 )
...
* [Docs] Refine registry docs
* explain how to use _scope_
* refine
2022-08-29 14:50:48 +08:00
Zaida Zhou
dcab0f5055
[Docs] Add resume training examples ( #407 )
...
* [Docs] Add resume training examples
* refine
* rename filename
* minor refinement
* fix comments
* resolve comments
* resolve comments
2022-08-29 14:47:31 +08:00
Mashiro
d68fd5a654
[Docs] Add docs for `OptimWrapper` ( #411 )
...
* add optimizer wrapper docs
* remove optimizer.md
* minor refine
* Fix as comment
* minor refine
* tmp save ipynb
* add default constructor docs
* remove ipynb
* fix as comment
* remove color charactor
* fix as comment
2022-08-28 17:11:58 +08:00
Mashiro
576e5c8f91
[Fix] Regist pytorch ddp and dp to `MODEL_WRAPPERS`, add unit test to `is_model_wrapper` ( #474 )
...
* regist pytorch ddp and dp, add unit test
* minor refine
* Support check custom wrapper
* enhance ut
2022-08-28 17:09:41 +08:00
Mashiro
d0a74f9af6
Fix set_random_seed ( #477 )
2022-08-26 16:49:02 +08:00
Tao Gong
54e7812926
[Doc]: Explain the priority of dataset.metainfo in basedataset.md ( #476 )
...
* Update basedataset.md
* Update basedataset.md
* Update basedataset.md
* Update basedataset.md
* Slight rephrase
Co-authored-by: Wenwei Zhang <40779233+ZwwWayne@users.noreply.github.com>
2022-08-26 16:34:04 +08:00
Mashiro
58678234a7
[Enhance] Support pass arguments to `OptimWrapper.step/backward/zero_grad` ( #472 )
...
* add args to OptimWrapper.step backward zero_grad
* minor refine
* minor refine
2022-08-26 14:34:13 +08:00
RangiLyu
8d25dbdeda
[Fix] Fix EMAHook trigger train loop and AveragedModel sync buffer. ( #467 )
...
* [Fix] Fix EMAHook trigger train loop init during testing.
* fix sync buffer
* update ut
* fix sync buffer
* fix sync buffer
2022-08-26 14:21:56 +08:00
RangiLyu
18a0338c91
[Docs] How to migrate scheduler. ( #456 )
...
* [Doc] Migrate scheduler.
* [Doc] Migrate scheduler.
* update
* resolve comments
* resolve comments
2022-08-26 11:35:33 +08:00
Mashiro
38ae566632
[Fix] Add `set_random_seed` function in MMEngine ( #464 )
...
* add set random seed fun
* fix conflict
* allign the previous version
2022-08-26 11:33:14 +08:00
Haian Huang(深度眸)
4bd00bc85c
[Docs] Add visualizer docs ( #418 )
...
* Add Visualizer tutorials
* Add Visualizer designs
* update
* update
* update
* fix commit
* add demo image
* simplify code according to #440 and add some results picture
* replace image url
* update
Co-authored-by: liukuikun <liukuikun@sensetime.com>
2022-08-26 10:01:04 +08:00
Mashiro
5d27504a06
[Fix]: fix deep copy data list item ( #471 )
2022-08-25 16:53:32 +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
7e1d7af2d9
[Refactor] Refactor code structure ( #395 )
...
* 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
2022-08-24 19:14:07 +08:00
Zaida Zhou
486d8cda56
[Refactor] Refactor the import rule ( #459 )
...
* [Refactor] Refactor the import rule
* minor refinement
* add a comment
2022-08-23 18:58:36 +08:00
Zaida Zhou
a9ad09bded
[Fix] Fix utils ut ( #458 )
2022-08-23 16:56:47 +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
5e17dd7cd4
[Docs] Add speed training examples ( #408 )
...
* [Docs] Add speed training examples
* refine
* refine
* rename filename
* minor refine
2022-08-23 11:55:18 +08:00
Tao Gong
7fc0a51aae
[Doc]: Update the tutorials of basedataset ( #445 )
...
* modify the tutorials of basedataset
* tmp commit
2022-08-23 11:54:38 +08:00
Haian Huang(深度眸)
ca282aee9e
[Doc]: add save_gpu_memory docs ( #419 )
...
* Add save_gpu_memory docs
* update
* fix comment
* fix comment
2022-08-22 18:10:28 +08:00
liukuikun
bb56cf42ab
[Visualizer] use FigureManager to manage figure to avoid affecting plt.show() outside Visualizer( #440 )
...
* figure in Visualizer is not managed by plt
* encapsulate code and remove unused code
2022-08-22 17:16:14 +08:00
Zaida Zhou
b75962a660
Migrate utils from mmcv ( #447 )
2022-08-22 11:51:56 +08:00
RangiLyu
5e1ef1dd6c
[Docs] Update runner documents. ( #430 )
...
* [Doc] Update runner documents.
* update
* fix link
* update
* update
* Update import manner of Runner
Co-authored-by: Wenwei Zhang <40779233+ZwwWayne@users.noreply.github.com>
2022-08-22 11:30:49 +08:00
yancong
d6bf587d68
[Docs] Modify distributed tutorials ( #421 )
...
* docs: modify distributed tutorials
* docs: modify distributed tutorials
* docs(zh_cn/tutorials): fix wrong modifications in distributed.md
2022-08-21 14:58:25 +08:00
Zaida Zhou
e8ee1926b8
[Enhancement] Improve revert_sync_batchnorm to support mmcv SyncBN ( #448 )
2022-08-21 14:54:52 +08:00
Mashiro
e907931fb8
Fix unit tests ( #449 )
2022-08-21 14:54:24 +08:00
Zaida Zhou
429bb27972
[Refactor]: migrate LMDB backends and modifications from open-mmlab/mmcv#1764 and open-mmlab/mmcv#1747 ( #426 )
...
* Add fileio ut
* pick modification from master branch
* pick modification from mmcv #1764
* test fileio without mmcv
* remove unnecessary checking
2022-08-19 16:06:49 +08:00
RangiLyu
38ab4bec5e
[Docs] Update scheduler doc. ( #439 )
...
* [Docs] Update scheduler doc.
* update
2022-08-19 11:09:57 +08:00
Mashiro
4abf1a0454
[Enhance] Support build evaluator from list of built metric ( #423 )
...
* Support build evaluator from list of built metric
* regist evaluator
* fix as comment
* add unit test
2022-08-19 10:56:51 +08:00
Zaida Zhou
10330cde9d
[Docs] Add installation docs ( #406 )
...
* Add installation docs
* fix typo
2022-08-19 10:48:45 +08:00
Mashiro
d6ad01a4cf
[Fix]: fix ci ( #441 )
2022-08-18 14:04:19 +08:00
Mashiro
e08b9031fc
[Enhance] Support building optimizer wrapper from built Optimizer instance ( #422 )
...
* support build optimizer wrapper from built Optimizer instance
* refine comments
2022-08-17 19:17:00 +08:00
Mashiro
a706bbc018
[Fix]: fix error and add unit test ( #429 )
2022-08-17 19:16:00 +08:00
Zaida Zhou
f5cb45dc33
[Doc]: fix typo in installation command ( #433 )
2022-08-16 15:42:27 +08:00
Mashiro
381aa429df
[Fix] Make default scope of runner be `mmengine` ( #435 )
...
* make default scope of runner be mmengine
* fix as comment
2022-08-16 15:41:57 +08:00
Mashiro
ac8686e28b
[Fix] Make logger compatible with python3.6 ( #437 )
...
* Makr logger compatible with python3.6
* minor refine
* fix as comment
2022-08-16 15:38:52 +08:00
Zaida Zhou
7b3397c614
Add .pre-commit-config-zh-cn.yaml ( #405 )
2022-08-15 11:50:53 +08:00
Zaida Zhou
26342f3586
[Docs] Add the steps to build docs ( #409 )
2022-08-15 11:47:08 +08:00
Kai Hu
3b1c45bb76
[Fix] fix the docstring to match the order of the function return ( #415 )
2022-08-15 11:46:19 +08:00
Zaida Zhou
4637c49640
[Refactor] Rename test_hook to test_hooks ( #425 )
2022-08-15 11:45:07 +08:00
Zaida Zhou
8d620e59fb
Directly import from collections.abc ( #427 )
2022-08-15 11:43:42 +08:00
Mashiro
438e8e7498
BaseModel support recursively set the device of data_preprocessor ( #387 )
2022-08-15 11:04:24 +08:00
Zaida Zhou
f98ba60629
[Enhancement] Improve unit tests of mmengine/runner ( #182 )
...
* [Enhancement] Add unit test for get_priority
* fix priority ut
* fix typo
Co-authored-by: Wenwei Zhang <40779233+ZwwWayne@users.noreply.github.com>
2022-08-15 10:57:58 +08:00
Mashiro
2708b7ed48
fix ci ( #424 )
2022-08-13 09:15:08 +08:00
RangiLyu
813f49bf23
[Feature] Support CosineRestartParamScheduler. ( #397 )
...
* [Feature] Support CosineRestartParamScheduler.
* add ut and docstring
* add docstring
2022-08-11 17:57:35 +08:00
Mashiro
b14cbc2576
[Fix] Fix wrong epoch and iter when saving best ckpt ( #400 )
...
* fix wrong epoch andd iter when save bbest ckpt
* fix ut
* fix resume best ckpt unexpectedly
* minor refine
* fix unit test
2022-08-11 14:52:38 +08:00
Mashiro
ee56f151f6
[Fix] Support training with data without `metainfo`. ( #417 )
...
* support training with data without metainfo
* clean the code
* clean the code
2022-08-11 14:51:11 +08:00
Mashiro
c287e1fb92
Fix import mmsegmentation.utils error ( #414 )
2022-08-09 16:20:46 +08:00
Ma Zerun
9b2a0e02da
[Enhance] Add `data_preprocessor` config as an argument of runner. ( #343 )
...
* [Enhance] Add `preprocess_cfg` as an argument of runner.
* Rename `preprocess_cfg` to `data_preprocessor`
* Fix docstring
2022-08-09 11:25:29 +08:00