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

Set model_confidence to 0.1 if parameter out of physiological range #35

Merged
merged 1 commit into from
Jul 7, 2021

Conversation

papr
Copy link
Contributor

@papr papr commented Jul 7, 2021

In the current version, model_confidence was fixed to 1.0 as there was no way to estimate it. Starting with this PR, model_confidence is 1.0 by default but set to
0.1 if at least one model output exceeds its physiologically reasonable range. If the ranges are exceeded, it is likely that the model is either not fit
well or the 2d input ellipse was a false detection.

  • phi: [-80, 80] degrees
  • theta: [-80, 80] degrees
  • pupil diameter: [1.0, 9.0] mm
  • eyeball center x: [-10, 10] mm
  • eyeball center y: [-10, 10] mm
  • eyeball center z: [20, 75] mm

The model_confidence will be set to 0.0 if the gaze direction could not be calculated.

In the current version, model_confidence was fixed to 1.0 as there was no way to estimate it. Starting with this PR, model_confidence is 1.0 by default but set to
0.1 if at least one model output exceeds its physiologically reasonable range. If the ranges are exceeded, it is likely that the model is either not fit
well or the 2d input ellipse was a false detection.

- phi: [-80, 80] degrees
- theta: [-80, 80] degrees
- pupil diameter: [1.0, 9.0] mm
- eyeball center x: [-10, 10] mm
- eyeball center y: [-10, 10] mm
- eyeball center z: [20, 75] mm

The model_confidence will be set to 0.0 if the gaze direction could not be calculated.
@papr papr merged commit 0bb65d4 into master Jul 7, 2021
@papr papr deleted the dynamic_model_confidence branch July 7, 2021 14:11
papr pushed a commit that referenced this pull request Feb 24, 2022
* Use `extend-ignore` in flake8 config

This option allows to add extra ignored rules to the default list
instead of replacing it.

The default exclusions are: E121, E123, E126, E226, E24, E704,
W503 and W504.

Fixes #28.

Refs:
* https://github.com/pypa/setuptools/pull/2486/files#r541943356
* https://flake8.pycqa.org/en/latest/user/options.html#cmdoption-flake8-extend-ignore
*
https://flake8.pycqa.org/en/latest/user/options.html#cmdoption-flake8-ignore

* Enable complexity limit. Fixes jaraco/skeleton#34.

* Replace pep517.build with build (#37)

* Replace pep517.build with build

Resolves #30

* Prefer simple usage

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>

* Use license_files instead of license_file in meta (#35)

Singular `license_file` is deprecated since wheel v0.32.0.

Refs:
* https://wheel.readthedocs.io/en/stable/news.html
* https://wheel.readthedocs.io/en/stable/user_guide.html#including-license-files-in-the-generated-wheel-file

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
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

Successfully merging this pull request may close these issues.

None yet

1 participant