OpenSTL Checkpoints: Moving MNIST (10 β†’ 10 frames)

License Paper Code Checkpoints

  • Benchmark: Moving MNIST, 10 to 10 frames
  • Checkpoints: 47
  • Task: spatiotemporal predictive learning
  • Source: OpenSTL GitHub release mmnist-weights
  • License: Apache-2.0

Unofficial mirror. These are the pretrained weights and training logs that the OpenSTL authors (CAIRI AI Lab, Westlake University) published as GitHub release assets, re-hosted here with safetensors copies so they stay available. All credit belongs to the original authors.

Disclaimer

This repo is not affiliated with or endorsed by the OpenSTL authors. The weights come from the mmnist-weights release of https://github.com/chengtan9907/OpenSTL, which is licensed under Apache-2.0 (Copyright 2022-2023 CAIRI AI Lab). The model zoo tables come from docs/en/model_zoos. Several methods are OpenSTL re-implementations of other authors' work (ConvLSTM, PredNet, PredRNN family, E3D-LSTM, MIM, CrevNet, PhyDNet, MAU, DMVFN); please credit them too. If you are an author and want this mirror changed or removed, open a discussion on this repo.

Training data. Moving MNIST (Srivastava et al., ICML 2015), synthesised from MNIST digits.

Task. Predict 10 future frames of Moving MNIST (two digits bouncing in 64x64) from 10 observed frames. Includes 200-epoch and 2000-epoch runs.

Changes from the Official Release

  • Added model.safetensors next to every original .pth (47 checkpoints). Tensors are bit-identical to the original state dicts.
  • Grouped each checkpoint with its training log in one folder named after the original file.
  • Rewrote the model-zoo links to point at this repo. 28 links in the upstream docs use the wrong file names (moganet vs moga, mlpmixer vs mlp, dmvfn vs dmfvn, mfmnist_ vs fmnist_); here they resolve to the files that actually exist.
  • Added openstl_hub.py, a loader that rebuilds each architecture from its training log.
  • Added the upstream visualisation GIFs (visualizations/) and a banner made from six of them.
  • Removed the module. (DDP) key prefix in model.safetensors for 1 checkpoint(s); the .pth files are unchanged.

Problems in the upstream release

Found while verifying the files. They are documented here and left as they are.

  • mmnist_mau_one_ep2000.pth is byte-identical to mmnist_mim_one_ep2000.pth (same SHA-256), and its log is a MIM run. The 2000-epoch MAU checkpoint was therefore never actually released; the MAU 2000-epoch row links to a MIM model.
  • mmnist_e3dlstm_one_ep2000.pth is a ConvLSTM network, not E3D-LSTM: its log shows method: convlstm and the weights load strictly as that architecture.
  • mmnist_prednet_one_ep2000.pth is a SimVP network, not PredNet: its log shows method: simvp (with config_file: configs_test/mmnist/PredNet.py) and the weights load strictly as that architecture.
  • mmnist_crevnet_one_ep200 (in the release) reads the full 20-frame clip and must be run with batches of 16; see Usage.

Model Zoo

Results, parameter counts, FLOPs and FPS are copied from the OpenSTL docs; they were not re-measured here. model and log link to the files in this repo.

We provide benchmark results on the popular Moving MNIST dataset using $10\rightarrow 10$ frames prediction setting following PredRNN. Metrics (MSE, MAE, SSIM, pSNR) of the best models are reported in three trials. Parameters (M), FLOPs (G), and V100 inference FPS (s) are also reported for all methods. All methods are trained by Adam optimizer with Onecycle scheduler and single GPU.

STL Benchmarks on MMNIST

For a fair comparison of different methods, we report the best results when models are trained to converge. We provide config files in configs/mmnist.

