Skip to main content

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

Metadata

Release files for cartoon-diffusion 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cartoon-diffusion 0.1.0
File Size Uploaded
cartoon_diffusion-0.1.0.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cartoon-diffusion 0.1.0
File Interpreter ABI Platform
cartoon_diffusion-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.1 kB

Release files / cartoon_diffusion-0.1.0.tar.gz

Download URL cartoon_diffusion-0.1.0.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c2c89c6606b531356c63f525fc1c4524f05c1eea32859ac71bb3a62914e5a7eb
BLAKE2b-256 checksum
How to use checksums
aec6adf4f330f635100542f29ea21c57cd57f225229be836883635b51c14da14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / cartoon_diffusion-0.1.0-py3-none-any.whl

Download URL cartoon_diffusion-0.1.0-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8fceb776b1cf444c7638f5ee839c3861ccf2c6691835f97fdc19457944aabe23
BLAKE2b-256 checksum
How to use checksums
ad3ece24771a279e00e3b8b012d7766fefd38cfdddbee758b70748645b8c86c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page