forked from open-mmlab/mmpose
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support fp16 training (open-mmlab#616)
* add fp16 configs * add auto_fp16 to detectors: TopDown, BottomUp and PoseLifter * Support fp16 training * switch to mmcv fp16 support * add fp16 decorators to top_down/bottom_up/pose_lifter * add config/ckpt of res50 fp16 * add config/ckpt of hrnet * fix bug
- Loading branch information
Showing
19 changed files
with
75 additions
and
695 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Mixed Precision Training | ||
|
||
## Introduction | ||
|
||
<!-- [OTHERS] --> | ||
|
||
```latex | ||
@article{micikevicius2017mixed, | ||
title={Mixed precision training}, | ||
author={Micikevicius, Paulius and Narang, Sharan and Alben, Jonah and Diamos, Gregory and Elsen, Erich and Garcia, David and Ginsburg, Boris and Houston, Michael and Kuchaiev, Oleksii and Venkatesh, Ganesh and others}, | ||
journal={arXiv preprint arXiv:1710.03740}, | ||
year={2017} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
configs/top_down/hrnet/coco/hrnet_w32_coco_256x192_fp16_dynamic.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
_base_ = ['./hrnet_w32_coco_256x192.py'] | ||
|
||
# fp16 settings | ||
fp16 = dict(loss_scale='dynamic') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
configs/top_down/resnet/coco/res50_coco_256x192_fp16_dynamic.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
_base_ = ['./res50_coco_256x192.py'] | ||
|
||
# fp16 settings | ||
fp16 = dict(loss_scale='dynamic') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
from .camera import * # noqa: F401, F403 | ||
from .evaluation import * # noqa: F401, F403 | ||
from .fp16 import * # noqa: F401, F403 | ||
from .optimizer import * # noqa: F401, F403 | ||
from .post_processing import * # noqa: F401, F403 | ||
from .utils import * # noqa: F401, F403 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.