Download README.md from dronefreak/OpenSTL-MovingFMNIST: direct link, hf CLI and curl.
- Browser
- Download file 18.8 kB
-
https://huggingface.co/dronefreak/OpenSTL-MovingFMNIST/resolve/main/README.md
- Command line
-
hf download hf://dronefreak/OpenSTL-MovingFMNIST/README.md
-
curl -L -o README.md https://huggingface.co/dronefreak/OpenSTL-MovingFMNIST/resolve/main/README.md
license: apache-2.0
library_name: pytorch
tags:
- video-prediction
- spatiotemporal-forecasting
- openstl
- safetensors
- moving-fashion-mnist
OpenSTL Checkpoints: Moving Fashion-MNIST (10 β 10 frames)
- Benchmark: Moving Fashion-MNIST, 10 to 10 frames
- Checkpoints: 23
- Task: spatiotemporal predictive learning
- Source: OpenSTL GitHub release mfmnist-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 mfmnist-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 Fashion-MNIST, synthesised from Fashion-MNIST (Xiao et al., 2017).
Task. Predict 10 future frames of Moving Fashion-MNIST (two Fashion-MNIST items moving in 64x64) 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
fmnist_dmvfn_one_ep200.pth,mfmnist_dmvfn_one_ep200.log, but these files were never uploaded to the release. Those rows show "not released".
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 also provide the advanced version of MNIST, i.e., MFMNIST benchmark results, 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 MFMNIST
For a fair comparison of different methods, we report the best results when models are trained to convergence. We provide config files in configs/mfmnist.
| Method | Setting | Params | FLOPs | FPS | MSE | MAE | SSIM | PSNR | Download |
|---|---|---|---|---|---|---|---|---|---|
| ConvLSTM-S | 200 epoch | 15.0M | 56.8G | 113 | 28.87 | 113.20 | 0.8793 | 22.07 | model | log |
| ConvLSTM-L | 200 epoch | 33.8M | 127.0G | 50 | 25.51 | 104.85 | 0.8928 | 22.67 | model | log |
| PredNet | 200 epoch | 12.5M | 8.6G | 659 | 185.94 | 318.30 | 0.6713 | 14.83 | model | log |
| PhyDNet | 200 epoch | 3.1M | 15.3G | 182 | 34.75 | 125.66 | 0.8567 | 22.03 | model | log |
| PredRNN | 200 epoch | 23.8M | 116.0G | 54 | 22.01 | 91.74 | 0.9091 | 23.42 | model | log |
| PredRNN++ | 200 epoch | 38.6M | 171.7G | 38 | 21.71 | 91.97 | 0.9097 | 23.45 | model | log |
| MIM | 200 epoch | 38.0M | 179.2G | 37 | 23.09 | 96.37 | 0.9043 | 23.13 | model | log |
| MAU | 200 epoch | 4.5M | 17.8G | 201 | 26.56 | 104.39 | 0.8916 | 22.51 | model | log |
| E3D-LSTM | 200 epoch | 51.0M | 298.9G | 18 | 35.35 | 110.09 | 0.8722 | 21.27 | model | log |
| PredRNN.V2 | 200 epoch | 23.9M | 116.6G | 52 | 24.13 | 97.46 | 0.9004 | 22.96 | model | log |
| DMVFN | 200 epoch | 3.5M | 0.2G | 1145 | 118.32 | 220.02 | 0.7572 | 16.76 | model not released | log not released |
| SimVP+IncepU | 200 epoch | 58.0M | 19.4G | 209 | 30.77 | 113.94 | 0.8740 | 21.81 | model | log |
| SimVP+gSTA-S | 200 epoch | 46.8M | 16.5G | 282 | 25.86 | 101.22 | 0.8933 | 22.61 | model | log |
| TAU | 200 epoch | 44.7M | 16.0G | 283 | 24.24 | 96.72 | 0.8995 | 22.87 | 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/mfmnist/simvp.
| MetaFormer | Setting | Params | FLOPs | FPS | MSE | MAE | SSIM | PSNR | Download |
|---|---|---|---|---|---|---|---|---|---|
| IncepU (SimVPv1) | 200 epoch | 58.0M | 19.4G | 209 | 30.77 | 113.94 | 0.8740 | 21.81 | model | log |
| gSTA (SimVPv2) | 200 epoch | 46.8M | 16.5G | 282 | 25.86 | 101.22 | 0.8933 | 22.61 | model | log |
| ViT | 200 epoch | 46.1M | 16.9.G | 290 | 31.05 | 115.59 | 0.8712 | 21.83 | model | log |
| Swin Transformer | 200 epoch | 46.1M | 16.4G | 294 | 28.66 | 108.93 | 0.8815 | 22.08 | model | log |
| Uniformer | 200 epoch | 44.8M | 16.5G | 296 | 29.56 | 111.72 | 0.8779 | 21.97 | model | log |
| MLP-Mixer | 200 epoch | 38.2M | 14.7G | 334 | 28.83 | 109.51 | 0.8803 | 22.01 | model | log |
| ConvMixer | 200 epoch | 3.9M | 5.5G | 658 | 31.21 | 115.74 | 0.8709 | 21.71 | model | log |
| Poolformer | 200 epoch | 37.1M | 14.1G | 341 | 30.02 | 113.07 | 0.8750 | 21.95 | model | log |
| ConvNeXt | 200 epoch | 37.3M | 14.1G | 344 | 26.41 | 102.56 | 0.8908 | 22.49 | model | log |
| VAN | 200 epoch | 44.5M | 16.0G | 288 | 31.39 | 116.28 | 0.8703 | 22.82 | model | log |
| HorNet | 200 epoch | 45.7M | 16.3G | 287 | 29.19 | 110.17 | 0.8796 | 22.03 | model | log |
| MogaNet | 200 epoch | 46.8M | 16.5G | 255 | 25.14 | 99.69 | 0.8960 | 22.73 | model | log |
| TAU | 200 epoch | 44.7M | 16.0G | 283 | 24.24 | 96.72 | 0.8995 | 22.87 | model | log |
Structure
OpenSTL-MovingFMNIST/
βββ fmnist_tau_one_ep200/
β βββ model.safetensors # weights (safetensors)
β βββ fmnist_tau_one_ep200.pth # original checkpoint, unchanged
β βββ fmnist_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-MovingFMNIST", "openstl_hub.py", local_dir=".")
from openstl_hub import load_openstl
method, args = load_openstl("dronefreak/OpenSTL-MovingFMNIST", "fmnist_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.