OpenSTL Checkpoints: Moving MNIST-CIFAR (10 β 10 frames)
- Benchmark: Moving MNIST-CIFAR, 10 to 10 frames
- Checkpoints: 23
- Task: spatiotemporal predictive learning
- Source: OpenSTL GitHub release mmnist-cifar-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-cifar-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-CIFAR, synthesised by OpenSTL from MNIST digits and CIFAR-10 images.
Task. Predict 10 future frames of Moving MNIST digits over CIFAR-10 backgrounds (64x64 RGB) from 10 observed frames.
Changes from the Official Release
- Added
model.safetensorsnext to every original.pth(23 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 (
moganetvsmoga,mlpmixervsmlp,dmvfnvsdmfvn,mfmnist_vsfmnist_); 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.
Problems in the upstream release
Found while verifying the files. They are documented here and left as they are.
- The docs link
mmnist_cifar_dmvfn_one_ep200.log,mmnist_cifar_dmvfn_one_ep200.pth, but these files were never uploaded to the release. Those rows show "not released". mmnist_cifar_predrnn_one_ep200: the docs list 23.8M parameters for the PredRNN row, the checkpoint has 24.56M.mmnist_cifar_predrnnv2_one_ep200: the docs list 23.9M parameters for the PredRNN.V2 row, the checkpoint has 24.58M.
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.
Similar to Moving MNIST, we further design the advanced version of MNIST with complex backgrounds from CIFAR-10, i.e., MMNIST-CIFAR benchmark, 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-CIFAR
For a fair comparison of different methods, we report the best results when models are trained to convergence. We provide config files in configs/mmnist_cifar.
| Method | Setting | Params | FLOPs | FPS | MSE | MAE | SSIM | PSNR | Download |
|---|---|---|---|---|---|---|---|---|---|
| ConvLSTM-S | 200 epoch | 15.5M | 58.8G | 113 | 73.31 | 338.56 | 0.9204 | 23.09 | model | log |
| ConvLSTM-L | 200 epoch | 34.4M | 130.0G | 50 | 62.86 | 291.05 | 0.9337 | 23.83 | model | log |
| PredNet | 200 epoch | 12.5M | 8.6G | 945 | 286.70 | 514.14 | 0.8139 | 17.49 | model | log |
| PhyDNet | 200 epoch | 3.1M | 15.3G | 182 | 142.54 | 700.37 | 0.8276 | 19.92 | model | log |
| PredRNN | 200 epoch | 23.8M | 116.0G | 54 | 50.09 | 225.04 | 0.9499 | 24.90 | model | log |
| PredRNN++ | 200 epoch | 38.6M | 171.7G | 38 | 44.19 | 198.27 | 0.9567 | 25.60 | model | log |
| MIM | 200 epoch | 38.8M | 183.0G | 37 | 48.63 | 213.44 | 0.9521 | 25.08 | model | log |
| MAU | 200 epoch | 4.5M | 17.8G | 201 | 58.84 | 255.76 | 0.9408 | 24.19 | model | log |
| E3D-LSTM | 200 epoch | 52.8M | 306.0G | 18 | 80.79 | 214.86 | 0.9314 | 22.89 | model | log |
| PredRNN.V2 | 200 epoch | 23.9M | 116.6G | 52 | 57.27 | 252.29 | 0.9419 | 24.24 | model | log |
| DMVFN | 200 epoch | 3.6M | 0.2G | 960 | 298.73 | 606.92 | 0.7765 | 17.07 | model not released | log not released |
| SimVP+IncepU | 200 epoch | 58.0M | 19.4G | 209 | 59.83 | 214.54 | 0.9414 | 24.15 | model | log |
| SimVP+gSTA-S | 200 epoch | 46.8M | 16.5G | 282 | 51.13 | 185.13 | 0.9512 | 24.93 | model | log |
| TAU | 200 epoch | 44.7M | 16.0G | 275 | 48.17 | 177.35 | 0.9539 | 25.21 | 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 epochs. We provide config files in configs/mmnist_cifar/simvp.
| MetaFormer | Setting | Params | FLOPs | FPS | MSE | MAE | SSIM | PSNR | Download |
|---|---|---|---|---|---|---|---|---|---|
| IncepU (SimVPv1) | 200 epoch | 58.0M | 19.4G | 209 | 59.83 | 214.54 | 0.9414 | 24.15 | model | log |
| gSTA (SimVPv2) | 200 epoch | 46.8M | 16.5G | 282 | 51.13 | 185.13 | 0.9512 | 24.93 | model | log |
| ViT | 200 epoch | 46.1M | 16.9G | 290 | 64.94 | 234.01 | 0.9354 | 23.90 | model | log |
| Swin Transformer | 200 epoch | 46.1M | 16.4G | 294 | 57.11 | 207.45 | 0.9443 | 24.34 | model | log |
| Uniformer | 200 epoch | 44.8M | 16.5G | 296 | 56.96 | 207.51 | 0.9442 | 24.38 | model | log |
| MLP-Mixer | 200 epoch | 38.2M | 14.7G | 334 | 57.03 | 206.46 | 0.9446 | 24.34 | model | log |
| ConvMixer | 200 epoch | 3.9M | 5.5G | 658 | 59.29 | 219.76 | 0.9403 | 24.17 | model | log |
| Poolformer | 200 epoch | 37.1M | 14.1G | 341 | 60.98 | 219.50 | 0.9399 | 24.16 | model | log |
| ConvNeXt | 200 epoch | 37.3M | 14.1G | 344 | 51.39 | 187.17 | 0.9503 | 24.89 | model | log |
| VAN | 200 epoch | 44.5M | 16.0G | 288 | 59.59 | 221.32 | 0.9398 | 25.20 | model | log |
| HorNet | 200 epoch | 45.7M | 16.3G | 287 | 55.79 | 202.73 | 0.9456 | 24.49 | model | log |
| MogaNet | 200 epoch | 46.8M | 16.5G | 255 | 49.48 | 184.11 | 0.9521 | 25.07 | model | log |
| TAU | 200 epoch | 44.7M | 16.0G | 275 | 48.17 | 177.35 | 0.9539 | 25.21 | model | log |
Structure
OpenSTL-MovingMNIST-CIFAR/
βββ mmnist_cifar_tau_one_ep200/
β βββ model.safetensors # weights (safetensors)
β βββ mmnist_cifar_tau_one_ep200.pth # original checkpoint, unchanged
β βββ mmnist_cifar_tau_one_ep200.log # original training log (hyper-parameters + test metrics)
βββ ... # 23 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-CIFAR", "openstl_hub.py", local_dir=".")
from openstl_hub import load_openstl
method, args = load_openstl("dronefreak/OpenSTL-MovingMNIST-CIFAR", "mmnist_cifar_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 23 release checkpoints downloaded and size-checked against the GitHub API.
model.safetensorsround trip: same keys, dtypes, shapes and raw bytes as the.pthfor all 23 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 sameopenstl_hub.pythat 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.