Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confidence Net in the model #182

Open
HOMGH opened this issue Sep 23, 2021 · 7 comments
Open

Confidence Net in the model #182

HOMGH opened this issue Sep 23, 2021 · 7 comments

Comments

@HOMGH
Copy link

HOMGH commented Sep 23, 2021

Hey, Thanks for your great work.
Just wondering what is the notation of Confidence subnet (C-Net) in your repository? I can't find any C-Net in your codes.
I'm pretty much sure that there were R-Net and C-Net in your codes (maybe the initial version)! But now it's just R_Net and Perceptual_Net in networks.py.

@YuDeng
Copy link
Contributor

YuDeng commented Sep 26, 2021

Hi, sorry that the current code does not include the C-Net part. Actually, we did not release the C-Net part in any previous versions.

@HOMGH
Copy link
Author

HOMGH commented Sep 26, 2021

Thanks for your reply. So, it means you do not use Confidence Net in your model? or you've used Confidence Net in your model but haven't released it's code?!

@YuDeng
Copy link
Contributor

YuDeng commented Sep 28, 2021

Well, in the paper we did use the C-Net and report the evaluation results. Later in practice, we find that in most of the times C-Net only has minor improvement (in quantitative metrics) upon the naive average shape and shows no difference in visual quality. Therefore we only release the single image part (R-Net) which we think is enough to produce good result.

@HOMGH
Copy link
Author

HOMGH commented Sep 28, 2021

Gotcha! Thanks for your clarification!

@paolalf
Copy link

paolalf commented Oct 9, 2021

@YuDeng , I have a question related to this topic. I was wondering what do you mean with "naive average shape". I am trying to reconstruct a face from multiple images of the same subject and I have managed to do so by getting the face_shape_ from single images of the subject (from different angles), and then I perform the average by using np.mean() between the "face_shape_"s. This way I get a decent result, but the final face appears to be "squeezed", so I don't think that the np.mean() is what you mean with naive average shape. Thank you in advance.

@YuDeng
Copy link
Contributor

YuDeng commented Oct 12, 2021

Hi, the "average shape" means taking the average of identity coefficients and use the averaged coeff to construct the shape.

@paolalf
Copy link

paolalf commented Oct 13, 2021

Hi, the "average shape" means taking the average of identity coefficients and use the averaged coeff to construct the shape.

Thank you very much for your answer, @YuDeng . I have another question, If you could help me.
Assuming that I have n pictures of the same subject, if I wanted to take the average of the identity coefficients, what I understand is therefore that I have to "collect" the n coeff_s returned by every

coeff_,face_shape_,face_texture_,face_color_,landmarks_2d_,recon_img_,tri_ = sess.run([coeff,\
					face_shape,face_texture,face_color,landmarks_2d,recon_img,tri],feed_dict = {images: input_img})

performed on every image of my subject and take the average of the identity portion of said coeffs_. This is then merged with the untouched portion of the coeff_ and finally what it's get is the averaged_coeff_. Following this, do you have a suggestion on how to get the face_shape_ from the new averaged_coeff_? Do I have to call again the above code, making sure that the tf.Graph() uses the new coefficient, maybe implementing an if/else statement within the tf.Graph()? Another thing that I tried was to execute:

FaceReconstructor.Reconstruction_Block(averaged_coeff,opt)
face_shape = FaceReconstructor.face_shape_t

within the tf.Session(), but it doesn't seem to be the right path to follow.
Thank you again for your time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants