Skip to content

Assumption about bounds in floating point images #4915

Open
@bglocker

Description

@bglocker

Took me a while to figure out while the ColorJitter transform produced strange results (mostly fully saturated images) until I realized that there is a hard coded assumption that images of type float are bounded to max value 1.0.

Might either need a warning in the doc, or even better, the bound could be provided as an argument:

def _blend(img1: Tensor, img2: Tensor, ratio: float) -> Tensor:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions