minar09 / cp-vton-plus

Official implementation for "CP-VTON+: Clothing Shape and Texture Preserving Image-Based Virtual Try-On", CVPRW 2020
https://minar09.github.io/cpvtonplus/
MIT License
343 stars 120 forks source link

Train with different image size #91

Open puhuk opened 2 years ago

puhuk commented 2 years ago

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.

image

thaithanhtuan commented 2 years ago

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 commented 1 year ago

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 commented 10 months ago

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.