metadata
license: apache-2.0
language:
- en
Metal compatible models for Frame Interpolation in PyTorch
This repository contains exported models for Frame interpolation in PyTorch and ComfyUI Frame Interpolation (ComfyUI VFI). The models from v1.0.2 distributed in the Frame interpolation in PyTorch repository have an issue where they don't work on Apple Silicon Macs (Runtime error: MPS Unsupported Border padding mode). These models have been re-exported using a patch that resolves this issue.
The models were created using the following steps:
- Clone the original repository and install dependencies:
git clone https://github.com/dajes/frame-interpolation-pytorch.git
cd frame-interpolation-pytorch
uv venv
uv pip install -r requirements.txt
uv pip install tensorflow
- Download model files distributed by FILM: Frame Interpolation for Large Motion from Google Drive and place them in the repository root:
tree
.
βββ export.py
βββ feature_extractor.py
βββ fusion.py
βββ inference.py
βββ interpolator.py
βββ LICENSE
βββ photos
β βββ one.png
β βββ output.gif
β βββ two.png
βββ pyramid_flow_estimator.py
βββ README.md
βββ requirements.txt
βββ saved_model
β βββ assets
β βββ keras_metadata.pb
β βββ saved_model.pb
β βββ variables
β βββ variables.data-00000-of-00001
β βββ variables.index
βββ util.py
- Apply the patch:
curl -L https://github.com/dajes/frame-interpolation-pytorch/pull/6.patch -o PR6.patch
git apply PR6.patch
- Export the models:
uv run export.py ./saved_model film_net_fp16.pt
uv run export.py ./saved_model film_net_fp32.pt --fp32
Citation
In accordance with the requirements of the original repositories, if you use these model files, please cite the following:
@inproceedings{reda2022film,
title = {FILM: Frame Interpolation for Large Motion},
author = {Fitsum Reda and Janne Kontkanen and Eric Tabellion and Deqing Sun and Caroline Pantofaru and Brian Curless},
booktitle = {European Conference on Computer Vision (ECCV)},
year = {2022}
}
@misc{film-tf,
title = {Tensorflow 2 Implementation of "FILM: Frame Interpolation for Large Motion"},
author = {Fitsum Reda and Janne Kontkanen and Eric Tabellion and Deqing Sun and Caroline Pantofaru and Brian Curless},
year = {2022},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/google-research/frame-interpolation}}
}
License
Following the original repositories, Frame Interpolation in PyTorch and FILM: Frame Interpolation for Large Motion, this project is licensed under the Apache 2.0 License.