AI-powered image to cartoon conversion using diffusion models
Project description
Cartoon Diffusion
AI-powered image to cartoon conversion using diffusion models.
Installation
pip install cartoon-diffusion
Usage
from cartoon_diffusion import CartoonifyDiffusionPipeline
# Load the pipeline
pipeline = CartoonifyDiffusionPipeline.from_pretrained("wizcodes12/image_to_cartoonify")
# Convert image to cartoon
cartoon = pipeline("path/to/selfie.jpg")
cartoon.save("cartoon_output.png")
# Or use with PIL Image
from PIL import Image
image = Image.open("selfie.jpg")
cartoon = pipeline(image)
cartoon.save("cartoon_output.png")
Requirements
- Python 3.8+
- PyTorch
- CUDA (optional, for GPU acceleration)
Model
This package uses the pre-trained model from wizcodes12/image_to_cartoonify on Hugging Face.
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cartoon_diffusion-0.1.0.tar.gz.
File metadata
- Download URL: cartoon_diffusion-0.1.0.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2c89c6606b531356c63f525fc1c4524f05c1eea32859ac71bb3a62914e5a7eb
|
|
| MD5 |
03835c79f53008692b6354557e49989f
|
|
| BLAKE2b-256 |
aec6adf4f330f635100542f29ea21c57cd57f225229be836883635b51c14da14
|
File details
Details for the file cartoon_diffusion-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cartoon_diffusion-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fceb776b1cf444c7638f5ee839c3861ccf2c6691835f97fdc19457944aabe23
|
|
| MD5 |
044b115e8091aad4c32026d2cc5c8056
|
|
| BLAKE2b-256 |
ad3ece24771a279e00e3b8b012d7766fefd38cfdddbee758b70748645b8c86c7
|