Skip to content

[QUESTION] question about normalization #200

Description

@kydxh

❔ 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()?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions