You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I tested the style transfer result in the demo website and found that I could not get correct stylized image when the screen resolution isn't 1920x1080. For example, when the screen resolution is 2160x1440, the generated image looks like this:
while it works for another computer with 1920x1080 resolution. Are there any possible reasons about this issue?
The text was updated successfully, but these errors were encountered:
There are multiple ways to do this. The easiest and most straightforward one, would be to set a height and width to the final canvas or image element (depending on what you're using). For instance, doing canvas.height = 1920 after you've drawn the image to it, should work as expected. In the case of a <img />, setting one of the attributes statically (say, <img height="1920" {...} /> will set the desired height and adjust the width proportionally. Alternatively, you can set both of them statically.
The model will render the resolution of the container image, i.e. the first image selected by the User, and not the one used for "styling", so unless you've forced some custom width/height beforehand, it should render the resolution appropriately.
Hi, I tested the style transfer result in the demo website and found that I could not get correct stylized image when the screen resolution isn't 1920x1080. For example, when the screen resolution is 2160x1440, the generated image looks like this:
while it works for another computer with 1920x1080 resolution. Are there any possible reasons about this issue?
The text was updated successfully, but these errors were encountered: