This project use GAN and Neural Texture to synthesis the image on new view and light condition.
Training data: the object under 32 view directions and 384 lighting directions, a total of 12288 photos.
Novel View Point Synthesis:
Relighting:
- Copy the data to folder
data/
- Check
stereo/
directory and filemask_cam00.png
- Copy normal map,
lights_8x8.bin
todata/
- Check
- Copy the mesh to
D:\Code\Project\temp\PathTracer\PathTracer
- Run
gen_uv_map.py
to generate uv_map - Write a config file:
- Modify OBJECT_NAME
- Modify DATASET.NAME
- Modify DATASET.ROOT
- Run:
python train_gan_new.py --cfg <yaml config file>