Upload lightx2v_Qwen-Image-Lightning_0.py with huggingface_hub
Browse files
lightx2v_Qwen-Image-Lightning_0.py
CHANGED
|
@@ -15,7 +15,8 @@
|
|
| 15 |
try:
|
| 16 |
from diffusers import DiffusionPipeline
|
| 17 |
|
| 18 |
-
pipe = DiffusionPipeline.from_pretrained("
|
|
|
|
| 19 |
|
| 20 |
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
|
| 21 |
image = pipe(prompt).images[0]
|
|
@@ -35,7 +36,8 @@ except Exception as e:
|
|
| 35 |
f.write('''```CODE:
|
| 36 |
from diffusers import DiffusionPipeline
|
| 37 |
|
| 38 |
-
pipe = DiffusionPipeline.from_pretrained("
|
|
|
|
| 39 |
|
| 40 |
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
|
| 41 |
image = pipe(prompt).images[0]
|
|
|
|
| 15 |
try:
|
| 16 |
from diffusers import DiffusionPipeline
|
| 17 |
|
| 18 |
+
pipe = DiffusionPipeline.from_pretrained("Qwen/Qwen-Image")
|
| 19 |
+
pipe.load_lora_weights("lightx2v/Qwen-Image-Lightning")
|
| 20 |
|
| 21 |
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
|
| 22 |
image = pipe(prompt).images[0]
|
|
|
|
| 36 |
f.write('''```CODE:
|
| 37 |
from diffusers import DiffusionPipeline
|
| 38 |
|
| 39 |
+
pipe = DiffusionPipeline.from_pretrained("Qwen/Qwen-Image")
|
| 40 |
+
pipe.load_lora_weights("lightx2v/Qwen-Image-Lightning")
|
| 41 |
|
| 42 |
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
|
| 43 |
image = pipe(prompt).images[0]
|