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

  • Log In
  • Sign Up

echarlaix
/
tiny-random-stable-diffusion-xl-refiner

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

Instructions to use echarlaix/tiny-random-stable-diffusion-xl-refiner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use echarlaix/tiny-random-stable-diffusion-xl-refiner 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("echarlaix/tiny-random-stable-diffusion-xl-refiner", 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
tiny-random-stable-diffusion-xl-refiner
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
echarlaix's picture
echarlaix HF Staff
update model
ea1badc almost 3 years ago
  • scheduler
    update model almost 3 years ago
  • text_encoder_2
    update model almost 3 years ago
  • tokenizer_2
    add model almost 3 years ago
  • unet
    update model almost 3 years ago
  • vae
    update model almost 3 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 3 years ago
  • README.md
    28 Bytes
    initial commit almost 3 years ago
  • model_index.json
    579 Bytes
    update model almost 3 years ago