Download README.md from dronefreak/OpenSTL-Human3.6M: direct link, hf CLI and curl.
- Browser
- Download file 19.4 kB
-
https://huggingface.co/dronefreak/OpenSTL-Human3.6M/resolve/main/README.md
- Command line
-
hf download hf://dronefreak/OpenSTL-Human3.6M/README.md
-
curl -L -o README.md https://huggingface.co/dronefreak/OpenSTL-Human3.6M/resolve/main/README.md
license: apache-2.0
library_name: pytorch
tags:
- video-prediction
- spatiotemporal-forecasting
- openstl
- safetensors
- human3.6m
- human-motion
OpenSTL Checkpoints: Human3.6M (4 β 4 frames)
- Benchmark: Human3.6M, 4 to 4 frames
- Checkpoints: 23
- Task: spatiotemporal predictive learning
- Source: OpenSTL GitHub release human-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 human-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. Human3.6M (Ionescu et al., TPAMI 2014). Human3.6M is distributed under its own academic licence after registration; the dataset is not redistributed here, and its terms may restrict how models trained on it can be used. Check them before use.
Task. Predict 4 future frames of Human3.6M video from 4 observed frames, 256x256 RGB.
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. - Removed the
module.(DDP) key prefix inmodel.safetensorsfor 23 checkpoint(s); the.pthfiles are unchanged.
Problems in the upstream release
Found while verifying the files. They are documented here and left as they are.
human_phydnet_cos_ep50.pthis a SimVP network, not PhyDNet: its log showsmethod: simvp(withconfig_file: configs/human/PhyDNet.py) and the weights load strictly as that architecture. The PhyDNet row of the table links to it.human_simvp_moganet_cos_ep50.pthis a SimVP+gSTA network, not MogaNet: its log showsmodel_type: gstaand the weights load strictly as that architecture. The MogaNet row links to it.human_dmvfn_cos_ep50.pth(in the release, not linked from the docs) is a SimVP+gSTA network, not DMVFN: its log showsmethod: simvp,model_type: gsta.human_s3dlstm_cos_ep50.pthis in the release but not in the docs; its log describes an E3D-LSTM run.human_simvp_gsta_cos_ep50: the docs list 11.3M parameters for the SimVP+gSTA-S row, the checkpoint has 28.76M.
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 further provide high-resolution benchmark results on Human3.6M dataset using $4\rightarrow 4$ frames prediction setting. Metrics (MSE, MAE, SSIM, pSNR, LPIPS) of the best models are reported in three trials. We use 256x256 resolutions, similar to STRPM. Parameters (M), FLOPs (G), and V100 inference FPS (s) are also reported for all methods. The default training setup is trained 100 epochs by Adam optimizer with a batch size of 16 and Cosine scheduler (no warm-up) on single GPU or 4GPUs, and we report the used GPU setups for each method (also shown in the config).
STL Benchmarks on Human 3.6M
For a fair comparison of different methods, we report the best results when models are trained to convergence. We provide config files in configs/human.
| Method | Setting | GPUs | Params | FLOPs | FPS | MSE | MAE | SSIM | PSNR | LPIPS | Download |
|---|---|---|---|---|---|---|---|---|---|---|---|
| ConvLSTM-S | 50 epoch | 1xbs16 | 15.5M | 347.0 | 52 | 125.5 | 1566.7 | 0.9813 | 33.40 | 0.03557 | model | log |
| E3D-LSTM | 50 epoch | 4xbs4 | 60.9M | 542.0 | 7 | 143.3 | 1442.5 | 0.9803 | 32.52 | 0.04133 | model | log |
| PredNet | 50 epoch | 1xbs16 | 12.5M | 13.7 | 176 | 261.9 | 1625.3 | 0.9786 | 31.76 | 0.03264 | model | log |
| PhyDNet | 50 epoch | 1xbs16 | 4.2M | 19.1 | 57 | 125.7 | 1614.7 | 0.9804 | 39.84 | 0.03709 | model | log |
| MAU | 50 epoch | 1xbs16 | 20.2M | 105.0 | 6 | 127.3 | 1577.0 | 0.9812 | 33.33 | 0.03561 | model | log |
| MIM | 50 epoch | 4xbs4 | 47.6M | 1051.0 | 17 | 112.1 | 1467.1 | 0.9829 | 33.97 | 0.03338 | model | log |
| PredRNN | 50 epoch | 1xbs16 | 24.6M | 704.0 | 25 | 113.2 | 1458.3 | 0.9831 | 33.94 | 0.03245 | model | log |
| PredRNN++ | 50 epoch | 1xbs16 | 39.3M | 1033.0 | 18 | 110.0 | 1452.2 | 0.9832 | 34.02 | 0.03196 | model | log |
| PredRNN.V2 | 50 epoch | 1xbs16 | 24.6M | 708.0 | 24 | 114.9 | 1484.7 | 0.9827 | 33.84 | 0.03334 | model | log |
| SimVP+IncepU | 50 epoch | 1xbs16 | 41.2M | 197.0 | 26 | 115.8 | 1511.5 | 0.9822 | 33.73 | 0.03467 | model | log |
| SimVP+gSTA-S | 50 epoch | 1xbs16 | 11.3M | 74.6 | 52 | 108.4 | 1441.0 | 0.9834 | 34.08 | 0.03224 | model | log |
| TAU | 50 epoch | 1xbs16 | 37.6M | 182.0 | 26 | 113.3 | 1390.7 | 0.9839 | 34.03 | 0.02783 | 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 100-epoch training. We provide config files in configs/kth/human.
| MetaFormer | Setting | GPUs | Params | FLOPs | FPS | MSE | MAE | SSIM | PSNR | LPIPS | Download |
|---|---|---|---|---|---|---|---|---|---|---|---|
| IncepU (SimVPv1) | 50 epoch | 1xbs16 | 41.2M | 197.0 | 26 | 115.8 | 1511.5 | 0.9822 | 33.73 | 0.03467 | model | log |
| gSTA (SimVPv2) | 50 epoch | 1xbs16 | 11.3M | 74.6 | 52 | 108.4 | 1441.0 | 0.9834 | 34.08 | 0.03224 | model | log |
| ViT | 50 epoch | 4xbs4 | 28.3M | 239.0 | 17 | 136.3 | 1603.5 | 0.9796 | 33.10 | 0.03729 | model | log |
| Swin Transformer | 50 epoch | 1xbs16 | 38.8M | 188.0 | 28 | 133.2 | 1599.7 | 0.9799 | 33.16 | 0.03766 | model | log |
| Uniformer | 50 epoch | 4xbs4 | 27.7M | 211.0 | 14 | 116.3 | 1497.7 | 0.9824 | 33.76 | 0.03385 | model | log |
| MLP-Mixer | 50 epoch | 1xbs16 | 47.0M | 164.0 | 34 | 125.7 | 1511.9 | 0.9819 | 33.49 | 0.03417 | model | log |
| ConvMixer | 50 epoch | 1xbs16 | 3.1M | 39.4 | 84 | 115.8 | 1527.4 | 0.9822 | 33.67 | 0.03436 | model | log |
| Poolformer | 50 epoch | 1xbs16 | 31.2M | 156.0 | 30 | 118.4 | 1484.1 | 0.9827 | 33.78 | 0.03313 | model | log |
| ConvNeXt | 50 epoch | 1xbs16 | 31.4M | 157.0 | 33 | 113.4 | 1469.7 | 0.9828 | 33.86 | 0.03305 | model | log |
| VAN | 50 epoch | 1xbs16 | 37.5M | 182.0 | 24 | 111.4 | 1454.5 | 0.9831 | 33.93 | 0.03335 | model | log |
| HorNet | 50 epoch | 1xbs16 | 28.1M | 143.0 | 33 | 118.1 | 1481.1 | 0.9824 | 33.73 | 0.03333 | model | log |
| MogaNet | 50 epoch | 1xbs16 | 8.6M | 63.6 | 56 | 109.1 | 1446.4 | 0.9834 | 34.05 | 0.03163 | model | log |
| TAU | 50 epoch | 1xbs16 | 37.6M | 182.0 | 26 | 113.3 | 1390.7 | 0.9839 | 34.03 | 0.02783 | model | log |
Structure
OpenSTL-Human3.6M/
βββ human_tau_cos_ep50/
β βββ model.safetensors # weights (safetensors)
β βββ human_tau_cos_ep50.pth # original checkpoint, unchanged
β βββ human_tau_cos_ep50.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-Human3.6M", "openstl_hub.py", local_dir=".")
from openstl_hub import load_openstl
method, args = load_openstl("dronefreak/OpenSTL-Human3.6M", "human_tau_cos_ep50")
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.