diyiiyiii / StyTR-2

StyTr2 : Image Style Transfer with Transformers
365 stars 66 forks source link

Arbitrary output size instead of square #17

Closed teyou closed 2 years ago

teyou commented 2 years ago

Hi, is there a way to generate output image while keeping the same ratio and resolution as per input content image? It seems currently it only support square image.

For example, I have a content image with 1920x1080, a style image with 1000x500 and I would like to have an output image with 1920x1080 as well?

zhangyupeng123 commented 3 months ago

Could you please tell me how you achieved this ?@teyou

teyou commented 3 months ago

Could you please tell me how you achieved this ?@teyou

Sorry, I have forgotten. Been too long

zhangyupeng123 commented 3 months ago

So this means that this code can adjust the size of the generated images, right? @teyou