NextFace icon indicating copy to clipboard operation
NextFace copied to clipboard

Has anyone used the 2048 uv

Open Michaelwhite34 opened this issue 3 years ago • 16 comments
trafficstars

Michaelwhite34 avatar Jul 19 '22 02:07 Michaelwhite34

The map is good for 512 but higher res suffers OOM and cpu is taking too long, if anyone has a 2048 result, plz share it.

Michaelwhite34 avatar Jul 19 '22 02:07 Michaelwhite34

u may want to try the gpu backend ?

abdallahdib avatar Jul 19 '22 12:07 abdallahdib

u may want to try the gpu backend ?

What do you mean by gpu backend ? If I use gpu for higher than 512, it gives cuda out of memory error.Maybe you mean colab, but I guess we need more than 20G gpu memory to run 2048 uv.

Michaelwhite34 avatar Jul 19 '22 14:07 Michaelwhite34

how many samples are u using for optimization ? I never tested with 2048 texture size, u may need to find an alternative (upscaling as post processing to get the desired resolution)

abdallahdib avatar Jul 29 '22 10:07 abdallahdib

how many samples are u using for optimization ? I never tested with 2048 texture size, u may need to find an alternative (upscaling as post processing to get the desired resolution)

Currently I am using Cpu all the way, takes 10-15 hours to get reasonable result.

Michaelwhite34 avatar Jul 29 '22 10:07 Michaelwhite34

that seems too much, can u tell how many ray tracing samples are u using for optim?

abdallahdib avatar Jul 29 '22 11:07 abdallahdib

I am using 100, maybe lower will work.But 8 is to low.

Michaelwhite34 avatar Jul 29 '22 11:07 Michaelwhite34

that seems too much, can u tell how many ray tracing samples are u using for optim?

8 sample will get around 20-25% average brightness difference in the end,while 100 sample get around 13-14%.

Michaelwhite34 avatar Jul 29 '22 11:07 Michaelwhite34

so in fact the slow time are caused by these factors in ur case

  • texture resolution 2048
  • env map 2048
  • samples per pxiel (100)
  • running on cpu

in fact the default parameters provided by nextFace try to balance between quality and execution time.. u pushed to the max in ur case...

Also using 100 samples should that much improvment compared to 8.

abdallahdib avatar Jul 29 '22 11:07 abdallahdib

Also you can add a script to render with redner using the exported maps, that way we can know if the maps are actually good.

Michaelwhite34 avatar Jul 29 '22 11:07 Michaelwhite34

well the final output is rendered with redner (saveOutput function in optimizer.py) this function render the face at high number of samples and save the outpout as an image (render.png) in the given output directory

abdallahdib avatar Jul 29 '22 11:07 abdallahdib

well the final output is rendered with redner (saveOutput function in optimizer.py) this function render the face at high number of samples and save the outpout as an image (render.png) in the given output directory

I am not sure about this, I thought the color information stored in pickle file is not in the format of texture. So rendering these information into texture might somehow break these information, like low resolution environment.

Michaelwhite34 avatar Jul 29 '22 11:07 Michaelwhite34

all the optimized textures are saved in png format with gamma correction applied to them

abdallahdib avatar Jul 29 '22 11:07 abdallahdib

So it means we don't need to gamma correct again to use it ?I understand png is lossless, but I just want to make sure things don't go wrong during the conversion process.

Michaelwhite34 avatar Jul 29 '22 11:07 Michaelwhite34

yes the function saveImage in Image.py already apply a gamma correction to the image. so u dont need to gamma correct the textures. u can (optionally) modify the code to export to an exr format to get the full range

abdallahdib avatar Jul 29 '22 11:07 abdallahdib

yes the function saveImage in Image.py already apply a gamma correction to the image. so u dont need to gamma correct the textures. u can (optionally) modify the code to export to an exr format to get the full range

I think for now we need to make the final render as close to original image as possible, ideally something like jpeg compression. My result is like 5 to 7 times big as that.

Michaelwhite34 avatar Jul 29 '22 11:07 Michaelwhite34