Instructions to use stabilityai/stable-diffusion-xl-refiner-1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use stabilityai/stable-diffusion-xl-refiner-1.0 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("stabilityai/stable-diffusion-xl-refiner-1.0", 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
Commit ·
1c3c4e1
1
Parent(s): fb6d705
Update vae/config.json
Browse files- vae/config.json +1 -1
vae/config.json
CHANGED
|
@@ -21,7 +21,7 @@
|
|
| 21 |
"layers_per_block": 2,
|
| 22 |
"norm_num_groups": 32,
|
| 23 |
"out_channels": 3,
|
| 24 |
-
"sample_size":
|
| 25 |
"scaling_factor": 0.13025,
|
| 26 |
"up_block_types": [
|
| 27 |
"UpDecoderBlock2D",
|
|
|
|
| 21 |
"layers_per_block": 2,
|
| 22 |
"norm_num_groups": 32,
|
| 23 |
"out_channels": 3,
|
| 24 |
+
"sample_size": 1024,
|
| 25 |
"scaling_factor": 0.13025,
|
| 26 |
"up_block_types": [
|
| 27 |
"UpDecoderBlock2D",
|