Skip to main content

VapourSynth-MLRT-OV

This package contains the OpenVINO backend implementation of the vs-mlrt plugin.

Installation

pip install vapoursynth-mlrt-ov

Building from source

Requirements

  • C++ Compiler: C++20 compatible (e.g. MSVC 2019+, GCC, Clang)
  • Dependencies:
    • OpenVINO SDK (including OpenVINO Runtime & TBB)
    • ONNX
    • Protobuf
  • CMake Options:
    • WIN32_SHARED_OPENVINO (defaults to ON): Build for Windows with a shared OpenVINO dynamic library. If enabled, copies OpenVINO Runtime and dependency DLLs (tbb12.dll, etc.) to the installation folder.

Compilation

uv build --package vapoursynth-mlrt-ov

Detailed parameter information from the parent project follows.


VapourSynth OpenVINO

The vs-openvino plugin provides optimized pure CPU runtime for some popular AI filters.

Building and Installation

To build, you will need OpenVINO and its dependencies. Only Model Optimizer and Inference Engine are required.

You can download official Intel releases:

Or, you can use our prebuilt Windows binary releases from AmusementClub, our release has the benefit of static linking support.

Sample cmake commands to build:

cmake -S . -B build -G Ninja -D CMAKE_BUILD_TYPE=Release
	-D CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded
	-D InferenceEngine_DIR=openvino/runtime/cmake
	-D VAPOURSYNTH_INCLUDE_DIRECTORY="path/to/vapoursynth/include"
cmake --build build
cmake --install build --prefix install

You should find vsov.dll (or libvsov.so) under install/bin. You will also need Intel TBB (you can get tbb.dll from OpenVINO release). On windows, tbb.dll must be placed under vapoursynth/plugins/vsov/ directory for vsov.dll to find.

Usage

Prototype: core.ov.Model(clip[] clips, string network_path[, int[] overlap = None, int[] tilesize = None, string device = "CPU", bint builtin = 0, string builtindir="models", bint fp16 = False, function config = None, bint path_is_serialization = False])

Arguments:

  • clip[] clips: the input clips, only 32-bit floating point RGB or GRAY clips are supported. For model specific input requirements, please consult our wiki.
  • string network_path: the path to the network in ONNX format.
  • int[] overlap: some networks (e.g. CNN) support arbitrary input shape where other networks might only support fixed input shape and the input clip must be processed in tiles. The overlap argument specifies the overlapping (horizontal and vertical, or both, in pixels) between adjacent tiles to minimize boundary issues. Please refer to network specific docs on the recommended overlapping size.
  • int[] tilesize: Even for CNN where arbitrary input sizes could be supported, sometimes the network does not work well for the entire range of input dimensions, and you have to limit the size of each tile. This parameter specify the tile size (horizontal and vertical, or both, including the overlapping). Please refer to network specific docs on the recommended tile size.
  • string device: Specifies the device to run the inference on. Currently "CPU" and "GPU" are supported. "GPU" requires Intel graphics (Broadwell+ processors with Gen8+ integrated GPUs or Xe discrete GPUs) with compatible graphics driver and compute runtime.
  • bint builtin: whether to load the model from the VS plugins directory, see also builtindir.
  • string builtindir: the model directory under VS plugins directory for builtin models, default "models".
  • bint fp16: whether to quantize model to fp16 for faster and memory efficient computation.
  • function config: plugin configuration parameters. It must be a callable object (e.g. a function) with no positional arguments, and returns the configuration parameter in a dictionary dict. The dictionary must use string str for its key and int, float or str for its values. Supported parameters: CPU, GPU (the prefix KEY_ has to be removed). Example: config = lambda: dict(CPU_THROUGHPUT_STREAMS=2)
  • bint path_is_serialization: whether the network_path argument specifies an onnx serialization of type bytes.

When overlap and tilesize are not specified, the filter will internally try to resize the network to fit the input clips. This might not always work (for example, the network might require the width to be divisible by 8), and the filter will error out in this case.

