Avs-mlrt
From Avisynth wiki
(Difference between revisions)
(avs-mlrt (WIP0) |
(→External Links: add links to compatible models) |
||
Line 88: | Line 88: | ||
== External Links == | == External Links == | ||
*[https://github.com/Asd-g/avs-mlrt GitHub] - Source code repository. | *[https://github.com/Asd-g/avs-mlrt GitHub] - Source code repository. | ||
+ | *[https://forum.doom9.org/showthread.php?t=184768 Doom9] - ONNX models compatible with avs-mlr. | ||
<br> | <br> | ||
<br> | <br> | ||
----------------------------------------------- | ----------------------------------------------- | ||
'''Back to [[External_filters#Averaging.2FLayering.2FMasking|External Filters]] ←''' | '''Back to [[External_filters#Averaging.2FLayering.2FMasking|External Filters]] ←''' |
Revision as of 21:21, 26 February 2023
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.
- clip =
- string network_path =
- Path to the model.
- string network_path =
- 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 overlap_w = 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 tilesize_w = input_width
- int device_id =
- GPU device to use.
- By default the default device is selected.
- int device_id =
- int num_streams = 1
- GPU parallel execution.
- Default: 1.
- int num_streams = 1
- bool builtin = True
- Whether the models are in the same location with the plugin.
- Default: True.
- bool builtin = True
- string builtindir = "models"
- Root folder when
builtin
is used. - Default: "models".
- Root folder when
- string builtindir = "models"
- bool fp16 = False
- Enable FP16 mode.
- Default: False.
- bool fp16 = False
- bool path_is_serialization = False
- Whether the model is serialized into one contiguous memory buffer.
- Default: False.
- bool path_is_serialization = False
- bool list_gpu = False
- Simply print a list of available GPU devices on the frame and does nothing else.
- Default: False.
- bool list_gpu = False
Examples
Changelog
Version Date Changes
v1.0.0 2023/01/27 - Initial release
External Links
Back to External Filters ←