copied
Readme
Files and versions
Updated 3 years ago
filip-halt
Pipeline: Style Transfer using AnimeGanV2
Authors: filip
Overview
The pipeline is used to animate images. It uses the AnimeGanV2 to cartoonize the images.
Interface
Input Arguments:
- img_path:
- the input image path
- supported types:
str
Pipeline Output:
The pipeline 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]
How to use
- Install Towhee
$ pip3 install towhee
You can refer to Getting Started with Towhee for more details. If you have any questions, you can submit an issue to the towhee repository.
- Run it with Towhee
>>> from towhee import pipeline
>>> img_path = 'path/to/your/image'
>>> embedding_pipeline = pipeline('filip-halt/style-transfer-animegan')
>>> embedding = embedding_pipeline(img_path)
How it works
This pipeline includes one operator: filip-halt/animegan-style-transfer. This operator stylizes the image.
Refer Towhee architecture for basic concepts in Towhee: pipeline, operator, dataframe.
References
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
6c972c6a1f
| 10 Commits | ||
---|---|---|---|
.gitattributes |
1.1 KiB
|
3 years ago | |
README.md |
1.5 KiB
|
3 years ago | |
style_transfer_animegan.yaml |
2.0 KiB
|
3 years ago |