Configuration Parsing Warning:In config.json: "model_type" must be a string

OpenSTL PredRNN.V2 · KTH Actions (10 → 20 frames)

PredRNN.V2 ground truth vs prediction on KTH

Ground truth vs prediction, upstream kth20_PredRNNv2.gif (vis-video).

License Paper Code Benchmark repo

  • Checkpoint: kth20_predrnnv2_one_ep100
  • Method: PredRNN.V2
  • Benchmark: KTH Actions, 10 to 20 frames
  • Shape: 10 x 1 x 128 x 128 in, 20 x 1 x 128 x 128 out
  • Parameters: 23.58M
  • Training: 100 epochs, OneCycle schedule
  • License: Apache-2.0

Unofficial mirror of kth20_predrnnv2_one_ep100.pth from the OpenSTL release kth20-weights, with a bit-identical safetensors copy. All credit to the OpenSTL authors (CAIRI AI Lab, Westlake University). Also bundled in OpenSTL-KTH.

Disclaimer

Not affiliated with or endorsed by the OpenSTL authors. The checkpoint and log are from release kth20-weights of https://github.com/chengtan9907/OpenSTL (Apache-2.0, Copyright 2022-2023 CAIRI AI Lab); PredRNN.V2 is OpenSTL's re-implementation of another group's method, so credit its authors too. Authors can request changes or removal through a discussion on this repo.

Training data: KTH Actions (Schüldt, Laptev and Caputo, ICPR 2004). The KTH authors state the dataset is free for non-commercial use, so check those terms before any commercial use of these weights.

Results

Setting Params FLOPs FPS MSE MAE SSIM PSNR LPIPS
100 epoch 23.6M 2815.0G 7 39.57 368.8 0.9099 28.01 0.21478

From the OpenSTL docs, not re-measured.

Changes from the Official Release

  • Added model.safetensors (DDP module. prefix removed), config.json (logged hyper-parameters), openstl_hub.py (loader), the banner GIF. kth20_predrnnv2_one_ep100.pth and kth20_predrnnv2_one_ep100.log are unchanged.
  • Verified: bit-exact safetensors round trip, strict load and CPU forward pass with OpenSTL v0.3.0, SHA-256 of every file after upload. Metrics were not re-evaluated.

Structure

model.safetensors · kth20_predrnnv2_one_ep100.pth · kth20_predrnnv2_one_ep100.log · config.json · openstl_hub.py · assets/kth20_PredRNNv2.gif

Usage

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-kth20_predrnnv2_one_ep100", "openstl_hub.py", local_dir=".")
from openstl_hub import load_openstl

method, args = load_openstl("dronefreak/OpenSTL-kth20_predrnnv2_one_ep100")  # rebuilt from the log, strict load
T, C, H, W = args.in_shape
x = torch.rand(1, args.pre_seq_length, C, H, W)   # observed frames in [0, 1]
y = torch.zeros(1, args.aft_seq_length, C, H, W)
with torch.no_grad():
    pred = method._predict(x, y)  # (1, aft_seq_length, C, H, W)

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 original PredRNN.V2 paper.

License

Apache-2.0, as in OpenSTL. The training data has its own terms, which may restrict some uses.

Downloads last month
2
Safetensors
Model size
23.6M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Dataset used to train dronefreak/OpenSTL-kth20_predrnnv2_one_ep100

Collection including dronefreak/OpenSTL-kth20_predrnnv2_one_ep100

Paper for dronefreak/OpenSTL-kth20_predrnnv2_one_ep100