Skip to content

save_image behavior #24

Closed
Closed
@rtqichen

Description

@rtqichen

https://github.com/pytorch/vision/blob/master/torchvision/utils.py#L52

The .mul(0.5).add(0.5) in this line seems to be assuming that the input values are in [-1,1]? Isn't the Torch convention to use [0,1] for images?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions