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

the location WFLW five keypoints of is very worse! #3

Closed
wuyuanmm opened this issue Jun 7, 2023 · 3 comments
Closed

the location WFLW five keypoints of is very worse! #3

wuyuanmm opened this issue Jun 7, 2023 · 3 comments

Comments

@wuyuanmm
Copy link

wuyuanmm commented Jun 7, 2023

thanks to this nice work, I try to train autoLink on wflw with five keypoints because of low cuda memory. but I don't get the desired result. Any advice is helpful,this is my result.
图片

this is desired location of keypoints.
图片

@wuyuanmm
Copy link
Author

wuyuanmm commented Jun 7, 2023

I remove pytorch lightning and transform the code to pure pytorch, and I add resume checkpoints function, I have trained 40 epoches in fact.

@xingzhehe
Copy link
Owner

xingzhehe commented Jun 7, 2023

Hi wuyuanmm,

The heatmap result and its overlap on images seem fine to me, as it covers the face. I cannot be 100% sure if is good because I need more examples to see if it indeed models the shape variation in the dataset.

Note that it is an unsupervised method. Thus the results would not be the same as human annotation. The model would choose those keypoints that are enough to explain the shape variation in the dataset.

If you want the detailed keypoints and edges as those in the paper, I suggest more keypoints (~16) with smaller edge thickness (~1e-3). If memory is the issue, you could try generate smaller heatmaps (~64x64) and then resize them. You could also try to use smaller batch size (~8) as face is not a difficult dataset.

Finally, if you really want keypoints perform like those human-annotated ones, you could try few-shot learning as describe here: https://xingzhehe.github.io/FewShot3DKP/
where you sample partially from annotated examples and partially from unannotated examples. You could supervise both with AutoLink and supervise those with annotated ones with human annotations.

I hope these could help you. If not, ping me again and we can discuss in details how to deal with low-memory issues.

Bests,
Xingzhe

@wuyuanmm
Copy link
Author

wuyuanmm commented Jun 15, 2023

thanks for your reply, I solve this issue through setting smaller edge thickness and more keypoints!I will close this issue.

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

2 participants