Upload lightx2v_Qwen-Image-Lightning_0.txt with huggingface_hub
Browse files
lightx2v_Qwen-Image-Lightning_0.txt
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
```CODE:
|
| 2 |
+
from diffusers import DiffusionPipeline
|
| 3 |
+
|
| 4 |
+
pipe = DiffusionPipeline.from_pretrained("lightx2v/Qwen-Image-Lightning")
|
| 5 |
+
|
| 6 |
+
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
|
| 7 |
+
image = pipe(prompt).images[0]
|
| 8 |
+
```
|
| 9 |
+
|
| 10 |
+
ERROR:
|
| 11 |
+
Traceback (most recent call last):
|
| 12 |
+
File "/tmp/lightx2v_Qwen-Image-Lightning_0b7SZg7.py", line 14, in <module>
|
| 13 |
+
from diffusers import DiffusionPipeline
|
| 14 |
+
ModuleNotFoundError: No module named 'diffusers'
|