Skip to content

Input size error with transforms.Lambda(lambda x: Perturbations(x)[0]) #26

Description

@evil-potato

image = transform_before(image)

transform_before = transforms.Compose([

transforms.ToTensor(),

transforms.Lambda(lambda x: Perturbations(x)[0])

Hi,
If the training set is GenImage-sdv1.4 and the input image size is not a multiple of 16 (e.g. 600x395), then using transforms.Lambda(lambda x: Perturbations(x)[0]) will result in an error. How did you solve this problem?

Thanks

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

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions