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

  • Log In
  • Sign Up

YoussefElhawary
/
Text-To-Image

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

Instructions to use YoussefElhawary/Text-To-Image with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use YoussefElhawary/Text-To-Image 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("YoussefElhawary/Text-To-Image", 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

You need to agree to share your contact information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

Gated model
You can list files but not access them

Preview of files found in this repository
  • scheduler
    Upload StableDiffusionXLImg2ImgPipeline almost 2 years ago
  • text_encoder
    Upload StableDiffusionXLImg2ImgPipeline almost 2 years ago
  • text_encoder_2
    Upload StableDiffusionXLImg2ImgPipeline almost 2 years ago
  • tokenizer
    Upload StableDiffusionXLImg2ImgPipeline almost 2 years ago
  • tokenizer_2
    Upload StableDiffusionXLImg2ImgPipeline almost 2 years ago
  • unet
    Upload StableDiffusionXLImg2ImgPipeline almost 2 years ago
  • vae
    Upload StableDiffusionXLImg2ImgPipeline almost 2 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 2 years ago
  • README.md
    5.16 kB
    Upload StableDiffusionXLImg2ImgPipeline almost 2 years ago
  • model_index.json
    770 Bytes
    Upload StableDiffusionXLImg2ImgPipeline almost 2 years ago