Giter Site home page Giter Site logo

Comments (4)

dancrew32 avatar dancrew32 commented on May 23, 2024

Think this is the image augmentation part of the pipeline:
https://github.com/lucidrains/stylegan2-pytorch/blob/master/stylegan2_pytorch/stylegan2_pytorch.py#L132-L133

Should the resize take place before the center crop? This order seems like it might cause output distortion.

Anywho, it appears all images that are trained on are guaranteed to be squares of your --image_size command line argument.

from stylegan2-pytorch.

dave7895 avatar dave7895 commented on May 23, 2024

Thanks for the lines in the code. I think understand now what is happening. First the image is downscaled with the shorter side being as long as the --image_size flag, then the center is cropped, so the sides, where the picture is longer, are dropped. Am I correct or seeing this wrong?

from stylegan2-pytorch.

lukemelas avatar lukemelas commented on May 23, 2024

Yes, that is correct.

from stylegan2-pytorch.

dave7895 avatar dave7895 commented on May 23, 2024

Ok. Thanks for the clarification.

from stylegan2-pytorch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.