zqbai-jeremy / DFNRMVS

Source code for CVPR 2020 paper "Deep Facial Non-Rigid Multi-View Stereo"
GNU General Public License v3.0
167 stars 25 forks source link

The training code #3

Closed ForrestPi closed 4 years ago

ForrestPi commented 4 years ago

Could you provide the training part codes? Thanks

zqbai-jeremy commented 4 years ago

The training code is quite messy thus not easy to clean and use. I can provide loss functions and training parameters shortly. The rest is just normal training pipeline.

ForrestPi commented 4 years ago

@zqbai-jeremy Thanks, wish for the loss functions and training parameters

zqbai-jeremy commented 4 years ago

@ForrestPi The loss functions and training parameters have been uploaded. Please let me know if you have any further questions. Thank you for your interest in our work.

moranli19 commented 4 years ago

Is there any code or more details for training data processing?

The StirlingESRS_3Dface dataset contains 74 females and 64 different male subjects. Each subject with 8 expressions. As you describe in the paper 'Then, we render one image for each expression with different poses and same global illumination using Spherical Harmonics (SH).', the amount of training sample should be (74+64)*C(8,2) = 3864 samples. This number does not conform to 8K as you mentioned 'As a result, around 8K training samples are generated.' Is there any misunderstanding?

Thanks for any reply~!

zqbai-jeremy commented 4 years ago

@moranli19 For each identity, we generate 100 samples with randomly sampled 2 expressions, 2 poses, and 1 illumination. Then we detect landmarks on rendered images and check whether they are consistent with landmarks on 3D scans (since the landmark detector and the NICP registration may have errors). If not, the sample is discard. As a result, we finally have around 8K samples. Please let me if you have any further questions. Thank you!