Comments (6)
Hi there, anyone can help with this problem,
it would be a great help to me.
from pytorch-cyclegan-and-pix2pix.
You can resize the input to the same size before feeding into the model.
from pytorch-cyclegan-and-pix2pix.
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.
from pytorch-cyclegan-and-pix2pix.
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.
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)
- Loading issue in trained model
- SAR to Optical image generation
- 礼貌提问并虚心请教:线性衰减学习率政策
- 请问作者 HOT 1
- 生成图像的质量太低怎么办
- 请问对于输入图像大小不一样时,该代码中是否对图像进行预处理了呢?
- CPU
- It gets stuck when running for more than 20 rounds, but the graphics card is still running. What is the reason for this?
- 请问测试集应该下载保存到什么文件夹呢,每次都会报错'./checkpoints\\facades_label2photo_pretrained\\latest_net_G.pth'
- Hello, HOT 1
- introducing CycleGAN-Turbo and pix2pix-turbo
- Add ROI specific loss function to generator
- Error testing my own dataset using pix2pix
- How can I train with multi-input like (A1 ,A2……)->B? HOT 1
- How to finish Scene Text Editing task using Pix2Pix
- Input images are stretched when using test HOT 1
- Error in combine_A_and_B.py for TIFF-files
- Training Parameters or Architecture Settings Recommendations
- Perform interpolation between Input and Output
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytorch-cyclegan-and-pix2pix.