mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
Adjust instructions for imagenet. Fix compile warning. Fix input/output names. Update build/run instructions. |
||
|---|---|---|
| .. | ||
| 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:
- PNG format
- 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.