neural-style-tf icon indicating copy to clipboard operation
neural-style-tf copied to clipboard

Scaling max_size up to keep features?

Open glennamarshall opened this issue 6 years ago • 6 comments

I've noticed than when I scale up using max_size there are details / features that are different. Is there a way to maintain the exact same result for lower / higher resolutions? The reason I ask - is that I like to work at 512 for quick preview purposes - then scale up to higher resolutions for final result. Thanks.

glennamarshall avatar Jul 23 '18 15:07 glennamarshall

my experience is you need adjust the style weight and/or content weight to achieve close result on different resolutions. e.g. the higher the size, the lower the style weight should be set, but I didn't found a firm corrolation between the size and weights... so I cannot code the relation in fomulars...anybody have any suggestion?

ljm2020 avatar Jul 26 '18 22:07 ljm2020

Hey I'll try that thanks - intuitively I would guess that the weights would be the square of the scaling ratio - so twice the scale would require x4 the weight ratio.. just a theory!

glennamarshall avatar Jul 27 '18 15:07 glennamarshall

looking forward your experiment result:)

ljm2020 avatar Jul 31 '18 13:07 ljm2020

Anyone have a chance to play around with it and if so what settings have you found work as you scale the image up?

gateway avatar Dec 27 '18 23:12 gateway

I'm currently playing around with these settings, I'll see how it works.

fionafibration avatar Jun 17 '19 03:06 fionafibration

any update?

0merjavaid avatar Nov 26 '19 12:11 0merjavaid