magenta-js icon indicating copy to clipboard operation
magenta-js copied to clipboard

Image sizes

Open andybrewer opened this issue 6 years ago • 3 comments

Is there documentation around using style transfer on larger images? The generated canvas image seems constrained to 300px wide.

The fox image (1920x1280) is the content and the abstract art (1920x1280) is the style, but I can't seem to get the rendered output (300x456) to be in the same dimensions.

Screen Shot 2020-04-04 at 3 20 57 PM

andybrewer avatar Apr 04 '20 22:04 andybrewer

@vdumoulin

adarob avatar Apr 06 '20 16:04 adarob

Based on the code and the demo, i think the image needs to have a height of 256px. I agree that this should probably be documented a bit better.

(If you would like to send a PR just to update this size in the README, I'd love to merge it! 🥰)

notwaldorf avatar Jan 05 '21 19:01 notwaldorf

Yes it is not clear if there is any option to modify the output image dimensions or if this is "hard coded" into the model somehow. Would be helpful to have control over output image for using in third-party applications.

For comparison, the original author of this project @reiinakano has another project where source and style size are configurable options: https://reiinakano.com/arbitrary-image-stylization-tfjs/

kfarr avatar Mar 09 '21 19:03 kfarr