ariG23498 HF Staff commited on
Commit
a30c8b5
·
verified ·
1 Parent(s): d763c9a

Upload renderartist_Technically-Color-Z-Image-Turbo_0.txt with huggingface_hub

Browse files
renderartist_Technically-Color-Z-Image-Turbo_0.txt ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ```CODE:
2
+ import torch
3
+ from diffusers import DiffusionPipeline
4
+
5
+ # switch to "mps" for apple devices
6
+ pipe = DiffusionPipeline.from_pretrained("Tongyi-MAI/Z-Image-Turbo", dtype=torch.bfloat16, device_map="cuda")
7
+ pipe.load_lora_weights("renderartist/Technically-Color-Z-Image-Turbo")
8
+
9
+ prompt = "t3chnic4lly vibrant 1960s close-up of a woman sitting under a tree in a blue skit and white blouse, she has blonde wavy short hair and a smile with green eyes lake scene by a garden with flowers in the foreground 1960s styl;e film She's holding her hand out there is a small smooth frog in her palm, she's making eye contact with the toad."
10
+ image = pipe(prompt).images[0]
11
+ ```
12
+
13
+ ERROR:
14
+ Traceback (most recent call last):
15
+ File "/tmp/renderartist_Technically-Color-Z-Image-Turbo_0bruvjO.py", line 27, in <module>
16
+ pipe = DiffusionPipeline.from_pretrained("Tongyi-MAI/Z-Image-Turbo", dtype=torch.bfloat16, device_map="cuda")
17
+ File "/tmp/.cache/uv/environments-v2/2ea2351a05ded5c1/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/2ea2351a05ded5c1/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 833, in from_pretrained
20
+ cached_folder = cls.download(
21
+ pretrained_model_name_or_path,
22
+ ...<14 lines>...
23
+ **kwargs,
24
+ )
25
+ File "/tmp/.cache/uv/environments-v2/2ea2351a05ded5c1/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
26
+ return fn(*args, **kwargs)
27
+ File "/tmp/.cache/uv/environments-v2/2ea2351a05ded5c1/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 1548, in download
28
+ pipeline_class = _get_pipeline_class(
29
+ cls,
30
+ ...<7 lines>...
31
+ revision=custom_revision,
32
+ )
33
+ File "/tmp/.cache/uv/environments-v2/2ea2351a05ded5c1/lib/python3.13/site-packages/diffusers/pipelines/pipeline_loading_utils.py", line 491, in _get_pipeline_class
34
+ pipeline_cls = getattr(diffusers_module, class_name)
35
+ File "/tmp/.cache/uv/environments-v2/2ea2351a05ded5c1/lib/python3.13/site-packages/diffusers/utils/import_utils.py", line 946, in __getattr__
36
+ raise AttributeError(f"module {self.__name__} has no attribute {name}")
37
+ AttributeError: module diffusers has no attribute ZImagePipeline. Did you mean: 'QwenImagePipeline'?