The general rule is to either:

  1. left out overlap, tilesize at all and just process the input frame in one tile, or
  2. set all three so that the frame is processed in tilesize[0] x tilesize[1] tiles, and adjacent tiles will have an overlap of overlap[0] x overlap[1] pixels on each direction. The overlapped region will be throw out so that only internal output pixels are used.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vapoursynth_mlrt_ov-16.0.tar.gz (675.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

vapoursynth_mlrt_ov-16.0-py3-none-win_amd64.whl (69.4 MB view details)

Uploaded Python 3Windows x86-64

vapoursynth_mlrt_ov-16.0-py3-none-manylinux_2_35_aarch64.whl (21.5 MB view details)

Uploaded Python 3manylinux: glibc 2.35+ ARM64

vapoursynth_mlrt_ov-16.0-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (49.1 MB view details)

Uploaded Python 3manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

vapoursynth_mlrt_ov-16.0-py3-none-macosx_15_0_x86_64.whl (31.4 MB view details)

Uploaded Python 3macOS 15.0+ x86-64

vapoursynth_mlrt_ov-16.0-py3-none-macosx_14_0_arm64.whl (23.5 MB view details)

Uploaded Python 3macOS 14.0+ ARM64

File details

Details for the file vapoursynth_mlrt_ov-16.0.tar.gz.

File metadata

  • Download URL: vapoursynth_mlrt_ov-16.0.tar.gz
  • Upload date:
  • Size: 675.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for vapoursynth_mlrt_ov-16.0.tar.gz
Algorithm Hash digest
SHA256 d5181936c2ea7382c6f9e69d6d1e9d4e64c7109658f609553a99bcf559a19ea4
MD5 87b8ff15a76996e8a606973acb71b5d1
BLAKE2b-256 34bd7f72f5f7de8f6e13b6418aa1292dc806852b98784af5bdfb14949a297e4b

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_mlrt_ov-16.0.tar.gz:

Publisher: cd-publish.yml on Jaded-Encoding-Thaumaturgy/vs-wheels

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vapoursynth_mlrt_ov-16.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for vapoursynth_mlrt_ov-16.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 66ca2ea2852625914e88db7b78eb57e79136e6475778453c2b3fda0f3061ef12
MD5 248853adf8d4eafae17615890cdf1994
BLAKE2b-256 73dda97ee45c4447d609221bf3e603c573088d358420f712eba6d3785a171ce8

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_mlrt_ov-16.0-py3-none-win_amd64.whl:

Publisher: cd-publish.yml on Jaded-Encoding-Thaumaturgy/vs-wheels

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vapoursynth_mlrt_ov-16.0-py3-none-manylinux_2_35_aarch64.whl.

File metadata

File hashes

Hashes for vapoursynth_mlrt_ov-16.0-py3-none-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 ba34ed3576eb9336301c1d0021921f75b43cb6e135b1fa10f44dcdb57741657b
MD5 13c0762aa65ed20c88b92d081cecb3a3
BLAKE2b-256 eb5d4a2aa0448c790387cac99fda377bbd19bd2772275395fc18f08600ff40c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_mlrt_ov-16.0-py3-none-manylinux_2_35_aarch64.whl:

Publisher: cd-publish.yml on Jaded-Encoding-Thaumaturgy/vs-wheels

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vapoursynth_mlrt_ov-16.0-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for vapoursynth_mlrt_ov-16.0-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 334bea48531ede2b2fe8e769e6a34d3ef78e2bf21b49c221f0667e669860b4ab
MD5 60197052f5693ad1e99d194ec66ba503
BLAKE2b-256 cd3669ccd153333b84d10c0541a94b40cc37dddc5d85a4d0d072f72c4e8ff7db

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_mlrt_ov-16.0-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: cd-publish.yml on Jaded-Encoding-Thaumaturgy/vs-wheels

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vapoursynth_mlrt_ov-16.0-py3-none-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for vapoursynth_mlrt_ov-16.0-py3-none-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 16cc8d7171e5ffaed7d6152e6e1805e1facd5dcac515e58634bf78db71aaa1db
MD5 71de0e14692358e0d1df0f1685a53563
BLAKE2b-256 00a55cb5a4785db7399764637ef2e577b69b2d6fbe6b449c6c3e2ddef3333b86

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_mlrt_ov-16.0-py3-none-macosx_15_0_x86_64.whl:

Publisher: cd-publish.yml on Jaded-Encoding-Thaumaturgy/vs-wheels

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vapoursynth_mlrt_ov-16.0-py3-none-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for vapoursynth_mlrt_ov-16.0-py3-none-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 bbbff01399e3e3ceb08e6f6329d1b71511affb1d63637bcab02b956969f326f5
MD5 fc67ef552a76b65544b23c09864e2531
BLAKE2b-256 99bcffdf0d33135384ac7aff0d4f06e2f9a062dfe399551e994de8694e8db8b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_mlrt_ov-16.0-py3-none-macosx_14_0_arm64.whl:

Publisher: cd-publish.yml on Jaded-Encoding-Thaumaturgy/vs-wheels

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

16.1

6 files

This release

16.0 This release

6 files

15.16

6 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page