ariG23498 HF Staff commited on
Commit
4d1738b
·
verified ·
1 Parent(s): 52f6d6e

Upload stabilityai_stable-diffusion-xl-base-1.0_0.txt with huggingface_hub

Browse files
stabilityai_stable-diffusion-xl-base-1.0_0.txt CHANGED
@@ -1 +1,51 @@
1
- Everything was good in stabilityai_stable-diffusion-xl-base-1.0_0.txt
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ```CODE:
2
+ import torch
3
+ from diffusers import DiffusionPipeline
4
+
5
+ # switch to "mps" for apple devices
6
+ pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", 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/stabilityai_stable-diffusion-xl-base-1.0_0UdjCfS.py", line 30, in <module>
15
+ image = pipe(prompt).images[0]
16
+ ~~~~^^^^^^^^
17
+ File "/tmp/.cache/uv/environments-v2/d1c64095796a450d/lib/python3.13/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
18
+ return func(*args, **kwargs)
19
+ File "/tmp/.cache/uv/environments-v2/d1c64095796a450d/lib/python3.13/site-packages/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py", line 1202, in __call__
20
+ noise_pred = self.unet(
21
+ ~~~~~~~~~^
22
+ latent_model_input,
23
+ ^^^^^^^^^^^^^^^^^^^
24
+ ...<5 lines>...
25
+ return_dict=False,
26
+ ^^^^^^^^^^^^^^^^^^
27
+ )[0]
28
+ ^
29
+ File "/tmp/.cache/uv/environments-v2/d1c64095796a450d/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1776, in _wrapped_call_impl
30
+ return self._call_impl(*args, **kwargs)
31
+ ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
32
+ File "/tmp/.cache/uv/environments-v2/d1c64095796a450d/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1787, in _call_impl
33
+ return forward_call(*args, **kwargs)
34
+ File "/tmp/.cache/uv/environments-v2/d1c64095796a450d/lib/python3.13/site-packages/diffusers/models/unets/unet_2d_condition.py", line 1080, in forward
35
+ emb = self.time_embedding(t_emb, timestep_cond)
36
+ File "/tmp/.cache/uv/environments-v2/d1c64095796a450d/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1776, in _wrapped_call_impl
37
+ return self._call_impl(*args, **kwargs)
38
+ ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
39
+ File "/tmp/.cache/uv/environments-v2/d1c64095796a450d/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1787, in _call_impl
40
+ return forward_call(*args, **kwargs)
41
+ File "/tmp/.cache/uv/environments-v2/d1c64095796a450d/lib/python3.13/site-packages/diffusers/models/embeddings.py", line 1298, in forward
42
+ sample = self.linear_1(sample)
43
+ File "/tmp/.cache/uv/environments-v2/d1c64095796a450d/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1776, in _wrapped_call_impl
44
+ return self._call_impl(*args, **kwargs)
45
+ ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
46
+ File "/tmp/.cache/uv/environments-v2/d1c64095796a450d/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1787, in _call_impl
47
+ return forward_call(*args, **kwargs)
48
+ File "/tmp/.cache/uv/environments-v2/d1c64095796a450d/lib/python3.13/site-packages/torch/nn/modules/linear.py", line 134, in forward
49
+ return F.linear(input, self.weight, self.bias)
50
+ ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
51
+ RuntimeError: mat1 and mat2 must have the same dtype, but got Half and Float