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

Misalignment in Normalization Preprocessing Between Training and Inference #212

Open
mightycatty opened this issue Jan 8, 2025 · 0 comments

Comments

@mightycatty
Copy link

mightycatty commented Jan 8, 2025

I reviewed the code for training and inference for RAM++ and noticed a potential bug regarding the normalizationbetween these two stages:

  • During inference, the normalization parameters used are:
    mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]
  • During training, the normalization parameters used are:
    mean=[0.48145466, 0.4578275, 0.40821073], std=[0.26862954, 0.26130258, 0.27577711]

Tested this on my custom dataset which contains 20 classes, I found that aligning the normalization parameters brings an improvement in AP. Not a huge improvement though:

  • From 0.51594603 to 0.5217806.
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

1 participant