Method Setting Params FLOPs FPS MSE MAE SSIM PSNR Download
ConvLSTM-S 200 epoch 15.0M 56.8G 113 29.80 90.64 0.9288 22.10 model | log
ConvLSTM-L 200 epoch 33.8M 127.0G 50 27.78 86.14 0.9343 22.44 model | log
PredNet 200 epoch 12.5M 8.6G 659 161.38 201.16 0.7783 14.33 model | log
PhyDNet 200 epoch 3.1M 15.3G 182 28.19 78.64 0.9374 22.62 model | log
PredRNN 200 epoch 23.8M 116.0G 54 23.97 72.82 0.9462 23.28 model | log
PredRNN++ 200 epoch 38.6M 171.7G 38 22.06 69.58 0.9509 23.65 model | log
MIM 200 epoch 38.0M 179.2G 37 22.55 69.97 0.9498 23.56 model | log
MAU 200 epoch 4.5M 17.8G 201 26.86 78.22 0.9398 22.76 model | log
E3D-LSTM 200 epoch 51.0M 298.9G 18 35.97 78.28 0.9320 21.11 model | log
CrevNet 200 epoch 5.0M 270.7G 10 30.15 86.28 0.9350 model | log
PredRNN.V2 200 epoch 23.9M 116.6G 52 24.13 73.73 0.9453 23.21 model | log
DMVFN 200 epoch 3.5M 0.2G 1145 123.67 179.96 0.8140 16.15 model | log
SimVP+IncepU 200 epoch 58.0M 19.4G 209 32.15 89.05 0.9268 37.97 model | log
SimVP+gSTA-S 200 epoch 46.8M 16.5G 282 26.69 77.19 0.9402 38.35 model | log
TAU 200 epoch 44.7M 16.0G 283 24.60 71.93 0.9454 23.19 model | log
ConvLSTM-S 2000 epoch 15.0M 56.8G 113 22.41 73.07 0.9480 23.54 model | log
PredNet 2000 epoch 12.5M 8.6G 659 31.85 90.01 0.9273 21.85 model | log
PhyDNet 2000 epoch 3.1M 15.3G 182 20.35 61.47 0.9559 24.21 model | log
PredRNN 2000 epoch 23.8M 116.0G 54 26.43 77.52 0.9411 22.90 model | log
PredRNN++ 2000 epoch 38.6M 171.7G 38 14.07 48.91 0.9698 26.37 model | log
MIM 2000 epoch 38.0M 179.2G 37 14.73 52.31 0.9678 25.99 model | log
MAU 2000 epoch 4.5M 17.8G 201 22.25 67.96 0.9511 23.68 model | log
E3D-LSTM 2000 epoch 51.0M 298.9G 18 24.07 77.49 0.9436 23.19 model | log
PredRNN.V2 2000 epoch 23.9M 116.6G 52 17.26 57.22 0.9624 25.01 model | log
SimVP+IncepU 2000 epoch 58.0M 19.4G 209 21.15 64.15 0.9536 23.99 model | log
SimVP+gSTA-S 2000 epoch 46.8M 16.5G 282 15.05 49.80 0.9675 25.97 model | log
TAU 2000 epoch 44.7M 16.0G 283 15.69 51.46 0.9661 25.71 model | log

Benchmark of MetaFormers Based on SimVP (MetaVP)

Since the hidden Translator in SimVP can be replaced by any Metaformer block which achieves token mixing and channel mixing, we benchmark popular Metaformer architectures on SimVP with training times of 200-epoch and 2000-epoch. We provide config files in configs/mmnist/simvp.

MetaVP Setting Params FLOPs FPS MSE MAE SSIM PSNR Download
IncepU (SimVPv1) 200 epoch 58.0M 19.4G 209 32.15 89.05 0.9268 21.84 model | log
gSTA (SimVPv2) 200 epoch 46.8M 16.5G 282 26.69 77.19 0.9402 22.78 model | log
ViT 200 epoch 46.1M 16.9G 290 35.15 95.87 0.9139 21.67 model | log
Swin Transformer 200 epoch 46.1M 16.4G 294 29.70 84.05 0.9331 22.22 model | log
Uniformer 200 epoch 44.8M 16.5G 296 30.38 85.87 0.9308 22.13 model | log
MLP-Mixer 200 epoch 38.2M 14.7G 334 29.52 83.36 0.9338 22.22 model | log
ConvMixer 200 epoch 3.9M 5.5G 658 32.09 88.93 0.9259 21.93 model | log
Poolformer 200 epoch 37.1M 14.1G 341 31.79 88.48 0.9271 22.03 model | log
ConvNeXt 200 epoch 37.3M 14.1G 344 26.94 77.23 0.9397 22.74 model | log
VAN 200 epoch 44.5M 16.0G 288 26.10 76.11 0.9417 22.89 model | log
HorNet 200 epoch 45.7M 16.3G 287 29.64 83.26 0.9331 22.26 model | log
MogaNet 200 epoch 46.8M 16.5G 255 25.57 75.19 0.9429 22.99 model | log
TAU 200 epoch 44.7M 16.0G 283 24.60 71.93 0.9454 23.19 model | log
IncepU (SimVPv1) 2000 epoch 58.0M 19.4G 209 21.15 64.15 0.9536 23.99 model | log
gSTA (SimVPv2) 2000 epoch 46.8M 16.5G 282 15.05 49.80 0.9675 25.97 model | log
ViT 2000 epoch 46.1M 16.9.G 290 19.74 61.65 0.9539 24.59 model | log
Swin Transformer 2000 epoch 46.1M 16.4G 294 19.11 59.84 0.9584 24.53 model | log
Uniformer 2000 epoch 44.8M 16.5G 296 18.01 57.52 0.9609 24.92 model | log
MLP-Mixer 2000 epoch 38.2M 14.7G 334 18.85 59.86 0.9589 24.58 model | log
ConvMixer 2000 epoch 3.9M 5.5G 658 22.30 67.37 0.9507 23.73 model | log
Poolformer 2000 epoch 37.1M 14.1G 341 20.96 64.31 0.9539 24.15 model | log
ConvNeXt 2000 epoch 37.3M 14.1G 344 17.58 55.76 0.9617 25.06 model | log
VAN 2000 epoch 44.5M 16.0G 288 16.21 53.57 0.9646 25.49 model | log
HorNet 2000 epoch 45.7M 16.3G 287 17.40 55.70 0.9624 25.14 model | log
MogaNet 2000 epoch 46.8M 16.5G 255 15.67 51.84 0.9661 25.70 model | log
TAU 2000 epoch 44.7M 16.0G 283 15.69 51.46 0.9661 25.71 model | log

