Skip to content

Commit

Permalink
update docs and configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lupin1998 committed Feb 27, 2023
1 parent c195aed commit 99163f2
Show file tree
Hide file tree
Showing 57 changed files with 326 additions and 72 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@ python setup.py develop
* tqdm
</details>

Please refer to [install.md](docs/en/install.md) for more detailed instructions.

## Getting Started

An example of single GPU training SimVP+gSTA on Moving MNIST dataset.
Please see [get_started.md](docs/en/get_started.md) for the basic usage. Here is an example of single GPU training SimVP+gSTA on Moving MNIST dataset.
```shell
bash tools/prepare_data/download_mmnist.sh
python tools/non_dist_train.py -d mmnist -m SimVP --model_type gsta --lr 1e-3 --ex_name mmnist_simvp_gsta
Expand Down
4 changes: 3 additions & 1 deletion configs/mmnist/ConvLSTM-L.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@
filter_size = 5
stride = 1
patch_size = 4
layer_norm = 0
layer_norm = 0
# training
sched = 'onecycle'
4 changes: 3 additions & 1 deletion configs/mmnist/ConvLSTM.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@
filter_size = 5
stride = 1
patch_size = 4
layer_norm = 0
layer_norm = 0
# training
sched = 'onecycle'
4 changes: 3 additions & 1 deletion configs/mmnist/CrevNet.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
method = 'CrevNet'
n_eval = 18
rnn_size = 32
predictor_rnn_layers = 8
predictor_rnn_layers = 8
# training
sched = 'onecycle'
4 changes: 3 additions & 1 deletion configs/mmnist/E3DLSTM.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@
filter_size = 5
stride = 1
patch_size = 4
layer_norm = 0
layer_norm = 0
# training
sched = 'onecycle'
4 changes: 3 additions & 1 deletion configs/mmnist/MAU.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@
sr_size = 4
tau = 5
cell_mode = 'normal'
model_mode = 'normal'
model_mode = 'normal'
# training
sched = 'onecycle'
3 changes: 2 additions & 1 deletion configs/mmnist/MIM.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@
layer_norm = 0
# training
batch_size = 16
val_batch_size = 16
val_batch_size = 16
sched = 'onecycle'
4 changes: 3 additions & 1 deletion configs/mmnist/PhyDNet.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
method = 'PhyDNet'
method = 'PhyDNet'
# training
sched = 'onecycle'
4 changes: 3 additions & 1 deletion configs/mmnist/PredRNN.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@
filter_size = 5
stride = 1
patch_size = 4
layer_norm = 0
layer_norm = 0
# training
sched = 'onecycle'
4 changes: 3 additions & 1 deletion configs/mmnist/PredRNNpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@
filter_size = 5
stride = 1
patch_size = 4
layer_norm = 0
layer_norm = 0
# training
sched = 'onecycle'
4 changes: 3 additions & 1 deletion configs/mmnist/PredRNNv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@
stride = 1
patch_size = 4
layer_norm = 0
decouple_beta = 0.1
decouple_beta = 0.1
# training
sched = 'onecycle'
5 changes: 4 additions & 1 deletion configs/mmnist/SimVP.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
method = 'SimVP'
# model
spatio_kernel_enc = 3
spatio_kernel_dec = 3
# model_type = None # define `model_type` in args
hid_S = 64
hid_T = 512
N_T = 8
N_S = 4
N_S = 4
# training
sched = 'onecycle'
8 changes: 7 additions & 1 deletion configs/mmnist/simvp/SimVP-L.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
method = 'SimVP'
# model
spatio_kernel_enc = 3
spatio_kernel_dec = 3
# model_type = None # define `model_type` in args
hid_S = 128
hid_T = 1024
N_T = 24
N_S = 4
N_S = 4
# training
lr = 1e-3
batch_size = 16
drop_path = 0
sched = 'onecycle'
5 changes: 4 additions & 1 deletion configs/mmnist/simvp/SimVP_ConvMixer.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
method = 'SimVP'
# model
spatio_kernel_enc = 3
spatio_kernel_dec = 3
model_type = 'convmixer'
hid_S = 64
hid_T = 512
N_T = 8
N_S = 4
# training
lr = 1e-2
batch_size = 16
drop_path = 0
drop_path = 0
sched = 'onecycle'
5 changes: 4 additions & 1 deletion configs/mmnist/simvp/SimVP_ConvNeXt.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
method = 'SimVP'
# model
spatio_kernel_enc = 3
spatio_kernel_dec = 3
model_type = 'convnext'
hid_S = 64
hid_T = 512
N_T = 8
N_S = 4
# training
lr = 1e-2
batch_size = 16
drop_path = 0
drop_path = 0
sched = 'onecycle'
5 changes: 4 additions & 1 deletion configs/mmnist/simvp/SimVP_HorNet.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
method = 'SimVP'
# model
spatio_kernel_enc = 3
spatio_kernel_dec = 3
model_type = 'hornet'
hid_S = 64
hid_T = 512
N_T = 8
N_S = 4
# training
lr = 1e-3
batch_size = 16
drop_path = 0
drop_path = 0
sched = 'onecycle'
5 changes: 4 additions & 1 deletion configs/mmnist/simvp/SimVP_IncepU.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
method = 'SimVP'
# model
spatio_kernel_enc = 3
spatio_kernel_dec = 3
model_type = 'IncepU' # SimVP.V1
hid_S = 64
hid_T = 512
N_T = 8
N_S = 4
# training
lr = 1e-3
batch_size = 16
batch_size = 16
sched = 'onecycle'
5 changes: 4 additions & 1 deletion configs/mmnist/simvp/SimVP_MLPMixer.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
method = 'SimVP'
# model
spatio_kernel_enc = 3
spatio_kernel_dec = 3
model_type = 'mlp'
hid_S = 64
hid_T = 512
N_T = 8
N_S = 4
# training
lr = 1e-3
batch_size = 16
drop_path = 0
drop_path = 0
sched = 'onecycle'
5 changes: 4 additions & 1 deletion configs/mmnist/simvp/SimVP_MogaNet.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
method = 'SimVP'
# model
spatio_kernel_enc = 3
spatio_kernel_dec = 3
model_type = 'moga'
hid_S = 64
hid_T = 512
N_T = 8
N_S = 4
# training
lr = 1e-3
batch_size = 16
drop_path = 0
drop_path = 0
sched = 'onecycle'
5 changes: 4 additions & 1 deletion configs/mmnist/simvp/SimVP_Poolformer.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
method = 'SimVP'
# model
spatio_kernel_enc = 3
spatio_kernel_dec = 3
model_type = 'poolformer'
hid_S = 64
hid_T = 512
N_T = 8
N_S = 4
# training
lr = 1e-3
batch_size = 16
drop_path = 0
drop_path = 0
sched = 'onecycle'
5 changes: 4 additions & 1 deletion configs/mmnist/simvp/SimVP_Swin.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
method = 'SimVP'
# model
spatio_kernel_enc = 3
spatio_kernel_dec = 3
model_type = 'swin'
hid_S = 64
hid_T = 512
N_T = 8
N_S = 4
# training
lr = 1e-3
batch_size = 16
drop_path = 0
drop_path = 0
sched = 'onecycle'
5 changes: 4 additions & 1 deletion configs/mmnist/simvp/SimVP_Uniformer.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
method = 'SimVP'
# model
spatio_kernel_enc = 3
spatio_kernel_dec = 3
model_type = 'uniformer'
hid_S = 64
hid_T = 512
N_T = 8
N_S = 4
# training
lr = 5e-4
batch_size = 16
drop_path = 0
drop_path = 0
sched = 'onecycle'
5 changes: 4 additions & 1 deletion configs/mmnist/simvp/SimVP_VAN.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
method = 'SimVP'
# model
spatio_kernel_enc = 3
spatio_kernel_dec = 3
model_type = 'convmixer'
hid_S = 64
hid_T = 512
N_T = 8
N_S = 4
# training
lr = 1e-3
batch_size = 16
drop_path = 0
drop_path = 0
sched = 'onecycle'
5 changes: 4 additions & 1 deletion configs/mmnist/simvp/SimVP_ViT.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
method = 'SimVP'
# model
spatio_kernel_enc = 3
spatio_kernel_dec = 3
model_type = 'vit'
hid_S = 64
hid_T = 512
N_T = 8
N_S = 4
# training
lr = 1e-3
batch_size = 16
drop_path = 0
drop_path = 0
sched = 'onecycle'
5 changes: 4 additions & 1 deletion configs/mmnist/simvp/SimVP_gSTA-L.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
method = 'SimVP'
# model
spatio_kernel_enc = 3
spatio_kernel_dec = 3
model_type = 'gSTA'
hid_S = 128
hid_T = 1024
N_T = 24
N_S = 4
# training
lr = 1e-3
batch_size = 16
drop_path = 0
drop_path = 0
sched = 'onecycle'
5 changes: 4 additions & 1 deletion configs/mmnist/simvp/SimVP_gSTA.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
method = 'SimVP'
# model
spatio_kernel_enc = 3
spatio_kernel_dec = 3
model_type = 'gSTA'
hid_S = 64
hid_T = 512
N_T = 8
N_S = 4
# training
lr = 1e-3
batch_size = 16
drop_path = 0
drop_path = 0
sched = 'onecycle'
3 changes: 2 additions & 1 deletion configs/taxibj/SimVP.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
method = 'SimVP'
# model
spatio_kernel_enc = 3
spatio_kernel_dec = 3
# model_type = None
hid_S = 64
hid_S = 32
hid_T = 256
N_T = 8
N_S = 2
9 changes: 9 additions & 0 deletions configs/taxibj/simvp/SimVP_ConvMixer.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
method = 'SimVP'
# model
spatio_kernel_enc = 3
spatio_kernel_dec = 3
model_type = 'convmixer'
hid_S = 32
hid_T = 256
N_T = 8
N_S = 2
Loading

0 comments on commit 99163f2

Please sign in to comment.