XingangPan / GAN2Shape

Code for GAN2Shape (ICLR2021 oral)
https://arxiv.org/abs/2011.00844
MIT License
573 stars 101 forks source link

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

Open yzliu567 opened 3 years ago

yzliu567 commented 3 years ago

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.

XingangPan commented 3 years ago

@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.

yzliu567 commented 3 years ago

@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.