RenderKit / oidn

Intel® Open Image Denoise library
https://www.openimagedenoise.org/
Apache License 2.0
1.74k stars 160 forks source link

It's not clear how to run oidnDenoise #131

Closed yurivict closed 2 years ago

yurivict commented 2 years ago

Help screen isn't helpful (it doesn't even mention how to supply an image), and when run it always says:

Error: option expected

The error message should specify what option is meant.

claudiomush commented 2 years ago

Hello, I've the same problem: which option ?

atafra commented 2 years ago

Any option. It seems that the command was invoked with incorrect syntax but it's hard to say without knowing the exact command line.

The help screen does specify how to supply an image though (highlighted in bold):

./oidnDenoise -h Intel(R) Open Image Denoise usage: oidnDenoise [-d/--device default|cpu] [-f/--filter RT|RTLightmap] [--hdr color.pfm] [--ldr color.pfm] [--srgb] [--dir directional.pfm] [--alb albedo.pfm] [--nrm normal.pfm] [--clean_aux] [--is/--input_scale value] [-o/--output output.pfm] [-r/--ref reference_output.pfm] [-t/--type float|half] [-w/--weights weights.tza] [--threads n] [--affinity 0|1] [--maxmem MB] [--inplace] [--bench ntimes] [-v/--verbose 0-3] [-h/--help]

MrPalais commented 2 years ago

Please, how to specify input file as the demo (jpg file) ?

oidnDenoise.exe -i 1.png -o t.png
Error: invalid argument
yurivict commented 1 year ago

@atafra Is there an example how to run oidnDenoise on a png image to produce a denoised png image?

atafra commented 1 year ago

./oidnDenoise -ldr input.png -o output.png But you need to rebuild with OpenImageIO support to have PNG support.