Update README.md
Browse files
README.md
CHANGED
@@ -24,11 +24,11 @@ pipe = DiffusionPipeline.from_pretrained(
|
|
24 |
torch_dtype=torch.float16, variant="fp16"
|
25 |
)
|
26 |
pipe.to("cuda")
|
27 |
-
pipe.load_lora_weights("radames/sdxl-turbo-DPO-LoRA", adapter_name="dpo-lora-
|
28 |
-
pipe.set_adapters(["dpo-lora-
|
29 |
seed = 123123
|
30 |
-
prompt = "
|
31 |
-
negative_prompt = "3d render, cartoon, drawing, art, low light"
|
32 |
generator = torch.Generator().manual_seed(seed)
|
33 |
images = pipe(
|
34 |
prompt=prompt,
|
@@ -45,9 +45,13 @@ make_image_grid(images, 1, 4)
|
|
45 |
|
46 |
## Guidance Scale vs LoRA weights
|
47 |
|
48 |
-
|
49 |
|
50 |
|
51 |
## Examples
|
52 |
|
53 |
Left Withoud DPO right with DPO LoRA
|
|
|
|
|
|
|
|
|
|
24 |
torch_dtype=torch.float16, variant="fp16"
|
25 |
)
|
26 |
pipe.to("cuda")
|
27 |
+
pipe.load_lora_weights("radames/sdxl-turbo-DPO-LoRA", adapter_name="dpo-lora-sdxl-turbo")
|
28 |
+
pipe.set_adapters(["dpo-lora-sdxl-turbo"], adapter_weights=[1.0]) # you can play with adapter_weights to increase the effect of the LoRA model
|
29 |
seed = 123123
|
30 |
+
prompt = " A photo of beautiful mountain with realistic sunset and blue lake, highly detailed, masterpiece"
|
31 |
+
negative_prompt = "3d render, cartoon, drawing, art, low light, blur, pixelated, low resolution, black and white, old photo, blurry faces"
|
32 |
generator = torch.Generator().manual_seed(seed)
|
33 |
images = pipe(
|
34 |
prompt=prompt,
|
|
|
45 |
|
46 |
## Guidance Scale vs LoRA weights
|
47 |
|
48 |
+
![image/jpeg](https://cdn-uploads.huggingface.co/production/uploads/6064e095abd8d3692e3e2ed6/TJJx9RYlML14angWGRhmv.jpeg)
|
49 |
|
50 |
|
51 |
## Examples
|
52 |
|
53 |
Left Withoud DPO right with DPO LoRA
|
54 |
+
|
55 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/6064e095abd8d3692e3e2ed6/oTTUkjXMciHBe__l75AOm.png)
|
56 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/6064e095abd8d3692e3e2ed6/rA1Pj5nzyI5d-SNpAz5rN.png)
|
57 |
+
|