RIFE

From Avisynth wiki
Jump to: navigation, search
Abstract
Author Asd-g
Version 1.0.3
Download RIFE-1.0.3.7z
Category Frame Rate Converters
License MIT
Discussion

Contents

Description

Real-Time Intermediate Flow Estimation for Video Frame Interpolation, based on rife-ncnn-vulkan.

This is a port of the VapourSynth plugin RIFE.

Requirements

  • Vulkan compatible device
  • [x64]: AviSynth+ r3682 or greater (AviSynth+ 3.7.3 (test 6, r3935 can be downloaded from here)
  • Microsoft VisualC++ Redistributable Package 2022 (can be downloaded from here)
  • Supported color formats: RGBPS
  • models must be located in the same folder as RIFE.


Syntax and Parameters

RIFE (clip input, int "model", int "factor_num", int "factor_den", int "fps_num", int "fps_den", string "model_path", int "gpu_id", int "gpu_thread", bool "tta", bool "uhd", bool "sc", float "sc_threshold", bool "skip", float "skip_threshold", bool "list_gpu", bool "denoise", int "denoise_tr")


clip  input =
A clip to process.
It must be in RGB 32-bit planar format.


int  model = 5
Model to use.
models must be located in the same folder as RIFE.dll.
  • 0: rife
  • 1: rife-HD
  • 2: rife-UHD
  • 3: rife-anime
  • 4: rife-v2
  • 5: rife-v2.3
  • 6: rife-v2.4
  • 7: rife-v3.0
  • 8: rife-v3.1
  • 9: rife-v4
Default: 5.


int  factor_num = 2
int  factor_den = 1
Factor of target frame rate.
For example factor_num=5, factor_den=2 will multiply input clip FPS by 2.5.
Only rife-v4 model supports custom frame rate.
Default: 2, 1.


int  fps_num =
int  fps_den =
Target frame rate.
Only rife-v4 model supports custom frame rate.
Supersedes factor_num/factor_den parameter if specified.
Default: Not specified.


string  model_path =
RIFE model path.
Supersedes model parameter if specified.
Default: Not specified.


int  gpu_id =
GPU device to use.
By default the default device is selected.


int  gpu_thread = 2
Thread count for interpolation.
Using larger values may increase GPU usage and consume more GPU memory. If you find that your GPU is hungry, try increasing thread count to achieve faster processing.
Default: 2.


bool  tta = false
Enable TTA(Test-Time Augmentation) mode.
Default: False.


bool  uhd = false
Enable UHD mode.
Default: False.


bool  sc = false
Avoid interpolating frames over scene changes.
Default: False.


float  sc_threshold = 0.12
Threshold to determine whether the current frame and the next one are end/beginning of scene.
Must be between 0.0..1.0.
Default: 0.12.


bool  skip = false
Skip interpolating static frames.
Requires VMAF plugin.
Default: False.


float  skip_threshold = 60.0
PSNR threshold to determine whether the current frame and the next one are static.
Must be between 0.0..60.0.
Default: 60.0.


bool  list_gpu = false
Simply print a list of available GPU devices on the frame and does nothing else.
Default: False.


bool  denoise = false
Whether to return only the interpolated frames.
Default: False.


int  denoise_tr = 1
Frame radius.
For example, denoise_tr=1 means frames n-1 and n+1 are used.
Must be greater than 0.
Default: 1.


Examples

RIFE with default settings:

LSMASHVideoSource("hd-video.mp4")
z_ConvertFormat(pixel_type="RGBPS", colorspace_op="709:709:709:limited=>rgb:709:709:full")
RIFE()


Changelog

Version      Date            Changes
v1.0.3 2023/02/26 - Added parameters denoise, denoise_tr. - Boost updated to 1.81.0. - Vulkan SDK updated to 1.3.239.0. - ncnn updated to 20230223. v1.0.2 2022/10/06 - Added quality oriented models. (https://github.com/styler00dollar/VapourSynth-RIFE-ncnn-Vulkan) v1.0.1 2022/09/16 - Fixed undefined behavior when upstream throw runtime error. - Updated boost 1.80.0. - Updated Vulkan SDK 1.3.224.1. v1.0.0 2022/08/21 - Initial release. - Used ncnn@93ed2bc. - Used boost 1.79.0. - Used Vulkan SDK 1.3.216.0.


External Links

  • GitHub - Source code repository.




Back to External Filters

Personal tools