File size: 19,419 Bytes
563a334 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 | ---
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)
<video controls autoplay loop muted playsinline width="900" poster="https://huggingface.co/dronefreak/OpenSTL-Human3.6M/resolve/main/assets/demo_banner_poster.jpg" src="https://huggingface.co/dronefreak/OpenSTL-Human3.6M/resolve/main/assets/demo_banner.mp4"></video>
[](https://www.apache.org/licenses/LICENSE-2.0) [](https://arxiv.org/abs/2306.11249) [](https://github.com/chengtan9907/OpenSTL) [](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/tree/main)
- **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](https://github.com/chengtan9907/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`](https://github.com/chengtan9907/OpenSTL/releases/tag/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`](https://github.com/chengtan9907/OpenSTL/tree/OpenSTL-Lightning/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](http://vision.imar.ro/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.safetensors` next 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 (`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 23 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.
- `human_phydnet_cos_ep50.pth` is a **SimVP** network, not PhyDNet: its log shows `method: simvp` (with `config_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.pth` is a **SimVP+gSTA** network, not MogaNet: its log shows `model_type: gsta` and 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 shows `method: simvp`, `model_type: gsta`.
- `human_s3dlstm_cos_ep50.pth` is 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](http://vision.imar.ro/human3.6m/pami-h36m.pdf) 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](https://github.com/ZhengChang467/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](https://github.com/chengtan9907/OpenSTL/tree/OpenSTLv0.3.0/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](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_convlstm_cos_ep50/human_convlstm_cos_ep50.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_convlstm_cos_ep50/human_convlstm_cos_ep50.log) |
| E3D-LSTM | 50 epoch | 4xbs4 | 60.9M | 542.0 | 7 | 143.3 | 1442.5 | 0.9803 | 32.52 | 0.04133 | [model](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_s3dlstm_cos_ep50/human_s3dlstm_cos_ep50.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_s3dlstm_cos_ep50/human_s3dlstm_cos_ep50.log) |
| PredNet | 50 epoch | 1xbs16 | 12.5M | 13.7 | 176 | 261.9 | 1625.3 | 0.9786 | 31.76 | 0.03264 | [model](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_prednet_cos_ep50/human_prednet_cos_ep50.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_prednet_cos_ep50/human_prednet_cos_ep50.log) |
| PhyDNet | 50 epoch | 1xbs16 | 4.2M | 19.1 | 57 | 125.7 | 1614.7 | 0.9804 | 39.84 | 0.03709 | [model](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_phydnet_cos_ep50/human_phydnet_cos_ep50.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_phydnet_cos_ep50/human_phydnet_cos_ep50.log) |
| MAU | 50 epoch | 1xbs16 | 20.2M | 105.0 | 6 | 127.3 | 1577.0 | 0.9812 | 33.33 | 0.03561 | [model](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_mau_cos_ep50/human_mau_cos_ep50.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_mau_cos_ep50/human_mau_cos_ep50.log) |
| MIM | 50 epoch | 4xbs4 | 47.6M | 1051.0 | 17 | 112.1 | 1467.1 | 0.9829 | 33.97 | 0.03338 | [model](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_mim_cos_ep50/human_mim_cos_ep50.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_mim_cos_ep50/human_mim_cos_ep50.log) |
| PredRNN | 50 epoch | 1xbs16 | 24.6M | 704.0 | 25 | 113.2 | 1458.3 | 0.9831 | 33.94 | 0.03245 | [model](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_predrnn_cos_ep50/human_predrnn_cos_ep50.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_predrnn_cos_ep50/human_predrnn_cos_ep50.log) |
| PredRNN++ | 50 epoch | 1xbs16 | 39.3M | 1033.0 | 18 | 110.0 | 1452.2 | 0.9832 | 34.02 | 0.03196 | [model](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_predrnnpp_cos_ep50/human_predrnnpp_cos_ep50.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_predrnnpp_cos_ep50/human_predrnnpp_cos_ep50.log) |
| PredRNN.V2 | 50 epoch | 1xbs16 | 24.6M | 708.0 | 24 | 114.9 | 1484.7 | 0.9827 | 33.84 | 0.03334 | [model](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_predrnnv2_cos_ep50/human_predrnnv2_cos_ep50.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_predrnnv2_cos_ep50/human_predrnnv2_cos_ep50.log) |
| SimVP+IncepU | 50 epoch | 1xbs16 | 41.2M | 197.0 | 26 | 115.8 | 1511.5 | 0.9822 | 33.73 | 0.03467 | [model](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_simvp_incepu_cos_ep50/human_simvp_incepu_cos_ep50.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_simvp_incepu_cos_ep50/human_simvp_incepu_cos_ep50.log) |
| SimVP+gSTA-S | 50 epoch | 1xbs16 | 11.3M | 74.6 | 52 | 108.4 | 1441.0 | 0.9834 | 34.08 | 0.03224 | [model](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_simvp_gsta_cos_ep50/human_simvp_gsta_cos_ep50.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_simvp_gsta_cos_ep50/human_simvp_gsta_cos_ep50.log) |
| TAU | 50 epoch | 1xbs16 | 37.6M | 182.0 | 26 | 113.3 | 1390.7 | 0.9839 | 34.03 | 0.02783 | [model](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_tau_cos_ep50/human_tau_cos_ep50.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_tau_cos_ep50/human_tau_cos_ep50.log) |
### **Benchmark of MetaFormers Based on SimVP (MetaVP)**
Since the hidden Translator in [SimVP](https://arxiv.org/abs/2211.12509) can be replaced by any [Metaformer](https://arxiv.org/abs/2111.11418) 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](https://github.com/chengtan9907/OpenSTL/tree/OpenSTLv0.3.0/configs/human/simvp/).
| 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](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_simvp_incepu_cos_ep50/human_simvp_incepu_cos_ep50.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_simvp_incepu_cos_ep50/human_simvp_incepu_cos_ep50.log) |
| gSTA (SimVPv2) | 50 epoch | 1xbs16 | 11.3M | 74.6 | 52 | 108.4 | 1441.0 | 0.9834 | 34.08 | 0.03224 | [model](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_simvp_gsta_cos_ep50/human_simvp_gsta_cos_ep50.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_simvp_gsta_cos_ep50/human_simvp_gsta_cos_ep50.log) |
| ViT | 50 epoch | 4xbs4 | 28.3M | 239.0 | 17 | 136.3 | 1603.5 | 0.9796 | 33.10 | 0.03729 | [model](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_simvp_vit_cos_ep50/human_simvp_vit_cos_ep50.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_simvp_vit_cos_ep50/human_simvp_vit_cos_ep50.log) |
| Swin Transformer | 50 epoch | 1xbs16 | 38.8M | 188.0 | 28 | 133.2 | 1599.7 | 0.9799 | 33.16 | 0.03766 | [model](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_simvp_swin_cos_ep50/human_simvp_swin_cos_ep50.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_simvp_swin_cos_ep50/human_simvp_swin_cos_ep50.log) |
| Uniformer | 50 epoch | 4xbs4 | 27.7M | 211.0 | 14 | 116.3 | 1497.7 | 0.9824 | 33.76 | 0.03385 | [model](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_simvp_uniformer_cos_ep50/human_simvp_uniformer_cos_ep50.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_simvp_uniformer_cos_ep50/human_simvp_uniformer_cos_ep50.log) |
| MLP-Mixer | 50 epoch | 1xbs16 | 47.0M | 164.0 | 34 | 125.7 | 1511.9 | 0.9819 | 33.49 | 0.03417 | [model](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_simvp_mlpmixer_cos_ep50/human_simvp_mlpmixer_cos_ep50.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_simvp_mlpmixer_cos_ep50/human_simvp_mlpmixer_cos_ep50.log) |
| ConvMixer | 50 epoch | 1xbs16 | 3.1M | 39.4 | 84 | 115.8 | 1527.4 | 0.9822 | 33.67 | 0.03436 | [model](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_simvp_convmixer_cos_ep50/human_simvp_convmixer_cos_ep50.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_simvp_convmixer_cos_ep50/human_simvp_convmixer_cos_ep50.log) |
| Poolformer | 50 epoch | 1xbs16 | 31.2M | 156.0 | 30 | 118.4 | 1484.1 | 0.9827 | 33.78 | 0.03313 | [model](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_simvp_poolformer_cos_ep50/human_simvp_poolformer_cos_ep50.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_simvp_poolformer_cos_ep50/human_simvp_poolformer_cos_ep50.log) |
| ConvNeXt | 50 epoch | 1xbs16 | 31.4M | 157.0 | 33 | 113.4 | 1469.7 | 0.9828 | 33.86 | 0.03305 | [model](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_simvp_convnext_cos_ep50/human_simvp_convnext_cos_ep50.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_simvp_convnext_cos_ep50/human_simvp_convnext_cos_ep50.log) |
| VAN | 50 epoch | 1xbs16 | 37.5M | 182.0 | 24 | 111.4 | 1454.5 | 0.9831 | 33.93 | 0.03335 | [model](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_simvp_van_cos_ep50/human_simvp_van_cos_ep50.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_simvp_van_cos_ep50/human_simvp_van_cos_ep50.log) |
| HorNet | 50 epoch | 1xbs16 | 28.1M | 143.0 | 33 | 118.1 | 1481.1 | 0.9824 | 33.73 | 0.03333 | [model](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_simvp_hornet_cos_ep50/human_simvp_hornet_cos_ep50.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_simvp_hornet_cos_ep50/human_simvp_hornet_cos_ep50.log) |
| MogaNet | 50 epoch | 1xbs16 | 8.6M | 63.6 | 56 | 109.1 | 1446.4 | 0.9834 | 34.05 | 0.03163 | [model](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_simvp_moganet_cos_ep50/human_simvp_moganet_cos_ep50.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_simvp_moganet_cos_ep50/human_simvp_moganet_cos_ep50.log) |
| TAU | 50 epoch | 1xbs16 | 37.6M | 182.0 | 26 | 113.3 | 1390.7 | 0.9839 | 34.03 | 0.02783 | [model](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_tau_cos_ep50/human_tau_cos_ep50.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-Human3.6M/blob/main/human_tau_cos_ep50/human_tau_cos_ep50.log) |
<p align="right">(<a href="#top">back to top</a>)</p>
## 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.
```bash
git clone -b OpenSTLv0.3.0 https://github.com/chengtan9907/OpenSTL
pip install -e OpenSTL "timm<=0.6.11" huggingface_hub safetensors
```
```python
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.safetensors` round trip: same keys, dtypes, shapes and raw bytes as the `.pth` for 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 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
```bibtex
@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](https://github.com/chengtan9907/OpenSTL/blob/OpenSTLv0.3.0/LICENSE) 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.
|