Open AsiyaNaqvi opened 2 years ago
I think you might need to adjust the regularization weight for the shape coefficients. You may check the distribution of learned shape coefficients, if their values are too large compare to the initialized ones, you have to increase the regularization weight for them in order to get reasonable shapes.
Thank you for the response.
I tried this by adding regularization on id coefficient in regulation loss function.
regulation_loss = w_shape * tf.nn.l2_loss(id_coeff) + w_ex * tf.nn.l2_loss(ex_coeff) + w_tex * tf.nn.l2_loss(tex_coeff)
I tried different values for w_shape and I also tried to increase the w_id that is used for perceptual loss but still the results aren't getting any better.
Hi, Thank you for sharing this amazing project.
I am trying to convert the extracted shape coefficient from R-Net into binary values and use these binary value to reconstruct the face shape. For this purpose I am using a Straight Through Estimator (STE) and used the following code:
I am only trying to convert shape coefficients into binary while rest of the coefficient remains same. I called this function in networks.py and passed the extracted net_id to quantize function.
When I started training, in initial iterations the model seems to be training fine as you can see in the picture:![13](https://user-images.githubusercontent.com/79710086/131298107-87e3c7b3-96cc-48e9-90cf-d2315d1e6b6c.png)
But as I train it further the results are so bad as you can see:
NOTE: This model is not training from the scratch but I used per-trained weights (that is trained on CELEBA data-set) to initialize the model and then further train it on my custom data-set.
If you have any idea regarding what might be causing this problem and can guide me. I will be really grateful.