tkuo

tkuo / AnimeStyleTransfer / 1.1.0

README.md

Usage

Input

ParameterDescription
imageinput image in the list format

Output

ParameterDescription
anime_imageanime image in the list format

Examples

# No preprocessing needed! Just upload your image to Algorithmia cloud storage!

# Version 1.1.0 (official version)
img = Image.open('LOCAL_IMAGE_PATH')
img = img.resize((128, 128))
img = np.array(img).tolist()
input = {'image': img}

API_KEY = "PLACE YOUR API KEY HERE"
client = Algorithmia.client(API_KEY)

algo = client.algo('tkuo/AnimeStyleTransfer/1.1.0')
algo.set_options(timeout=300)
output = algo.pipe(input).result
anime_img = output['anime_image']
# Here you get your anime image in numpy format
anime_img = np.array(anime_img)