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

Why not normalize the input image #47

Open
ArlixLin opened this issue Nov 27, 2023 · 0 comments
Open

Why not normalize the input image #47

ArlixLin opened this issue Nov 27, 2023 · 0 comments

Comments

@ArlixLin
Copy link

Thank you for your selfless sharing!
I see the code below:
self.transform_x = transforms.Compose([ transforms.Resize([size_tp, size_tp], Image.ANTIALIAS), transforms.CenterCrop([resize, resize]), transforms.ToTensor(), # transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]) ])
So why don't run transforms.Normalize

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