• Stars
    star
    350
  • Rank 121,229 (Top 3 %)
  • Language
    C++
  • License
    MIT License
  • Created almost 7 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A simple implementation of Nvidia's AI denoiser

NVidia AI Denoiser command line tool

This is a simple implementation of NVidia AI denoiser. You can find a pre-built windows distribution either on my website here or in the releases tab of this repro. To build you will need to install the CUDA took availible from here and the OptiX 7.3 SDK availible here.

You will require an Nvidia driver of at least 465.84 or higher and an Nvidia GPU of Maxwell architecture or newer to use the OptiX denoiser.

Usage

Command line parameters

  • -i [string] : path to input image
  • -o [string] : path to output image
  • -a [string] : path to input albedo AOV (optional)
  • -n [string] : path to input normal AOV (optional, requires albedo AOV)
  • -b [float] : blend amount (default 0)
  • -hdr [int] : Use HDR training data (default 1)
  • -repeat [int] : Execute the denoiser N times. Useful for profiling.
  • -h/--help : Lists command line parameters

You need to at least have an input and output for the app to run. If you also have them, you can add an albedo AOV or albedo and normal AOVs to improve the denoising. All images should be the same resolutions, not meeting this requirement will lead to unexpected results (likely a crash).

For best results provide as many of the AOVs as possible to the denoiser. Generally the more information the denoiser has to work with the better. The denoiser also prefers images rendered with a box filter or by using FIS.

Examples

Here is a quick example scene that uses the images that can be found in the image folder of this repository.

Noisy image

test

Denoised output

denoise_test

Simple sequence batch script

As it has been widely requested here is a very simple batch script for denoising sequences until I have time to implement something proper into the application itself. It will do the most simple denoising without any feature AOVs. Save the following code into a file named Sequence.bat and place it into the directory where your images are saved. Running this script will denoise all files image files that match the chosen file extension in the folder. There are three parameters that you will need to edit in the script,

  • FILE_EXTENSION – the file extension of your image
  • PATH_TO_DENOISER – the full directory of the Denoiser.exe
  • OUTPUT_PREFIX – a prefix which is prepended to the name of the image to create the output name. I.e. with the prefix denoised_ the image test.jpg will become denoised_test.jpg
SET FILE_EXTENSION=jpg
SET PATH_TO_DENOISER=D:\Projects\NvidiaAIDenoiser\Denoiser_v2.0
SET OUTPUT_PREFIX=denoised_

for /r %%v in (*.%FILE_EXTENSION%) do %PATH_TO_DENOISER%\Denoiser.exe -i "%%~nv.%FILE_EXTENSION%" -o "%OUTPUT_PREFIX%%%~nv.%FILE_EXTENSION%"

cmd /k

License info

This project is shared under the MIT License.

More Repositories

1

IntelOIDenoiser

A simple implementation of Intels Open Image denoiser -> https://github.com/OpenImageDenoise/oidn
C++
87
star
2

LaplacianDeformPlugin

My laplacian mesh deformation plugin for maya. Compiled for linux and complete with python management script.
C++
17
star
3

AGSDTFluidSim

A fluid simulation for my advanced graphics software development techniques unit.
C++
5
star
4

SpiralLineArt

A small project inspired by the images created here http://imgur.com/gallery/r8zBl
C++
4
star
5

MCDeformation

Master class deformation project
C++
3
star
6

aiSimpleShader

Implementation of the simple Arnold shader demonstrated here https://support.solidangle.com/display/AFMUG/Creating+a+Shader
Python
2
star
7

FourierSampleAnalysis

Fourier analysis for samples implementation using the technique presented in Wei & Wand Differential Domain Analysis for Non-uniform Sampling
C++
2
star
8

terrainGeneration

Terrain generation project for collaborative research assignement
C++
1
star
9

PxrGGX

Renderman BxDF plugin for GGX from the Microfacet Models for Refraction through Rough Surfaces paper.
C++
1
star
10

ClothSim

Simple cloth simulation using CUDA acceleration. Maybe Ill do some simple OptiX at some point....
C++
1
star
11

OpenGLCUDATemplate

A blank openGL scene with CUDA build instructions ready for any new projects you may want to create. CUDA build instructions are dynamic parallelism ready.
C++
1
star
12

Stippling

Some image stippling using and SPH blue noise technique [Jiang 2015] inspired by Jose Esteves blog posts http://www.joesfer.com/?p=108 http://www.joesfer.com/?p=149
C++
1
star
13

OptixSamples

Some of the optix sample programs made compatible with Qt
C++
1
star
14

Phenix

Real time path tracer made with OptiX
C++
1
star