RIFE v4.5 (rife45.pth)

This repository has the RIFE v4.5 frame interpolation weights in the .pth format that ComfyUI-Frame-Interpolation uses.

The weights come from the official Practical-RIFE v4.5 release (2022-09-14) by hzwer. The current Practical-RIFE README no longer lists v4.5, but the original Google Drive link is in the README git history.

Conversion

The file is train_log/flownet.pkl from the release, with two changes:

  • The module. prefix is removed from each key.
  • The block_tea.* keys are removed. They are a teacher network that is used only in training.

The weights are not changed. The script below makes the file:

import torch

sd = torch.load("train_log/flownet.pkl", map_location="cpu", weights_only=True)
sd = {k.replace("module.", "", 1): v for k, v in sd.items() if k.startswith("module.") and "block_tea" not in k}
torch.save(sd, "rife45.pth")

The result loads into IFNet(arch_ver="4.5") from ComfyUI-Frame-Interpolation with all 120 keys matched.

File SHA256
rife45.pth 4fd09c3fb167528dbb9e55e24cde8fc24b99d9357100680dd966454c21047102
Original release zip bf053392175d6a43eae64004eee16dfc231ce322979126501da5cb37bc078805

Use with ComfyUI-Frame-Interpolation

  1. Put rife45.pth in custom_nodes/comfyui-frame-interpolation/ckpts/rife/.
  2. If your version of the node does not list rife45.pth, add "rife45.pth": "4.5", to CKPT_NAME_VER_DICT in vfi_models/rife/__init__.py.

License

The weights are under the MIT License from Practical-RIFE, Copyright (c) 2021 hzwer. The full text is in LICENSE.

Citation

@inproceedings{huang2022rife,
  title={Real-Time Intermediate Flow Estimation for Video Frame Interpolation},
  author={Huang, Zhewei and Zhang, Tianyuan and Heng, Wen and Shi, Boxin and Zhou, Shuchang},
  booktitle={Proceedings of the European Conference on Computer Vision (ECCV)},
  year={2022}
}
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support