Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

esalahterus
/
refo

Image-to-Image
Diffusers
Safetensors
StableDiffusionXLInpaintPipeline
stable-diffusion-xl
inpainting
background-editing
Model card Files Files and versions
xet
Community

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

  • Libraries
  • Diffusers

    How to use esalahterus/refo 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("esalahterus/refo", 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
refo
6.95 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
esalahterus's picture
esalahterus
Update README.md
9314d4f verified 8 days ago
  • scheduler
    Upload merged model (step 3000) 8 days ago
  • text_encoder
    Upload merged model (step 3000) 8 days ago
  • text_encoder_2
    Upload merged model (step 3000) 8 days ago
  • tokenizer
    Upload merged model (step 3000) 8 days ago
  • tokenizer_2
    Upload merged model (step 3000) 8 days ago
  • unet
    Upload merged model (step 3000) 8 days ago
  • vae
    Upload merged model (step 3000) 8 days ago
  • .gitattributes
    1.52 kB
    initial commit 8 days ago
  • README.md
    3.34 kB
    Update README.md 8 days ago
  • model_index.json
    787 Bytes
    Upload merged model (step 3000) 8 days ago