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

How to improve shape optimization #12

Closed
ujjawalcse opened this issue Feb 15, 2023 · 6 comments
Closed

How to improve shape optimization #12

ujjawalcse opened this issue Feb 15, 2023 · 6 comments

Comments

@ujjawalcse
Copy link

Hey @csbhr ,
Thanks a lot for releasing the code. I tried the given run_rgb_fitting.sh and it's working fine.
But output face shape is not matching with the input as it's giving round faces in most of the cases.

Any idea how to improve the shape optimization part running in step 3 of ours_fit_model.py module?

Reference input,
Ranbir_Kapoor_promoting_Brahmastra_1676026251_2033703

Reference output,
ranvir

@csbhr
Copy link
Owner

csbhr commented Feb 23, 2023

From the pre-processing results in the figure below, the face parsing does not exclude the hand area. The fitting process would be affected by the hand texture. More accurate face parsing results might helpful.

issue13

@ujjawalcse
Copy link
Author

@csbhr , This is a case of occlusion. But I have tested with other clear images too.
Normally, It's coming more round like 3D shapes.
Check this reference input and corresponding output,
Pic_1676008638_7974665

saurav
stage3_vis

@csbhr
Copy link
Owner

csbhr commented Feb 24, 2023

image

From the 68 landmarks in the image above (gt landmarks in blue and fitted landmarks in red), it can be seen that the landmarks at the bottom of the face are not well fitted. This may be caused by the weight used in landmark loss (see the image below, or the source codes).

On Line79-Line81, we weighted the landmarks of nose and mouth more heavily.
Perhaps, setting the weight of all landmarks to 1 is helpful for fitting the bottom contour of the face.

image

@ujjawalcse
Copy link
Author

@csbhr Tried what you suggested and now the outer shapes are better. But on the cost of a slightly less optimised mouth and nose area. We can't even observe those if we see them separately. We can notice those gaps after overlapping the previous result with the new result.
For now, I tried with assigning all landmarks weights as 1.
I'll try with lesser weight for mouth and nose instead of 20. It may be a better trade-off.
Thanks @csbhr.

@csbhr
Copy link
Owner

csbhr commented Feb 25, 2023

Thank you for sharing your experiments. Hope our codes are useful to you.

@csbhr csbhr closed this as completed Feb 25, 2023
@pyh007
Copy link

pyh007 commented Jul 18, 2023

如何用更轻的口鼻

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