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

Values in stl10_default_transform #12

Open
Riksi opened this issue Jul 22, 2021 · 0 comments
Open

Values in stl10_default_transform #12

Riksi opened this issue Jul 22, 2021 · 0 comments

Comments

@Riksi
Copy link

Riksi commented Jul 22, 2021

Hi, I would like to know where the parameters in this transform come from? I don't get the same values if I take the mean and std over the images 'train+unlabeled' split.

https://github.com/untitled-ai/self_supervised/blob/6d14ca0402ecc13feda9b3a9fdc056fd1ac24473/utils.py#L127-L129

I tried the method used to get these values for ImageNet in torchvision described here on various subsets of train+unlabeled and the std gets closer but the mean is still off.

I am resizing first to 128 then center cropping to 96 as you appear to do for validation images.

I will note that I am using TensorFlow and perhaps the resizing method might be having an effect. However I also tried using PyTorch and still could not reproduce these values.

Thanks

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