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

Train with different image size #91

Open
puhuk opened this issue Apr 18, 2022 · 3 comments
Open

Train with different image size #91

puhuk opened this issue Apr 18, 2022 · 3 comments

Comments

@puhuk
Copy link

puhuk commented Apr 18, 2022

Hi, Thanks for the great work!

I'm trying to train with different image size and change relevant code (input size, input_nc for initializing FeatureRegression in class GMM.
But the result seems like the picture.

Could you help me what should I need to correct for different image size.

  • Left image is input and right image is warped from GMM

image

@thaithanhtuan
Copy link
Collaborator

The GMM network is like: input --> correlation --> transformation parameters TPS
Then output = TPS transformation (input, transformation parameters TPS )
One easy way is you can increase the resolution of 'transformation parameters TPS" so that it can transform the high-resolution input. In this way, you don't need to change the network input size.
I've tried changing the image size of the input, but --> calculated correlation is broken out of memory.

@anzwolf
Copy link

anzwolf commented Feb 21, 2023

Hi can you please point out the lines of code where to make those changes as per your line that you mentioned below
"One easy way is you can increase the resolution of 'transformation parameters TPS" so that it can transform the high-resolution input. In this way, you don't need to change the network input size."
Detailed explanation will be welcomed

@sudip550
Copy link

sudip550 commented Oct 4, 2023

The GMM network is like: input --> correlation --> transformation parameters TPS Then output = TPS transformation (input, transformation parameters TPS ) One easy way is you can increase the resolution of 'transformation parameters TPS" so that it can transform the high-resolution input. In this way, you don't need to change the network input size. I've tried changing the image size of the input, but --> calculated correlation is broken out of memory.

hii sir, did you have pretrained model with more than 2,00,000 steps. please share if you have.

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

No branches or pull requests

4 participants