Skip to content
Snippets Groups Projects
Unverified Commit 13484aae authored by Mashiro's avatar Mashiro Committed by GitHub
Browse files

Bump version to v0.2.0 (#591)

* Bump version to v0.2.0

* Add changelog

* minor refine

* minor refine

* update date

* clean the code

* minor refine

* update release date

* Fix grammar

* Fix grammar

* Fix grammar

* Fix grammar

* Minor refine

* Fix error format in readme

* update date

* minor refine

* minor refine

* minor refine

* minor refine

* refine grammar
parent 2df5bc13
No related branches found
No related tags found
No related merge requests found
...@@ -56,6 +56,17 @@ Major features: ...@@ -56,6 +56,17 @@ Major features:
- Provides rich components and strategies. - Provides rich components and strategies.
- Complete controls on the training process with different levels of APIs. - Complete controls on the training process with different levels of APIs.
## What's New
v0.2.0 was released in 2022-10-11.
1. Refactor FileIO to provide a more unified interface without BC breaking.
2. Add the base model for test time augmentation.
3. Support converting `BN` to `SyncBN` during distributed data-parallel training.
4. Add SMDDP backend and support running on AWS.
Read [Changelog](./docs/en/notes/changelog.md#v0.2.0 "11/10/2022") for more details.
## Installation ## Installation
Before installing MMEngine, please ensure that PyTorch has been successfully installed following the [official guide](https://pytorch.org/get-started/locally/). Before installing MMEngine, please ensure that PyTorch has been successfully installed following the [official guide](https://pytorch.org/get-started/locally/).
...@@ -145,7 +156,7 @@ val_dataloader = DataLoader(batch_size=32, ...@@ -145,7 +156,7 @@ val_dataloader = DataLoader(batch_size=32,
<details> <details>
<summary>Build Metrics</summary> <summary>Build Metrics</summary>
To validate and test the model, we need to define a **Metric** called accuracy to evaluate the model. This metric needs inherit from `BaseMetric` and implements the `process` and `compute_metrics` methods. To validate and test the model, we need to define a **Metric** called accuracy to evaluate the model. This metric needs to inherit from `BaseMetric` and implements the `process` and `compute_metrics` methods.
```python ```python
from mmengine.evaluator import BaseMetric from mmengine.evaluator import BaseMetric
......
...@@ -58,6 +58,17 @@ MMEngine 是一个基于 PyTorch 用于深度学习模型训练的基础库, ...@@ -58,6 +58,17 @@ MMEngine 是一个基于 PyTorch 用于深度学习模型训练的基础库,
- 对神经网络模型中各个层的优化配置进行细粒度调整 - 对神经网络模型中各个层的优化配置进行细粒度调整
- 混合精度训练的灵活控制 - 混合精度训练的灵活控制
## 最近进展
最新版本 v0.2.0 在 2022.10.11 发布。
1. 重构 FileIO 以提供更加易用的接口并保持向下兼容。
2. 新增 Test time augmentation 模型基类。
3. 分布式训练时,支持将 BN 自动转化为 SyncBN。
4. 新增了 SMDDP 后端并支持在 AWS 进行分布式训练。
如果想了解更多版本更新细节和历史信息,请阅读[更新日志](./docs/en/notes/changelog.md#v0.2.0 "11/10/2022")
## 安装 ## 安装
在安装 MMengine 之前,请确保 PyTorch 已成功安装在环境中,可以参考 [PyTorch 官方安装文档](https://pytorch.org/get-started/locally/) 在安装 MMengine 之前,请确保 PyTorch 已成功安装在环境中,可以参考 [PyTorch 官方安装文档](https://pytorch.org/get-started/locally/)
......
...@@ -89,6 +89,12 @@ You can switch between Chinese and English documents in the lower-left corner of ...@@ -89,6 +89,12 @@ You can switch between Chinese and English documents in the lower-left corner of
mmengine.utils <api/utils> mmengine.utils <api/utils>
mmengine.utils.dl_utils <api/utils.dl_utils> mmengine.utils.dl_utils <api/utils.dl_utils>
.. toctree::
:maxdepth: 2
:caption: Notes
notes/changelog.md
.. toctree:: .. toctree::
:caption: Switch Language :caption: Switch Language
......
# Changelog of v0.x
## v0.2.0 (11/10/2022)
### New Features & Enhancements
- Add SMDDP backend and support running on AWS by @austinmw in https://github.com/open-mmlab/mmengine/pull/579
- Refactor `FileIO` but without breaking bc by @zhouzaida in https://github.com/open-mmlab/mmengine/pull/533
- Add test time augmentation base model by @HAOCHENYE in https://github.com/open-mmlab/mmengine/pull/538
- Use `torch.lerp\_()` to speed up EMA by @RangiLyu in https://github.com/open-mmlab/mmengine/pull/519
- Support converting `BN` to `SyncBN` by config by @HAOCHENYE in https://github.com/open-mmlab/mmengine/pull/506
- Support defining metric name in wandb backend by @okotaku in https://github.com/open-mmlab/mmengine/pull/509
- Add dockerfile by @zhouzaida in https://github.com/open-mmlab/mmengine/pull/347
### Docs
- Fix API files of English documentation by @zhouzaida in https://github.com/open-mmlab/mmengine/pull/525
- Fix typo in `instance_data.py` by @Dai-Wenxun in https://github.com/open-mmlab/mmengine/pull/530
- Fix the docstring of the model sub-package by @zhouzaida in https://github.com/open-mmlab/mmengine/pull/573
- Fix a spelling error in docs/zh_cn by @cxiang26 in https://github.com/open-mmlab/mmengine/pull/548
- Fix typo in docstring by @MengzhangLI in https://github.com/open-mmlab/mmengine/pull/527
- Update `config.md` by @Zhengfei-0311 in https://github.com/open-mmlab/mmengine/pull/562
### Bug Fixes
- Fix `LogProcessor` does not smooth loss if the name of loss doesn't start with `loss` by @liuyanyi in
https://github.com/open-mmlab/mmengine/pull/539
- Fix failed to enable `detect_anomalous_params` in `MMSeparateDistributedDataParallel` by @HAOCHENYE in https://github.com/open-mmlab/mmengine/pull/588
- Fix CheckpointHook behavior unexpected if given `filename_tmpl` argument by @C1rN09 in https://github.com/open-mmlab/mmengine/pull/518
- Fix error argument sequence in `FSDP` by @HAOCHENYE in https://github.com/open-mmlab/mmengine/pull/520
- Fix uploading image in wandb backend @okotaku in https://github.com/open-mmlab/mmengine/pull/510
- Fix loading state dictionary in `EMAHook` by @okotaku in https://github.com/open-mmlab/mmengine/pull/507
- Fix circle import in `EMAHook` by @HAOCHENYE in https://github.com/open-mmlab/mmengine/pull/523
- Fix unit test could fail caused by `MultiProcessTestCase` by @HAOCHENYE in https://github.com/open-mmlab/mmengine/pull/535
- Remove unnecessary "if statement" in `Registry` by @MambaWong in https://github.com/open-mmlab/mmengine/pull/536
- Fix `_save_to_state_dict` by @HAOCHENYE in https://github.com/open-mmlab/mmengine/pull/542
- Support comparing NumPy array dataset meta in `Runner.resume` by @HAOCHENYE in https://github.com/open-mmlab/mmengine/pull/511
- Use `get` instead of `pop` to dump `runner_type` in `build_runner_from_cfg` by @nijkah in https://github.com/open-mmlab/mmengine/pull/549
- Upgrade pre-commit hooks by @zhouzaida in https://github.com/open-mmlab/mmengine/pull/576
- Delete the error comment in `registry.md` by @vansin in https://github.com/open-mmlab/mmengine/pull/514
- Fix Some out-of-date unit tests by @C1rN09 in https://github.com/open-mmlab/mmengine/pull/586
- Fix typo in `MMFullyShardedDataParallel` by @yhna940 in https://github.com/open-mmlab/mmengine/pull/569
- Update Github Action CI and CircleCI by @zhouzaida in https://github.com/open-mmlab/mmengine/pull/512
- Fix unit test in windows by @HAOCHENYE in https://github.com/open-mmlab/mmengine/pull/515
- Fix merge ci & multiprocessing unit test by @HAOCHENYE in https://github.com/open-mmlab/mmengine/pull/529
### New Contributors
- @okotaku made their first contribution in https://github.com/open-mmlab/mmengine/pull/510
- @MengzhangLI made their first contribution in https://github.com/open-mmlab/mmengine/pull/527
- @MambaWong made their first contribution in https://github.com/open-mmlab/mmengine/pull/536
- @cxiang26 made their first contribution in https://github.com/open-mmlab/mmengine/pull/548
- @nijkah made their first contribution in https://github.com/open-mmlab/mmengine/pull/549
- @Zhengfei-0311 made their first contribution in https://github.com/open-mmlab/mmengine/pull/562
- @austinmw made their first contribution in https://github.com/open-mmlab/mmengine/pull/579
- @yhna940 made their first contribution in https://github.com/open-mmlab/mmengine/pull/569
- @liuyanyi made their first contribution in https://github.com/open-mmlab/mmengine/pull/539
...@@ -89,6 +89,12 @@ ...@@ -89,6 +89,12 @@
mmengine.utils <api/utils> mmengine.utils <api/utils>
mmengine.utils.dl_utils <api/utils.dl_utils> mmengine.utils.dl_utils <api/utils.dl_utils>
.. toctree::
:maxdepth: 2
:caption: Notes
notes/changelog.md
.. toctree:: .. toctree::
:caption: 语言切换 :caption: 语言切换
......
# Copyright (c) OpenMMLab. All rights reserved. # Copyright (c) OpenMMLab. All rights reserved.
__version__ = '0.1.0' __version__ = '0.2.0'
def parse_version_info(version_str): def parse_version_info(version_str):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment