diffusers / sdxl-instructpix2pix-768

huggingface.co
Total runs: 26.4K
24-hour runs: 0
7-day runs: -2.5K
30-day runs: 10.7K
Model's Last Updated: 8월 30 2023
text-to-image

Introduction of sdxl-instructpix2pix-768

Model Details of sdxl-instructpix2pix-768

SDXL InstructPix2Pix (768768)

Instruction fine-tuning of Stable Diffusion XL (SDXL) à la InstructPix2Pix . Some results below:

Edit instruction : "Turn sky into a cloudy one"

Edit instruction : "Make it a picasso painting"

Edit instruction : "make the person older"

Usage in 🧨 diffusers

Make sure to install the libraries first:

pip install accelerate transformers
pip install git+https://github.com/huggingface/diffusers
import torch
from diffusers import StableDiffusionXLInstructPix2PixPipeline
from diffusers.utils import load_image

resolution = 768
image = load_image(
    "https://hf.co/datasets/diffusers/diffusers-images-docs/resolve/main/mountain.png"
).resize((resolution, resolution))
edit_instruction = "Turn sky into a cloudy one"

pipe = StableDiffusionXLInstructPix2PixPipeline.from_pretrained(
    "diffusers/sdxl-instructpix2pix-768", torch_dtype=torch.float16
).to("cuda")

edited_image = pipe(
    prompt=edit_instruction,
    image=image,
    height=resolution,
    width=resolution,
    guidance_scale=3.0,
    image_guidance_scale=1.5,
    num_inference_steps=30,
).images[0]
edited_image.save("edited_image.png")

To know more, refer to the documentation .

🚨 Note that this checkpoint is experimental in nature and there's a lot of room for improvements. Please use the "Discussions" tab of this repository to open issues and discuss. 🚨

Training

We fine-tuned SDXL using the InstructPix2Pix training methodology for 15000 steps using a fixed learning rate of 5e-6 on an image resolution of 768x768.

Our training scripts and other utilities can be found here and they were built on top of our official training script .

Our training logs are available on Weights and Biases here . Refer to this link for details on all the hyperparameters.

Training data

We used this dataset: timbrooks/instructpix2pix-clip-filtered .

Compute

one 8xA100 machine

Batch size

Data parallel with a single gpu batch size of 8 for a total batch size of 32.

Mixed precision

FP16

Runs of diffusers sdxl-instructpix2pix-768 on huggingface.co

26.4K
Total runs
0
24-hour runs
-1.2K
3-day runs
-2.5K
7-day runs
10.7K
30-day runs

More Information About sdxl-instructpix2pix-768 huggingface.co Model

More sdxl-instructpix2pix-768 license Visit here:

https://choosealicense.com/licenses/openrail++

sdxl-instructpix2pix-768 huggingface.co

sdxl-instructpix2pix-768 huggingface.co is an AI model on huggingface.co that provides sdxl-instructpix2pix-768's model effect (), which can be used instantly with this diffusers sdxl-instructpix2pix-768 model. huggingface.co supports a free trial of the sdxl-instructpix2pix-768 model, and also provides paid use of the sdxl-instructpix2pix-768. Support call sdxl-instructpix2pix-768 model through api, including Node.js, Python, http.

sdxl-instructpix2pix-768 huggingface.co Url

https://huggingface.co/diffusers/sdxl-instructpix2pix-768

diffusers sdxl-instructpix2pix-768 online free

sdxl-instructpix2pix-768 huggingface.co is an online trial and call api platform, which integrates sdxl-instructpix2pix-768's modeling effects, including api services, and provides a free online trial of sdxl-instructpix2pix-768, you can try sdxl-instructpix2pix-768 online for free by clicking the link below.

diffusers sdxl-instructpix2pix-768 online free url in huggingface.co:

https://huggingface.co/diffusers/sdxl-instructpix2pix-768

sdxl-instructpix2pix-768 install

sdxl-instructpix2pix-768 is an open source model from GitHub that offers a free installation service, and any user can find sdxl-instructpix2pix-768 on GitHub to install. At the same time, huggingface.co provides the effect of sdxl-instructpix2pix-768 install, users can directly use sdxl-instructpix2pix-768 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

sdxl-instructpix2pix-768 install url in huggingface.co:

https://huggingface.co/diffusers/sdxl-instructpix2pix-768

Url of sdxl-instructpix2pix-768

sdxl-instructpix2pix-768 huggingface.co Url

Provider of sdxl-instructpix2pix-768 huggingface.co

diffusers
ORGANIZATIONS

Other API from diffusers

huggingface.co

Total runs: 5.3K
Run Growth: 0
Growth Rate: 0.00%
Updated: 10월 22 2024
huggingface.co

Total runs: 4.0K
Run Growth: -1.5K
Growth Rate: -39.10%
Updated: 2월 08 2023
huggingface.co

Total runs: 463
Run Growth: 146
Growth Rate: 31.53%
Updated: 2월 23 2025
huggingface.co

Total runs: 12
Run Growth: -4
Growth Rate: -30.77%
Updated: 2월 06 2024