Skip to content

Commit 78db483

Browse files
authored
Update slowfast.md
1 parent 8ae395c commit 78db483

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/en/model_zoo/recognition/slowfast.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,23 @@ python -B -m paddle.distributed.launch --gpus="0,1,2,3,4,5,6,7" --log_dir=log_sl
3939

4040
- Training would be efficent using our code. The training speed is 2x faster than the original implementation. Details can refer to [benchmark](https://github.com/PaddlePaddle/PaddleVideo/blob/main/docs/en/benchmark.md).
4141

42+
### Speed up training
43+
44+
It's time consuming to train SlowFast model. So we implement [Multigrid training stragety](https://arxiv.org/abs/1912.00998) to speed up training. Training script:
45+
46+
```bash
47+
python -B -m paddle.distributed.launch --selected_gpus="0,1,2,3,4,5,6,7" --log_dir=log-slowfast main.py --validate --multigrid -c configs/recognition/slowfast/slowfast_multigrid.yaml
48+
```
49+
50+
Performance evaluation:
51+
52+
| training stragety | time cost of one epoch/min | total training time/min | speed-up |
53+
| :------ | :-----: | :------: |:------: |
54+
| Multigrid | 27.25 | 9758 (6.7 days) | 2.89x |
55+
| Normal | 78.76 | 15438 (10.7days) | base |
56+
57+
For more details, please refer to [accelerate doc](https://github.com/PaddlePaddle/PaddleVideo/blob/develop/docs/zh-CN/tutorials/accelerate.md#%E8%AE%AD%E7%BB%83%E7%AD%96%E7%95%A5%E5%8A%A0%E9%80%9F).
58+
4259

4360
## Test
4461

0 commit comments

Comments
 (0)