Skip to content

Strech and Squish or Center crop and resize for FID???? #115

@yaramohamadi

Description

@yaramohamadi

I've also encounted this issue, my solution is to transform before dataloader:


    dataset = ImagePathDataset(files,

        transforms=TF.Compose([

            TF.Resize((299,299)),

            TF.ToTensor(),

    ]))

Originally posted by @septasset in #32

My reference dataset has images of varying aspect ratios, while my generated images are already 299 by 299. My concern is that doing a simple resizing like this is going to significantly change the statistics of the image by stretching it. Isnt a more correct way to first center crop the image by its minimum dimension and after that resize to 299 by 299????

This is really confusing, I would really appreciate any insights!

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