Download README.md from dronefreak/OpenSTL-KittiCaltech: direct link, hf CLI and curl.
- Browser
- Download file 19.7 kB
-
https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/resolve/main/README.md
- Command line
-
hf download hf://dronefreak/OpenSTL-KittiCaltech/README.md
-
curl -L -o README.md https://huggingface.co/dronefreak/OpenSTL-KittiCaltech/resolve/main/README.md
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)
- 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 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 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. 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.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.
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 dataset using $10\rightarrow 1$ frames prediction setting following PredNet. 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.
| 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 | log |
| E3D-LSTM* | 100 epoch | 54.9M | 1004G | 10 | 200.6 | 1946.2 | 0.9047 | 25.45 | 0.12602 | model | log |
| PredNet | 100 epoch | 12.5M | 42.8G | 94 | 159.8 | 1568.9 | 0.9286 | 27.21 | 0.11289 | model | log |
| PhyDNet | 100 epoch | 3.1M | 40.4G | 117 | 312.2 | 2754.8 | 0.8615 | 23.26 | 0.32194 | model | log |
| MAU | 100 epoch | 24.3M | 172.0G | 16 | 177.8 | 1800.4 | 0.9176 | 26.14 | 0.09673 | model | log |
| MIM | 100 epoch | 49.2M | 1858G | 39 | 125.1 | 1464.0 | 0.9409 | 28.10 | 0.06353 | model | log |
| PredRNN | 100 epoch | 23.7M | 1216G | 17 | 130.4 | 1525.5 | 0.9374 | 27.81 | 0.07395 | model | log |
| PredRNN++ | 100 epoch | 38.5M | 1803G | 12 | 125.5 | 1453.2 | 0.9433 | 28.02 | 0.13210 | model | log |
| PredRNN.V2 | 100 epoch | 23.8M | 1223G | 52 | 147.8 | 1610.5 | 0.9330 | 27.12 | 0.08920 | model | log |
| DMVFN | 100 epoch | 3.6M | 1.2G | 557 | 183.9 | 1531.1 | 0.9314 | 26.95 | 0.04942 | model | log |
| SimVP+IncepU | 100 epoch | 8.6M | 60.6G | 57 | 160.2 | 1690.8 | 0.9338 | 26.81 | 0.06755 | model | log |
| SimVP+gSTA-S | 100 epoch | 15.6M | 96.3G | 40 | 129.7 | 1507.7 | 0.9454 | 27.89 | 0.05736 | model | log |
| TAU | 100 epoch | 44.7M | 80.0G | 55 | 131.1 | 1507.8 | 0.9456 | 27.83 | 0.05494 | 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/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 | log |
| gSTA (SimVPv2) | 100 epoch | 15.6M | 96.3G | 40 | 129.7 | 1507.7 | 0.9454 | 27.89 | 0.05736 | model | log |
| ViT* | 100 epoch | 12.7M | 155.0G | 25 | 146.4 | 1615.8 | 0.9379 | 27.43 | 0.06659 | model | log |
| Swin Transformer | 100 epoch | 15.3M | 95.2G | 49 | 155.2 | 1588.9 | 0.9299 | 27.25 | 0.08113 | model | log |
| Uniformer* | 100 epoch | 11.8M | 104.0G | 28 | 135.9 | 1534.2 | 0.9393 | 27.66 | 0.06867 | model | log |
| MLP-Mixer | 100 epoch | 22.2M | 83.5G | 60 | 207.9 | 1835.9 | 0.9133 | 26.29 | 0.07750 | model | log |
| ConvMixer | 100 epoch | 1.5M | 23.1G | 129 | 174.7 | 1854.3 | 0.9232 | 26.23 | 0.07758 | model | log |
| Poolformer | 100 epoch | 12.4M | 79.8G | 51 | 153.4 | 1613.5 | 0.9334 | 27.38 | 0.07000 | model | log |
| ConvNeXt | 100 epoch | 12.5M | 80.2G | 54 | 146.8 | 1630.0 | 0.9336 | 27.19 | 0.06987 | model | log |
| VAN | 100 epoch | 14.9M | 92.5G | 41 | 127.5 | 1476.5 | 0.9462 | 27.98 | 0.05500 | model | log |
| HorNet | 100 epoch | 15.3M | 94.4G | 43 | 152.8 | 1637.9 | 0.9365 | 27.09 | 0.06004 | model | log |
| MogaNet | 100 epoch | 15.6M | 96.2G | 36 | 131.4 | 1512.1 | 0.9442 | 27.79 | 0.05394 | model | log |
| TAU | 100 epoch | 44.7M | 80.0G | 55 | 131.1 | 1507.8 | 0.9456 | 27.83 | 0.05494 | model | log |
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.
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-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("<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.