(back to top)

Structure

OpenSTL-MovingMNIST/
β”œβ”€β”€ mmnist_tau_one_ep200/
β”‚   β”œβ”€β”€ model.safetensors        # weights (safetensors)
β”‚   β”œβ”€β”€ mmnist_tau_one_ep200.pth   # original checkpoint, unchanged
β”‚   └── mmnist_tau_one_ep200.log   # original training log (hyper-parameters + test metrics)
β”œβ”€β”€ ...                          # 47 checkpoint folders in total
β”œβ”€β”€ visualizations/*.gif         # upstream ground-truth vs prediction GIFs
β”œβ”€β”€ openstl_hub.py               # loader
└── assets/demo_banner.mp4

Usage

The checkpoints need the OpenSTL code they were trained with (branch OpenSTLv0.3.0). openstl_hub.py rebuilds the network from the hyper-parameters in the checkpoint's own log and loads the weights strictly.

git clone -b OpenSTLv0.3.0 https://github.com/chengtan9907/OpenSTL
pip install -e OpenSTL "timm<=0.6.11" huggingface_hub safetensors
import torch
from huggingface_hub import hf_hub_download

hf_hub_download("dronefreak/OpenSTL-MovingMNIST", "openstl_hub.py", local_dir=".")
from openstl_hub import load_openstl

method, args = load_openstl("dronefreak/OpenSTL-MovingMNIST", "mmnist_tau_one_ep200")
T, C, H, W = args.in_shape
x = torch.rand(1, args.pre_seq_length, C, H, W)   # observed frames, values in [0, 1]
y = torch.zeros(1, args.aft_seq_length, C, H, W)  # placeholder for the frames to predict
with torch.no_grad():
    pred = method._predict(x, y)                    # (1, aft_seq_length, C, H, W)

method.model is the plain torch.nn.Module. RNN-type methods (ConvLSTM, PredRNN family, MIM, MAU, E3D-LSTM) take the target tensor only for its shape at test time. For DMVFN the loader returns only the network (its training wrapper downloads VGG19 for a loss); it predicts one frame: method.model(torch.cat([x, y], 1), training=False)[-1]. CrevNet's code calls .cuda() internally; on CPU run it inside with openstl_hub.cuda_to_cpu():. CrevNet also reads the whole 20-frame clip (torch.cat([x_all_10, y], 1) with x of length in_shape[0]) and its recurrent state is sized for the training batch, so call it with batches of args.batch_size (16).

To use the weights without OpenSTL's loader: safetensors.torch.load_file("<name>/model.safetensors") gives a state dict for the matching OpenSTL model class.

Verification

  • All 47 release checkpoints downloaded and size-checked against the GitHub API.
  • model.safetensors round trip: same keys, dtypes, shapes and raw bytes as the .pth for all 47 checkpoints. A perturbed tensor is detected as a negative control.
  • Functional check: every checkpoint was rebuilt from its own log with OpenSTL v0.3.0, loaded with strict=True, and ran a CPU forward pass with the expected output shape and finite values. A corrupted state dict is rejected as a negative control. These steps run through the same openstl_hub.py that ships here.
  • Parameter counts of the loaded networks were cross-checked against the Params column of the docs. Any disagreement is listed above.
  • Accuracy metrics were not re-evaluated; the table numbers are the authors'.

Citation

@inproceedings{tan2023openstl,
  title={OpenSTL: A Comprehensive Benchmark of Spatio-Temporal Predictive Learning},
  author={Tan, Cheng and Li, Siyuan and Gao, Zhangyang and Guan, Wenfei and Wang, Zedong and Liu, Zicheng and Wu, Lirong and Li, Stan Z},
  booktitle={Conference on Neural Information Processing Systems Datasets and Benchmarks Track},
  year={2023}
}

Please also cite the paper of the method you use (links in the table above).

License

The weights, logs and visualisations are redistributed under the Apache License 2.0 of the OpenSTL repository (Copyright 2022-2023 CAIRI AI Lab). The training data has its own terms (see Training data above), which may restrict some uses of the models.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Collections including dronefreak/OpenSTL-MovingMNIST

Papers for dronefreak/OpenSTL-MovingMNIST