Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

From #1: Can I use a rectangular image without resizing? #2

Open
f90 opened this issue Apr 9, 2020 · 5 comments
Open

From #1: Can I use a rectangular image without resizing? #2

f90 opened this issue Apr 9, 2020 · 5 comments
Labels
question Further information is requested

Comments

@f90
Copy link
Owner

f90 commented Apr 9, 2020

Taken from issue #1 - @kalai2033 asks: Can I use a rectangular image without resizing? My i/p image size is 600*400.

@f90 f90 added the question Further information is requested label Apr 9, 2020
@f90
Copy link
Owner Author

f90 commented Apr 9, 2020

Yes, you can use rectangular images for the image2image application, if you use the Unet model that I provided as default "generator" architecture. I think you need to make sure however that the number of pixels is divisible by 2 roughly 4 or 5 times since the Unet will try to downsample the image features by a factor of 2 in each layer/level. But otherwise it does not have requirements on the input dimensions.

If you need more flexibility, you can plug in a custom image2image model yourself, or modify the provided Unet a bit, this should be easy to do due to the modular nature of the codebase.

@kalai2033
Copy link

kalai2033 commented Apr 21, 2020

I tried unet as feature extractor. The results were very bad. Is it possible to use resnet as feature extractor? I tried modifying it to resnet but i ran into issues. can you help me sort it out?

@f90
Copy link
Owner Author

f90 commented Apr 23, 2020

What do you mean with feature extractor? We have one image-to-image model, which is the generator in the GAN framework, plus a few discriminators.

@kalai2033
Copy link

Sorry forget about feature extractor. I mean can you help me with modifying the unet to resnet architecture. Cause i have to train rectangular images. I tried adding the resnet model. But i was not successful. Can you please help me with it?

@f90
Copy link
Owner Author

f90 commented Apr 30, 2020

Hey, you can import an existing resnet architecture model definition into our framework, just make sure that the input and output is correctly structured. How did you not succeed at adding the resnet model, what is the problem exactly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants