Getting Started#
Installation#
Install from source:
pip install .
Or with Pixi:
pixi install
pixi run install
Or build with CMake:
cmake -S . -B build
cmake --build build
Quick Start (C++)#
Include the public header and call RegisterImageKernels() once before
running any model that uses the ImageDecoder operator:
#include <onnx_light_kernel_images/register_image_kernels.h>
int main() {
onnx_light_kernel_images::RegisterImageKernels();
// ... run models ...
}
Quick Start (Python)#
from onnx_light_kernel_images.onnx_py._imgpykernels import register_image_kernels
register_image_kernels()