---
title: "Denoiser Command Line"
canonical: "https://rmanwiki-25.pixar.com/space/REN25/20415032/Denoiser%20Command%20Line"
format: markdown
---
The denoiser can be run from the command line on frames that have already been rendered to disc in the condition that the required AOVs are correct  
  
usage:   


```
denoise_batch [-h] [-v] [-a ASYMMETRY] [-o OUTPUT] [-cf] [-f] [-j] files [files ...]
```

  


positional arguments:

|  |  |
| --- | --- |
| files | Input files for the denoiser. Files can be either specified via:  
                          
1) a list of files Ex: foo.0001.exr foo.0002.exr foo.0003.exr...  
2) a simple glob Ex: foo.*.exr  
3) a frame range Ex: foo.####.exr foo.diffuse.####.exr 1-50  
                          
Note, you can control which frames are actually denoised using the --frame-include  
or --frame-exclude arguments. This is useful in the case of crossframe denoising  
where you only want specific frames to be denoised, and not necessarily all input  
files. |



optional arguments:

|  |  |  |
| --- | --- | --- |
| -h, | -h, | show this help message and exit |
| -v, | --verbose | Verbose output for debugging. |
|  | --include-aovs | Include AOVs in the output image for debugging |
| -a ASYMMETRY, | --asymmetry ASYMMETRY | controls the asymmetry value, 0 is the best quality, and higher values encourage the denoiser to avoid overblurring, leading to weaker denoising. |
| -o OUTPUT, | --output OUTPUT | The output directory for the denoised images. The JSON config file(s) will also be written to this directory.    
  
If not specified, we write into a subdirectory called "denoised", from the image path. |
| -cf, | --crossframe | Do crossframe denoising |
| -f, | --flow | Whether to compute optical flow. |
| -j, | --json | If provided, use the first input file as the configuration JSON file. All other files and options are ignored. |
|  | --frame-include FRAME_INCLUDE | Includes only the passed frame indices in the denoising job.  
Sequences can be specified as comma separated list of half-open ranges.<br>- 0 refers to the first frame.
- 1-3 refers to frames with index 1 and 2.
- A missing start index in a range is considered 0, a missing end index is considered the sequence length.
- -3 refers to all frames up to but not including frame index 3.
- 3- refers to all frames starting with frame index 3. |
|  | --frame-exclude FRAME_EXCLUDE | Excludes the passed frame indices from the denoising job.  
Sequences can be specified as comma separated list of half-open ranges, just  
like for the include list as seen above. |


for example :  
$RMANTREE/bin/denoise_batch -o /path/to/directory/for/denoised/images imagename.*.exr