facebookresearch / facebookresearch/SlowFast

Multigrid training

Open
#231 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
Python
Stars
7.4k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

Thank you for releasing such very useful tool.

After reading "A Multigrid Method for Efficiently Training Video Models", I am a bit confused about the multigrid scheduling policy. In the paper, it is mentioned 4 approaches: baseline, long cycles, short cycles, long +short cycles (default setting)

![image](https://user-images.githubusercontent.com/17808941/85742235-5cec5b00-b703-11ea-9847-f7732e7f4965.png)

However, after displaying the multigrid policy used in this repo, I get:

```
[2020-06-25 16:51:23,077] PID : 28742 : INFO : Long cycle index Base shape Epochs
[2020-06-25 16:51:23,078] PID : 28742 : INFO : 0 [8, 8, 158] 73
[2020-06-25 16:51:23,078] PID : 28742 : INFO : 0 [4, 16, 158] 110
[2020-06-25 16:51:23,078] PID : 28742 : INFO : 0 [2, 16, 224] 142
[2020-06-25 16:51:23,078] PID : 28742 : INFO : 0 [1, 32, 224] 158
[2020-06-25 16:51:23,078] PID : 28742 : INFO : 1 [8, 8, 158] 205
[2020-06-25 16:51:23,078] PID : 28742 : INFO : 1 [4, 16, 158] 228
[2020-06-25 16:51:23,078] PID : 28742 : INFO : 1 [2, 16, 224] 248
[2020-06-25 16:51:23,078] PID : 28742 : INFO : 1 [1, 32, 224] 259
[2020-06-25 16:51:23,078] PID : 28742 : INFO : 2 [8, 8, 158] 291
[2020-06-25 16:51:23,078] PID : 28742 : INFO : 2 [4, 16, 158] 308
[2020-06-25 16:51:23,078] PID : 28742 : INFO : 2 [2, 16, 224] 322
[2020-06-25 16:51:23,078] PID : 28742 : INFO : 2 [1, 32, 224] 329
[2020-06-25 16:51:23,078] PID : 28742 : INFO : 3 [1, 32, 224] 358
[2020-06-25 16:51:23,078] PID : 28742 : INFO : Long cycle updates:
[2020-06-25 16:51:23,078] PID : 28742 : INFO : BN.NORM_TYPE: sub_batchnorm
[2020-06-25 16:51:23,078] PID : 28742 : INFO : BN.NUM_SPLITS: 8
[2020-06-25 16:51:23,078] PID : 28742 : INFO : TRAIN.BATCH_SIZE: 512
[2020-06-25 16:51:23,078] PID : 28742 : INFO : DATA.NUM_FRAMES x LONG_CYCLE_SAMPLING_RATE: 8x8
[2020-06-25 16:51:23,078] PID : 28742 : INFO : DATA.TRAIN_CROP_SIZE: 158
```

In the paper, it is stated that:

![image](https://user-images.githubusercontent.com/17808941/85750276-d9823800-b709-11ea-888a-fe7345ae16b4.png)

![image](https://user-images.githubusercontent.com/17808941/85750372-ec950800-b709-11ea-85db-655b982c97a9.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.