Radeon ProRender

AI Custom Model Filter

Filter

RIF_CUSTOM_AI_MODEL

Description

Applies a custom model file trained by the user to an input image.

Parameters

Parameter Type Input/Output Description
modelPath string input Path to machine learning model file.

Usage Example

rif_image_filter filter = nullptr;
rifContextCreateImageFilter(context, RIF_CUSTOM_AI_MODEL, &filter);
rifImageFilterSetParameterString(filter, "modelPath", "./models/custom-model.pb");
rifCommandQueueAttachImageFilter(queue, filter, inputImage, outputImage);
rifContextExecuteCommandQueue(context, queue, nullptr, nullptr, nullptr);