onnxruntime/samples/c_cxx/fns_candy_style_transfer
..
CMakeLists.txt
fns_candy_style_transfer.c
README.md

FNS Candy

FNS Candy is a style transfer model. In this sample application, we use the ONNX Runtime C API to process an image using the FNS Candy model in ONNX format.

Build Instructions

See ../README.md

Prepare data

First, download the FNS Candy ONNX model from here.

Then, prepare an image:

  1. PNG format
  2. Dimension of 720x720

Run

Command to run the application:

fns_candy_style_transfer.exe <model_path> <input_image_path> <output_image_path> [cpu|cuda|dml]

To use the CUDA or DirectML execution providers, specify cuda or dml on the command line. cpu is the default.