Avs-mlrt

From Avisynth wiki
Revision as of 22:21, 26 February 2023 by Reel.Deal (Talk | contribs)

Jump to: navigation, search
Abstract
Author Asd-g
Version 1.0.0
Download avs-mlrt.7z
Category Multipurpose
License GPLv3
Discussion

Contents

Description

This project provides AviSynth+ ML filter runtimes for variety of platforms.

To simplify usage, a wrapper mlrt.avsi is provided for all bundled models.

This is a partial port of the VapourSynth plugin vs-mlrt.

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)


Syntax and Parameters

mlrt_ncnn

mlrt_ncnn (clip[] input, string "network_path", int "overlap_w", int "overlap_h", int "tilesize_w", int "tilesize_h", int "device_id", int "num_streams", bool "builtin", string "builtindir", bool "fp16", bool "path_is_serialization", bool "list_gpu")


clip   =
Clips to process.
They must be in RGB/Gray 32-bit planar format, have same dimensions and same number of frames.


string  network_path =
Path to the model.


int  overlap_w = 0
int  overlap_w = 0
Overlap width and overlap height of the tiles, respectively.
Must be less than or equal to tilesize_w / tilesize_h / 2.
Default: 0.


int  tilesize_w = input_width
int  tilesize_h = input_height
Tile width and height, respectively.
Use smaller value to reduce GPU memory usage.
Must be specified when overlap_w / overlap_h > 0.
Default: input_width, input_height.


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


int  num_streams = 1
GPU parallel execution.
Default: 1.


bool  builtin = True
Whether the models are in the same location with the plugin.
Default: True.


string  builtindir = "models"
Root folder when builtin is used.
Default: "models".


bool  fp16 = False
Enable FP16 mode.
Default: False.


bool  path_is_serialization = False
Whether the model is serialized into one contiguous memory buffer.
Default: False.


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


Examples

TODO

Changelog

Version      Date            Changes
v1.0.0 2023/01/27 - Initial release


External Links

  • GitHub - Source code repository.
  • Doom9 - ONNX models compatible with avs-mlr.




Back to External Filters

Personal tools