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

Method to normalize the image between -1 to 1. Is it mean-std norm of imagenet or anything else? #138

Open
ashishkumar822 opened this issue Oct 18, 2024 · 0 comments

Comments

@ashishkumar822
Copy link

Hi.

In the paper it is mentioned that image is normalized between -1 to 1. However I could not find any line in the script which does this.
Although I saw Dlimp augmentation function but I could not find -1 to normalization.

My question is, which kind of normalization has been used:

  1. subtract with imagenet mean and divide by imagenet std
  2. Min-max norm to bring the image in 0 to 1 and then img = 2 * (img - 0.5)
  3. Or simple img = (img - 127) / 128 if image is in 0 to 255.

These details are import for finetuning. Please provide a calarity on this. Thank you.

@ashishkumar822 ashishkumar822 changed the title Method to normalize the image between -1 to 1. Is it mean-std norm of imagenet or anything elese? Method to normalize the image between -1 to 1. Is it mean-std norm of imagenet or anything else? Oct 18, 2024
evelynmitchell pushed a commit to evelynmitchell/octo that referenced this issue Dec 31, 2024
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