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

use gaze detect only detecting faces don't have their gaze directions #217

Open
cray1031 opened this issue Jan 16, 2025 · 1 comment
Open

Comments

@cray1031
Copy link

gaze_result = model.detect_gaze(pil_image, face_center)
gaze_result:{'gaze': None}

@vikhyat
Copy link
Owner

vikhyat commented Jan 28, 2025

Currently it only returns gaze if it thinks the gaze point is within the image. There's a setting you can use to change that behavior: https://github.com/vikhyat/moondream/blob/main/moondream/torch/moondream.py#L541-L546

Considering changing it to always return the predicted gaze by default and have a separate boolean output indicating whether it's out of frame or not; that way folks who are interested in direction can still use it easily.

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