ml4a / ml4a

A python library and collection of notebooks for making art with machine learning.

Home Page:https://ml4a.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cartoonization resolution bug

genekogan opened this issue · comments

cartoonization resizes images to have resolution %2==0, need to account for odd-sized images.

from ml4a import image
from ml4a.models import cartoonization

img = image.load_image('https://s3.amazonaws.com/cdn-origin-etr.akc.org/wp-content/uploads/2017/11/26114711/Shiba-Inu-standing-in-profile-outdoors.jpg')
img_toon = cartoonization.run(img)
image.display([img, img_toon])

fixed