Upload tlennon-ie_qwen-edit-skin_0.txt with huggingface_hub
Browse files
tlennon-ie_qwen-edit-skin_0.txt
CHANGED
|
@@ -1,7 +1,9 @@
|
|
| 1 |
```CODE:
|
|
|
|
| 2 |
from diffusers import DiffusionPipeline
|
| 3 |
|
| 4 |
-
|
|
|
|
| 5 |
pipe.load_lora_weights("tlennon-ie/qwen-edit-skin")
|
| 6 |
|
| 7 |
prompt = "make the subjects skin details more prominent and natural"
|
|
@@ -10,8 +12,8 @@ image = pipe(prompt).images[0]
|
|
| 10 |
|
| 11 |
ERROR:
|
| 12 |
Traceback (most recent call last):
|
| 13 |
-
File "/tmp/tlennon-ie_qwen-edit-
|
| 14 |
-
pipe = DiffusionPipeline.from_pretrained("Qwen/Qwen-Image-Edit-2509")
|
| 15 |
File "/tmp/.cache/uv/environments-v2/2ad080bafbde37d7/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
|
| 16 |
return fn(*args, **kwargs)
|
| 17 |
File "/tmp/.cache/uv/environments-v2/2ad080bafbde37d7/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 833, in from_pretrained
|
|
|
|
| 1 |
```CODE:
|
| 2 |
+
import torch
|
| 3 |
from diffusers import DiffusionPipeline
|
| 4 |
|
| 5 |
+
# switch to "mps" for apple devices
|
| 6 |
+
pipe = DiffusionPipeline.from_pretrained("Qwen/Qwen-Image-Edit-2509", dtype=torch.bfloat16, device_map="cuda")
|
| 7 |
pipe.load_lora_weights("tlennon-ie/qwen-edit-skin")
|
| 8 |
|
| 9 |
prompt = "make the subjects skin details more prominent and natural"
|
|
|
|
| 12 |
|
| 13 |
ERROR:
|
| 14 |
Traceback (most recent call last):
|
| 15 |
+
File "/tmp/tlennon-ie_qwen-edit-skin_0Ad4ktO.py", line 25, in <module>
|
| 16 |
+
pipe = DiffusionPipeline.from_pretrained("Qwen/Qwen-Image-Edit-2509", dtype=torch.bfloat16, device_map="cuda")
|
| 17 |
File "/tmp/.cache/uv/environments-v2/2ad080bafbde37d7/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
|
| 18 |
return fn(*args, **kwargs)
|
| 19 |
File "/tmp/.cache/uv/environments-v2/2ad080bafbde37d7/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 833, in from_pretrained
|