Upload dx8152_Qwen-Image-Edit-2509-Relight_0.txt with huggingface_hub
Browse files
dx8152_Qwen-Image-Edit-2509-Relight_0.txt
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
```CODE:
|
| 2 |
+
from diffusers import DiffusionPipeline
|
| 3 |
+
from diffusers.utils import load_image
|
| 4 |
+
|
| 5 |
+
pipe = DiffusionPipeline.from_pretrained("Qwen/Qwen-Image-Edit-2509")
|
| 6 |
+
pipe.load_lora_weights("dx8152/Qwen-Image-Edit-2509-Relight")
|
| 7 |
+
|
| 8 |
+
prompt = "Turn this cat into a dog"
|
| 9 |
+
input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png")
|
| 10 |
+
|
| 11 |
+
image = pipe(image=input_image, prompt=prompt).images[0]
|
| 12 |
+
```
|
| 13 |
+
|
| 14 |
+
ERROR:
|
| 15 |
+
Traceback (most recent call last):
|
| 16 |
+
File "/tmp/dx8152_Qwen-Image-Edit-2509-Relight_0uYYqxg.py", line 25, in <module>
|
| 17 |
+
pipe = DiffusionPipeline.from_pretrained("Qwen/Qwen-Image-Edit-2509")
|
| 18 |
+
File "/tmp/.cache/uv/environments-v2/ecb6d92695dbde80/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
|
| 19 |
+
return fn(*args, **kwargs)
|
| 20 |
+
File "/tmp/.cache/uv/environments-v2/ecb6d92695dbde80/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 833, in from_pretrained
|
| 21 |
+
cached_folder = cls.download(
|
| 22 |
+
pretrained_model_name_or_path,
|
| 23 |
+
...<14 lines>...
|
| 24 |
+
**kwargs,
|
| 25 |
+
)
|
| 26 |
+
File "/tmp/.cache/uv/environments-v2/ecb6d92695dbde80/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
|
| 27 |
+
return fn(*args, **kwargs)
|
| 28 |
+
File "/tmp/.cache/uv/environments-v2/ecb6d92695dbde80/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 1548, in download
|
| 29 |
+
pipeline_class = _get_pipeline_class(
|
| 30 |
+
cls,
|
| 31 |
+
...<7 lines>...
|
| 32 |
+
revision=custom_revision,
|
| 33 |
+
)
|
| 34 |
+
File "/tmp/.cache/uv/environments-v2/ecb6d92695dbde80/lib/python3.13/site-packages/diffusers/pipelines/pipeline_loading_utils.py", line 491, in _get_pipeline_class
|
| 35 |
+
pipeline_cls = getattr(diffusers_module, class_name)
|
| 36 |
+
File "/tmp/.cache/uv/environments-v2/ecb6d92695dbde80/lib/python3.13/site-packages/diffusers/utils/import_utils.py", line 946, in __getattr__
|
| 37 |
+
raise AttributeError(f"module {self.__name__} has no attribute {name}")
|
| 38 |
+
AttributeError: module diffusers has no attribute QwenImageEditPlusPipeline. Did you mean: 'QwenImageEditPipeline'?
|