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

KeyError: 'eye_distance', in regress_kp(batch_list), celeba_wild.py. #7

Open
LeonXu127 opened this issue Jul 11, 2024 · 1 comment
Open

Comments

@LeonXu127
Copy link

In regress_kp(bctch_list) from celeba_wild.py, there are only 2 keys 'det_keypoints' and 'keypoints'.
Should I add "'eye_distance': batch['eye_distance'].cpu()" to line 93 of model.py which is originally "out_batch = {'keypoints': batch['keypoints'].cpu(), 'det_keypoints': kp.cpu()}"?
QQ_1720710315921

@xingzhehe
Copy link
Owner

Yes. You will need eye_distance during inference. I think it can also be inferred from the GT keypoints, but I seemed to forget to modify the dataset-specific testing code.

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