Giter VIP home page Giter VIP logo

Comments (6)

arrrrr3186 avatar arrrrr3186 commented on June 8, 2024

Hi there, anyone can help with this problem,
it would be a great help to me.

from pytorch-cyclegan-and-pix2pix.

ssnl avatar ssnl commented on June 8, 2024

You can resize the input to the same size before feeding into the model.

from pytorch-cyclegan-and-pix2pix.

arrrrr3186 avatar arrrrr3186 commented on June 8, 2024

Thank you for response.

Simply resizing the input image won't address my issue. Let's say I resize an image to a standard size like 800x800 pixels. But what if your original input size is larger, like 1024x1024 pixels? In that case, resizing would change the dimensions to 800x800 pixels.

What I'm looking for is consistency in output size, regardless of the input image's dimensions. Whether it's 800x800, 1024x1024, or even 256x256 pixels, I want the output image to maintain the same dimensions as the input.

Do you know if there's a way to achieve this?

from pytorch-cyclegan-and-pix2pix.

ssnl avatar ssnl commented on June 8, 2024

from pytorch-cyclegan-and-pix2pix.

arrrrr3186 avatar arrrrr3186 commented on June 8, 2024

Hi,

the problem with this is that, If I pass input image size 10241024, then the output will be 800800.
but I want the output to be 1024*1024.

from pytorch-cyclegan-and-pix2pix.

ssnl avatar ssnl commented on June 8, 2024

Oh that's what you mean. It was ambiguous from your description.

The model is convolutional so it can probably take in any reasonably sized image and spit out a similarly sized (exact size would depend on strides and padding). However, the pretrained model are not trained on other sizes so no performance guarantees.

You can modify the code to train new models on arbitrarily sized data. We make no promises on how well it works.

from pytorch-cyclegan-and-pix2pix.

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.