--- license: apache-2.0 library_name: pytorch tags: - video-prediction - spatiotemporal-forecasting - openstl - safetensors - kitti - caltech-pedestrian - driving --- # OpenSTL Checkpoints: KITTI → Caltech Pedestrian (10 → 1 frame) [![License](https://img.shields.io/badge/License-Apache--2.0-blue)](https://www.apache.org/licenses/LICENSE-2.0) [![Paper](https://img.shields.io/badge/Paper-NeurIPS_2023_D&B-b31b1b)](https://arxiv.org/abs/2306.11249) [![Code](https://img.shields.io/badge/Code-OpenSTL-black)](https://github.com/chengtan9907/OpenSTL) [![Checkpoints](https://img.shields.io/badge/Checkpoints-23-green)](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/tree/main) - **Benchmark:** KITTI to Caltech Pedestrian, 10 to 1 frame - **Checkpoints:** 23 - **Task:** spatiotemporal predictive learning - **Source:** OpenSTL GitHub release kitti-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 [`kitti-weights`](https://github.com/chengtan9907/OpenSTL/releases/tag/kitti-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.** KITTI raw (Geiger et al., IJRR 2013; CC BY-NC-SA 3.0) for training and Caltech Pedestrian (Dollár et al., CVPR 2009) for testing. KITTI is non-commercial, so check those terms before any commercial use of these weights. **Task.** Trained on KITTI driving video and evaluated on Caltech Pedestrian: predict the next frame from 10 observed frames, 128x160 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. ### Problems in the upstream release Found while verifying the files. They are documented here and left as they are. - `kitticaltech_tau_one_ep100`: the docs list 44.7M parameters for the TAU row, the checkpoint has 14.96M. ## 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 [KittiCaltech Pedestrian](https://dl.acm.org/doi/10.1177/0278364913491297) dataset using $10\rightarrow 1$ frames prediction setting following [PredNet](https://arxiv.org/abs/1605.08104). Metrics (MSE, MAE, SSIM, pSNR, LPIPS) of the best models are reported in three trials. 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 Onecycle scheduler on **single GPU**, while some computational consuming methods (denoted by \*) using **4GPUs**. ### **STL Benchmarks on KittiCaltech** For a fair comparison of different methods, we report the best results when models are trained to convergence. We provide config files in [configs/kitticaltech](https://github.com/chengtan9907/OpenSTL/tree/OpenSTLv0.3.0/configs/kitticaltech). | Method | Setting | Params | FLOPs | FPS | MSE | MAE | SSIM | PSNR | LPIPS | Download | |--------------|:---------:|:------:|:------:|:---:|:-----:|:------:|:------:|:-----:|:-------:|:------------:| | ConvLSTM-S | 100 epoch | 15.0M | 595.0G | 33 | 139.6 | 1583.3 | 0.9345 | 27.46 | 0.08575 | [model](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_convlstm_one_ep100/kitticaltech_convlstm_one_ep100.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_convlstm_one_ep100/kitticaltech_convlstm_one_ep100.log) | | E3D-LSTM\* | 100 epoch | 54.9M | 1004G | 10 | 200.6 | 1946.2 | 0.9047 | 25.45 | 0.12602 | [model](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_e3dlstm_one_ep100/kitticaltech_e3dlstm_one_ep100.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_e3dlstm_one_ep100/kitticaltech_e3dlstm_one_ep100.log) | | PredNet | 100 epoch | 12.5M | 42.8G | 94 | 159.8 | 1568.9 | 0.9286 | 27.21 | 0.11289 | [model](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_prednet_one_ep100/kitticaltech_prednet_one_ep100.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_prednet_one_ep100/kitticaltech_prednet_one_ep100.log) | | PhyDNet | 100 epoch | 3.1M | 40.4G | 117 | 312.2 | 2754.8 | 0.8615 | 23.26 | 0.32194 | [model](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_phydnet_one_ep100/kitticaltech_phydnet_one_ep100.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_phydnet_one_ep100/kitticaltech_phydnet_one_ep100.log) | | MAU | 100 epoch | 24.3M | 172.0G | 16 | 177.8 | 1800.4 | 0.9176 | 26.14 | 0.09673 | [model](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_mau_one_ep100/kitticaltech_mau_one_ep100.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_mau_one_ep100/kitticaltech_mau_one_ep100.log) | | MIM | 100 epoch | 49.2M | 1858G | 39 | 125.1 | 1464.0 | 0.9409 | 28.10 | 0.06353 | [model](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_mim_one_ep100/kitticaltech_mim_one_ep100.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_mim_one_ep100/kitticaltech_mim_one_ep100.log) | | PredRNN | 100 epoch | 23.7M | 1216G | 17 | 130.4 | 1525.5 | 0.9374 | 27.81 | 0.07395 | [model](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_predrnn_one_ep100/kitticaltech_predrnn_one_ep100.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_predrnn_one_ep100/kitticaltech_predrnn_one_ep100.log) | | PredRNN++ | 100 epoch | 38.5M | 1803G | 12 | 125.5 | 1453.2 | 0.9433 | 28.02 | 0.13210 | [model](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_predrnnpp_one_ep100/kitticaltech_predrnnpp_one_ep100.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_predrnnpp_one_ep100/kitticaltech_predrnnpp_one_ep100.log) | | PredRNN.V2 | 100 epoch | 23.8M | 1223G | 52 | 147.8 | 1610.5 | 0.9330 | 27.12 | 0.08920 | [model](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_predrnnv2_one_ep100/kitticaltech_predrnnv2_one_ep100.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_predrnnv2_one_ep100/kitticaltech_predrnnv2_one_ep100.log) | | DMVFN | 100 epoch | 3.6M | 1.2G | 557 | 183.9 | 1531.1 | 0.9314 | 26.95 | 0.04942 | [model](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_dmvfn_one_ep100/kitticaltech_dmvfn_one_ep100.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_dmvfn_one_ep100/kitticaltech_dmvfn_one_ep100.log) | | SimVP+IncepU | 100 epoch | 8.6M | 60.6G | 57 | 160.2 | 1690.8 | 0.9338 | 26.81 | 0.06755 | [model](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_simvp_incepu_one_ep100/kitticaltech_simvp_incepu_one_ep100.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_simvp_incepu_one_ep100/kitticaltech_simvp_incepu_one_ep100.log) | | SimVP+gSTA-S | 100 epoch | 15.6M | 96.3G | 40 | 129.7 | 1507.7 | 0.9454 | 27.89 | 0.05736 | [model](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_simvp_gsta_one_ep100/kitticaltech_simvp_gsta_one_ep100.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_simvp_gsta_one_ep100/kitticaltech_simvp_gsta_one_ep100.log) | | TAU | 100 epoch | 44.7M | 80.0G | 55 | 131.1 | 1507.8 | 0.9456 | 27.83 | 0.05494 | [model](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_tau_one_ep100/kitticaltech_tau_one_ep100.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_tau_one_ep100/kitticaltech_tau_one_ep100.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/kitticaltech/simvp](https://github.com/chengtan9907/OpenSTL/tree/OpenSTLv0.3.0/configs/kitticaltech/simvp/). | MetaFormer | Setting | Params | FLOPs | FPS | MSE | MAE | SSIM | PSNR | LPIPS | Download | |------------------|:---------:|:------:|:------:|:---:|:-----:|:------:|:------:|:-----:|:-------:|:------------:| | IncepU (SimVPv1) | 100 epoch | 8.6M | 60.6G | 57 | 160.2 | 1690.8 | 0.9338 | 26.81 | 0.06755 | [model](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_simvp_incepu_one_ep100/kitticaltech_simvp_incepu_one_ep100.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_simvp_incepu_one_ep100/kitticaltech_simvp_incepu_one_ep100.log) | | gSTA (SimVPv2) | 100 epoch | 15.6M | 96.3G | 40 | 129.7 | 1507.7 | 0.9454 | 27.89 | 0.05736 | [model](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_simvp_gsta_one_ep100/kitticaltech_simvp_gsta_one_ep100.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_simvp_gsta_one_ep100/kitticaltech_simvp_gsta_one_ep100.log) | | ViT\* | 100 epoch | 12.7M | 155.0G | 25 | 146.4 | 1615.8 | 0.9379 | 27.43 | 0.06659 | [model](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_simvp_vit_one_ep100/kitticaltech_simvp_vit_one_ep100.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_simvp_vit_one_ep100/kitticaltech_simvp_vit_one_ep100.log) | | Swin Transformer | 100 epoch | 15.3M | 95.2G | 49 | 155.2 | 1588.9 | 0.9299 | 27.25 | 0.08113 | [model](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_simvp_swin_one_ep100/kitticaltech_simvp_swin_one_ep100.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_simvp_swin_one_ep100/kitticaltech_simvp_swin_one_ep100.log) | | Uniformer\* | 100 epoch | 11.8M | 104.0G | 28 | 135.9 | 1534.2 | 0.9393 | 27.66 | 0.06867 | [model](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_simvp_uniformer_one_ep100/kitticaltech_simvp_uniformer_one_ep100.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_simvp_uniformer_one_ep100/kitticaltech_simvp_uniformer_one_ep100.log) | | MLP-Mixer | 100 epoch | 22.2M | 83.5G | 60 | 207.9 | 1835.9 | 0.9133 | 26.29 | 0.07750 | [model](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_simvp_mlpmixer_one_ep100/kitticaltech_simvp_mlpmixer_one_ep100.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_simvp_mlpmixer_one_ep100/kitticaltech_simvp_mlpmixer_one_ep100.log) | | ConvMixer | 100 epoch | 1.5M | 23.1G | 129 | 174.7 | 1854.3 | 0.9232 | 26.23 | 0.07758 | [model](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_simvp_convmixer_one_ep100/kitticaltech_simvp_convmixer_one_ep100.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_simvp_convmixer_one_ep100/kitticaltech_simvp_convmixer_one_ep100.log) | | Poolformer | 100 epoch | 12.4M | 79.8G | 51 | 153.4 | 1613.5 | 0.9334 | 27.38 | 0.07000 | [model](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_simvp_poolformer_one_ep100/kitticaltech_simvp_poolformer_one_ep100.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_simvp_poolformer_one_ep100/kitticaltech_simvp_poolformer_one_ep100.log) | | ConvNeXt | 100 epoch | 12.5M | 80.2G | 54 | 146.8 | 1630.0 | 0.9336 | 27.19 | 0.06987 | [model](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_simvp_convnext_one_ep100/kitticaltech_simvp_convnext_one_ep100.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_simvp_convnext_one_ep100/kitticaltech_simvp_convnext_one_ep100.log) | | VAN | 100 epoch | 14.9M | 92.5G | 41 | 127.5 | 1476.5 | 0.9462 | 27.98 | 0.05500 | [model](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_simvp_van_one_ep100/kitticaltech_simvp_van_one_ep100.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_simvp_van_one_ep100/kitticaltech_simvp_van_one_ep100.log) | | HorNet | 100 epoch | 15.3M | 94.4G | 43 | 152.8 | 1637.9 | 0.9365 | 27.09 | 0.06004 | [model](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_simvp_hornet_one_ep100/kitticaltech_simvp_hornet_one_ep100.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_simvp_hornet_one_ep100/kitticaltech_simvp_hornet_one_ep100.log) | | MogaNet | 100 epoch | 15.6M | 96.2G | 36 | 131.4 | 1512.1 | 0.9442 | 27.79 | 0.05394 | [model](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_simvp_moga_one_ep100/kitticaltech_simvp_moga_one_ep100.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_simvp_moga_one_ep100/kitticaltech_simvp_moga_one_ep100.log) | | TAU | 100 epoch | 44.7M | 80.0G | 55 | 131.1 | 1507.8 | 0.9456 | 27.83 | 0.05494 | [model](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_tau_one_ep100/kitticaltech_tau_one_ep100.pth) \| [log](https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/blob/main/kitticaltech_tau_one_ep100/kitticaltech_tau_one_ep100.log) |

(back to top)

## Structure ``` OpenSTL-KittiCaltech/ ├── kitticaltech_tau_one_ep100/ │ ├── model.safetensors # weights (safetensors) │ ├── kitticaltech_tau_one_ep100.pth # original checkpoint, unchanged │ └── kitticaltech_tau_one_ep100.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-KittiCaltech", "openstl_hub.py", local_dir=".") from openstl_hub import load_openstl method, args = load_openstl("dronefreak/OpenSTL-KittiCaltech", "kitticaltech_tau_one_ep100") 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("/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.