GAN2Shape icon indicating copy to clipboard operation
GAN2Shape copied to clipboard

What ranges are the lighting parameters ks and kd distributed in?

Open yzliu567 opened this issue 4 years ago • 2 comments

Hi, did you print out and see how your predicted ks and kd are distributed on faces? I want to apply random lighting on albedo maps, so I need to randomly sample ks and kd. But I don't know how to set the range of them to sample. Thank you.

yzliu567 avatar Jun 02 '21 16:06 yzliu567

@yzliu567 Hi, you need to revise the rand_light: [-0.9,0.9,-0.3,0.8,-0.1,0.7,-0.4] parameter in the config file. The corresponding light sampling code is at gan2shape/model.py Line 752-762. This is also described in the Appendix of our paper.

XingangPan avatar Jun 04 '21 03:06 XingangPan

@yzliu567 Hi, you need to revise the rand_light: [-0.9,0.9,-0.3,0.8,-0.1,0.7,-0.4] parameter in the config file. The corresponding light sampling code is at gan2shape/model.py Line 752-762. This is also described in the Appendix of our paper.

@XingangPan Hi, I mean, can I get a proper "final" ks and kd sampler without lighting prediction network? You've added the predicted light parameters to the sampled parameters.

yzliu567 avatar Jun 04 '21 06:06 yzliu567