logo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Readme
Files and versions

Updated 2 years ago

filip-halt

AnimeGanV2 Style-Transfer Operator

Authors: filip

Overview

AnimeGanV2 is a style transfer net that transforms images to looking like they fit in an anime movie.

Interface

__init__(self, model_name: str, framework: str = 'pytorch')

Args:

  • model_name:
    • which weights to use for inference.
    • supports 'celeba', 'facepaintv1', 'facepaitv2', 'hayao', 'paprika', 'shinkai'
  • framework:
    • the framework of the model
    • supported types: str, default is 'pytorch'
__call__(self,  image: 'towhee.types.Image')

Args:

  • image:
    • the input image
    • supported types: towhee.types.Image

Returns:

The Operator returns a tuple Tuple[('styled_image', numpy.ndarray)] containing following fields:

  • styled_image:
    • styled photo
    • data type: numpy.ndarray
    • shape: (3, x, x)
    • format: RGB
    • values: [0,1]

Requirements

You can get the required python package by requirements.txt.

Reference

Jie Chen, Gang Liu, Xin Chen "AnimeGAN: A Novel Lightweight GAN for Photo Animation." ISICA 2019: Artificial Intelligence Algorithms and Applications pp 242-256, 2019.

Filip 0f279fea60 readme 5 Commits
folder-icon pytorch name changes 2 years ago
file-icon .gitattributes
1.1 KiB
download-icon
Initial commit 2 years ago
file-icon README.md
1.1 KiB
download-icon
readme 2 years ago
file-icon animegan_style_transfer.py
1.4 KiB
download-icon
adding files 2 years ago
file-icon requirements.txt
19 B
download-icon
reqs.txt 2 years ago