instant-ngp icon indicating copy to clipboard operation
instant-ngp copied to clipboard

How to Export trained image ? ( Like albert.exr )

Open pbenaim opened this issue 2 years ago • 3 comments

The example look very good, but how export the result to image format, like jpg or other ?

Thanks a lot for your work.

pbenaim avatar Jul 03 '22 08:07 pbenaim

I believe it is possible to export the resulting image by running /scripts/run.py and specifying the save_mesh flag. But I haven't been able to get it running yet.

GitUser520 avatar Jul 06 '22 20:07 GitUser520

I don't really looking for mesh, but for result in bitmap file. I haven't looked in the sources for the scripts yet. But if somebody done, I will take it 👍

pbenaim avatar Jul 06 '22 20:07 pbenaim

I added this to write the reconstructed image to out.png:

ref_image = read_image(args.scene)
image = testbed.render(ref_image.shape[1], ref_image.shape[0], 1, True)
write_image("out.png", image)

ericchen321 avatar Jul 15 '22 23:07 ericchen321