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
Is anyone familiar with a way to style a transparent image? I've tried passing the .png content and doing a .png output, but the transparent background gets styled.
The text was updated successfully, but these errors were encountered:
There is a easy solution for it @spot92 , I don't think you can prevent transparent places of images to get styled but you can make them re-transparent again.
Every image colorful image have 3 or 4 image channel ( RGB and A) A is the alpha channel and determines opacity of the pixels. What you need to is before feeding style image to network you save the Alpha channel of the image in a numpy array and after image being style you added back to image.
Example code that I use for some other implementation
Is anyone familiar with a way to style a transparent image? I've tried passing the .png content and doing a .png output, but the transparent background gets styled.
The text was updated successfully, but these errors were encountered: