Text-to-Image
Diffusers
Safetensors
English
StableDiffusionXLInpaintPipeline
stable-diffusion-xl
stable-diffusion-xl-diffusers
inpainting
Instructions to use mrcuddle/URPM-Inpaint-SDXL with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use mrcuddle/URPM-Inpaint-SDXL with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("mrcuddle/URPM-Inpaint-SDXL", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -12,7 +12,7 @@ if device.type != 'cuda':
|
|
| 12 |
raise ValueError("Need to run on GPU")
|
| 13 |
|
| 14 |
class EndpointHandler:
|
| 15 |
-
def __init__(self, path="mrcuddle/URPM-Inpaint-
|
| 16 |
"""Load the SDXL Inpainting model."""
|
| 17 |
self.pipeline = StableDiffusionXLInpaintPipeline.from_pretrained(
|
| 18 |
path, torch_dtype=torch.float16
|
|
|
|
| 12 |
raise ValueError("Need to run on GPU")
|
| 13 |
|
| 14 |
class EndpointHandler:
|
| 15 |
+
def __init__(self, path="mrcuddle/URPM-Inpaint-SDXL"):
|
| 16 |
"""Load the SDXL Inpainting model."""
|
| 17 |
self.pipeline = StableDiffusionXLInpaintPipeline.from_pretrained(
|
| 18 |
path, torch_dtype=torch.float16
|