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

[QUESTION] question about normalization #200

Open
kydxh opened this issue Nov 30, 2024 · 0 comments
Open

[QUESTION] question about normalization #200

kydxh opened this issue Nov 30, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@kydxh
Copy link

kydxh commented Nov 30, 2024

❔ Any questions

In the demo "demo/White-box Attack on ImageNet.ipynb", atk.set_normalization_used(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]) is used. So after attack, the image will be normalized. In the code, imshow() was used to show the iamge. In this function, code "img = torchvision.utils.make_grid(img.cpu().data, normalize=True)" conduct another normalization. My question is why there need another normalize instead of inverse_normalize()?

@kydxh kydxh added the enhancement New feature or request label Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant