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

Data Normalization for BigBiGAN #9

Open
xiao7199 opened this issue Nov 12, 2022 · 0 comments
Open

Data Normalization for BigBiGAN #9

xiao7199 opened this issue Nov 12, 2022 · 0 comments

Comments

@xiao7199
Copy link

Hi,
Please check if the normalization is correct for the BigBiGAN encoder.
Based on the description of (https://github.com/ali-design/GenRep/blob/master/utils/utils_bigbigan.py#L115), the input data for BigBiGAN should be normalized between [-1,1].
But, at L144-145 of main_linear_bigbigan_encoder.py, you use ((0.485, 0.456, 0.406), (0.229, 0.224, 0.225)) instead of ((0.5,0.5,0.5), (0.5,0.5,0.5)) which maps images to [-1,1].
I tried your default option for main_linear_bigbigan_encoder.py on ImageNet100 , and it gives 54 Top1 ACC, close to 55.7, as reported in Sec 4.2.
However, when I use ((0.5,0.5,0.5), (0.5,0.5,0.5)), it gives me over 72 Top1 ACC.

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