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

Inconsistency of normalization between training and inference #29

Open
TibbersHao opened this issue Sep 5, 2024 · 0 comments
Open

Inconsistency of normalization between training and inference #29

TibbersHao opened this issue Sep 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@TibbersHao
Copy link
Member

For the current state of normalization function in utils.py, input could either be a single frame array or stacked array if multiple masks are provided. When more than one mask is provided, normalization step in training will take the percentile based on all pixel values across frames to perform min-max normalization, while for inference step only one image is passed in each time, so the normalization base is different. This needs to be corrected either by modifying the normalization function itself, or in the training script to make it consistent.

@TibbersHao TibbersHao added the enhancement New feature or request label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant