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
I've got fast-style-transfer running and it's so awesome to see the results! I've made my own checkpoint and love tweaking the values. I was wondering, is there a way to handle transparent PNGs or GIFs so that when alpha = 0 the style transfer isn't applied?
The text was updated successfully, but these errors were encountered:
So I noticed that you can change the format handled for the incoming images here: https://github.com/lengstrom/fast-style-transfer/blob/master/src/utils.py#L16 which I changed from RGB to RGBA based on the SciPy documentation. I get a new error saying Assign requires shapes of both tensors to match. My hunch is that I need to generate a checkpoint that's also RGBA format. Will continue to poke around and post updates here.
He probably means that he has an RGBA image with an alpha channel as the transparency and he wants the style to apply only to the pixels where there is no transparency (opaque). Like an alpha mask.
I've got fast-style-transfer running and it's so awesome to see the results! I've made my own checkpoint and love tweaking the values. I was wondering, is there a way to handle transparent PNGs or GIFs so that when
alpha = 0
the style transfer isn't applied?The text was updated successfully, but these errors were encountered: