Page 1 of 1

Renderman 20 denoise function

PostPosted: Nov 10th, '15, 15:01
by dhernand
(11/10 10:02) rfm Notice: Executing: ${RMANTREE}/bin/denoise --crossframe -v variance /tmp/farm/Job_299631/1.{0007}.exr\r\nFiltering to produce /tmp/farm/Job_299631/1.{0007}_filtered.exr\r\n\r\nError: Cannot read image file \"/tmp/farm/Job_299631/1.{0007}.exr\". No such file or directory.. Aborting.

Hi, there!\r\nUntil now, we cannot use renderman 20 denoise function in renderfarm properly, but you can see the error message in the log file indicate that it should work. The correct syntax for \"denoise\" command is \"/tmp/farm/Job_299631/1.0007.exr\", not \"{0007}.exr\", can you double check this? Thanks!\r\n\r\nAll the best,\r\n\r\nBotian

Re: Renderman 20 denoise function

PostPosted: Nov 10th, '15, 15:07
by jlaird21
"Switch on Denoise cross frame in the Render Settings.
Set Pixel Variance to, say, 1.0
Submit job to the farm.
Copy the attached script to the images folder and then run it.
It will create a file called "run_denoise".
Execute the "run_denoise" script and it will open a
terminal that will show the progress of the denoising.
The original images should be trashed because they are very large in size.

Malcolm"

save this as a .py file and execute it then execute

#!/usr/bin/env python


# 1 Copy this script to the images folder and then run it.
# It will create a file called "run_denoise".
# 2 Execute the "run_denoise" script and it will open a
# terminal that will show the progress of the denoising.
# Malcolm Kesson
# Nov 10 2015

import os, glob

path = __file__

command = 'denoise --crossframe -v variance '
rootpath = os.path.dirname(path)
pattern = os.path.join(rootpath, "*.exr");

images = glob.glob(pattern)
images.sort()

f = open( os.path.join(rootpath, 'run_denoise'), 'w')

for image in images:
f.write('%s %s\n' % (command, image))

f.close()