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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cartoon_diffusion-0.1.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cartoon_diffusion-0.1.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

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

Hashes for cartoon_diffusion-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c2c89c6606b531356c63f525fc1c4524f05c1eea32859ac71bb3a62914e5a7eb
MD5 03835c79f53008692b6354557e49989f
BLAKE2b-256 aec6adf4f330f635100542f29ea21c57cd57f225229be836883635b51c14da14

See more details on using hashes here.

File details

Details for the file cartoon_diffusion-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cartoon_diffusion-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8fceb776b1cf444c7638f5ee839c3861ccf2c6691835f97fdc19457944aabe23
MD5 044b115e8091aad4c32026d2cc5c8056
BLAKE2b-256 ad3ece24771a279e00e3b8b012d7766fefd38cfdddbee758b70748645b8c86c7

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page