Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

Shanav12
/
CartoonModel

Image-to-Image
Diffusers
Safetensors
StableDiffusionXLImg2ImgPipeline
Model card Files Files and versions
xet
Community
1

Instructions to use Shanav12/CartoonModel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use Shanav12/CartoonModel with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    from diffusers.utils import load_image
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("Shanav12/CartoonModel", dtype=torch.bfloat16, device_map="cuda")
    
    prompt = "Turn this cat into a dog"
    input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png")
    
    image = pipe(image=input_image, prompt=prompt).images[0]
  • Notebooks
  • Google Colab
  • Kaggle
CartoonModel / tokenizer_2
1.59 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
Shanav12's picture
Shanav12
Upload folder using huggingface_hub (#1)
3f51586 verified almost 2 years ago
  • merges.txt
    525 kB
    Upload folder using huggingface_hub (#1) almost 2 years ago
  • special_tokens_map.json
    460 Bytes
    Upload folder using huggingface_hub (#1) almost 2 years ago
  • tokenizer_config.json
    855 Bytes
    Upload folder using huggingface_hub (#1) almost 2 years ago
  • vocab.json
    1.06 MB
    Upload folder using huggingface_hub (#1) almost 2 years ago