onnxruntime/samples/c_cxx/fns_candy_style_transfer
Dmitri Smirnov 09eb8ff8b8
make sure samples run (#2276)
Adjust instructions for imagenet. Fix compile warning.
 Fix input/output names. Update build/run instructions.
2019-10-29 10:07:35 -07:00
..
CMakeLists.txt Add docs for the fns candy demo (#1479) 2019-07-24 08:38:04 -07:00
fns_candy_style_transfer.c make sure samples run (#2276) 2019-10-29 10:07:35 -07:00
README.md Add DirectML Execution Provider (#2057) 2019-10-15 06:13:07 -07:00

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.