Instructions to use fofr/sdxl-2004 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use fofr/sdxl-2004 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("fofr/sdxl-2004") prompt = "<s0><s1>" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Commit ·
e2db051
1
Parent(s): 5ee80bf
fix code example
Browse files
README.md
CHANGED
|
@@ -57,7 +57,7 @@ pipe = DiffusionPipeline.from_pretrained(
|
|
| 57 |
variant="fp16",
|
| 58 |
).to("cuda")
|
| 59 |
|
| 60 |
-
load_lora_weights("fofr/sdxl-2004", weight_name="lora.safetensors")
|
| 61 |
|
| 62 |
text_encoders = [pipe.text_encoder, pipe.text_encoder_2]
|
| 63 |
tokenizers = [pipe.tokenizer, pipe.tokenizer_2]
|
|
|
|
| 57 |
variant="fp16",
|
| 58 |
).to("cuda")
|
| 59 |
|
| 60 |
+
pipe.load_lora_weights("fofr/sdxl-2004", weight_name="lora.safetensors")
|
| 61 |
|
| 62 |
text_encoders = [pipe.text_encoder, pipe.text_encoder_2]
|
| 63 |
tokenizers = [pipe.tokenizer, pipe.tokenizer_2]
|