ariG23498 HF Staff commited on
Commit
f8224b9
·
verified ·
1 Parent(s): 978e503

Upload Qwen_Qwen-Image-Layered_0.txt with huggingface_hub

Browse files
Files changed (1) hide show
  1. Qwen_Qwen-Image-Layered_0.txt +36 -0
Qwen_Qwen-Image-Layered_0.txt ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-Layered", dtype=torch.bfloat16, device_map="cuda")
7
+
8
+ prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
9
+ image = pipe(prompt).images[0]
10
+ ```
11
+
12
+ ERROR:
13
+ Traceback (most recent call last):
14
+ File "/tmp/Qwen_Qwen-Image-Layered_0fCvYMv.py", line 27, in <module>
15
+ pipe = DiffusionPipeline.from_pretrained("Qwen/Qwen-Image-Layered", dtype=torch.bfloat16, device_map="cuda")
16
+ File "/tmp/.cache/uv/environments-v2/a68ee3d09054fa66/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
17
+ return fn(*args, **kwargs)
18
+ File "/tmp/.cache/uv/environments-v2/a68ee3d09054fa66/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 829, in from_pretrained
19
+ cached_folder = cls.download(
20
+ pretrained_model_name_or_path,
21
+ ...<14 lines>...
22
+ **kwargs,
23
+ )
24
+ File "/tmp/.cache/uv/environments-v2/a68ee3d09054fa66/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
25
+ return fn(*args, **kwargs)
26
+ File "/tmp/.cache/uv/environments-v2/a68ee3d09054fa66/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 1663, in download
27
+ pipeline_class = _get_pipeline_class(
28
+ cls,
29
+ ...<7 lines>...
30
+ revision=custom_revision,
31
+ )
32
+ File "/tmp/.cache/uv/environments-v2/a68ee3d09054fa66/lib/python3.13/site-packages/diffusers/pipelines/pipeline_loading_utils.py", line 507, in _get_pipeline_class
33
+ pipeline_cls = getattr(diffusers_module, class_name)
34
+ File "/tmp/.cache/uv/environments-v2/a68ee3d09054fa66/lib/python3.13/site-packages/diffusers/utils/import_utils.py", line 1009, in __getattr__
35
+ raise AttributeError(f"module {self.__name__} has no attribute {name}")
36
+ AttributeError: module diffusers has no attribute QwenImageLayeredPipeline. Did you mean: 'QwenImageEditPipeline'?