# Ml5 style transfer using p5

**URL:** <https://discourse.processing.org/t/ml5-style-transfer-using-p5/7180>\
**Category:** Libraries\
**Created:** [January 4, 2019, 7:07pm UTC](https://discourse.processing.org/t/ml5-style-transfer-using-p5/7180 "2019-01-04T19:07:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![byou](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/byou/32/3082_2.png) [@byou](https://discourse.processing.org/u/byou)\
**Post date:** [January 4, 2019, 7:07pm UTC](https://discourse.processing.org/t/ml5-style-transfer-using-p5/7180/1 "2019-01-04T19:07:25Z")

</div>

Hello,

I’m running into a strange problem when trying out the ml5 style transfer example and wonder if anyone might have any idea why. My models are being loaded and performing the transfer fine, but when I get the styled result image, it appears tripled, like the channels of the image were distorted. Here is a picture of some cats I styled using the “wave” model from the ml5 example. Does any one have any idea at all why this might happen!?!

 ![16%20PM](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/2/220336399dc0e7fe71f764803ed9e42c60751740.jpeg)

---

<div class="post-metadata">

**Author:** ![zack](https://avatars.discourse-cdn.com/v4/letter/z/f6c823/32.png) [@zack](https://discourse.processing.org/u/zack)\
**Post date:** [January 27, 2019, 9:51pm UTC](https://discourse.processing.org/t/ml5-style-transfer-using-p5/7180/2 "2019-01-27T21:51:16Z")

</div>

I think there was/is a bug where only square images can be used. I think it is known on GitHub but haven’t checked in a while
