Text-to-Image
Diffusers
Safetensors
StableDiffusionXLInstructPix2PixPipeline
stable-diffusion-xl
stable-diffusion-xl-diffusers
instruct-pix2pix
Instructions to use diffusers/sdxl-instructpix2pix-768 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use diffusers/sdxl-instructpix2pix-768 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("diffusers/sdxl-instructpix2pix-768", 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
- Draw Things
- DiffusionBee
Remove width and height from edited_image
#1
by CORTON - opened
README.md
CHANGED
|
@@ -56,8 +56,6 @@ pipe = StableDiffusionXLInstructPix2PixPipeline.from_pretrained(
|
|
| 56 |
edited_image = pipe(
|
| 57 |
prompt=edit_instruction,
|
| 58 |
image=image,
|
| 59 |
-
height=resolution,
|
| 60 |
-
width=resolution,
|
| 61 |
guidance_scale=3.0,
|
| 62 |
image_guidance_scale=1.5,
|
| 63 |
num_inference_steps=30,
|
|
|
|
| 56 |
edited_image = pipe(
|
| 57 |
prompt=edit_instruction,
|
| 58 |
image=image,
|
|
|
|
|
|
|
| 59 |
guidance_scale=3.0,
|
| 60 |
image_guidance_scale=1.5,
|
| 61 |
num_inference_steps=30,
|