ariG23498 HF Staff commited on
Commit
e1f6399
·
verified ·
1 Parent(s): 8b54495

Upload Wan-AI_Wan2.2-Animate-14B_0.txt with huggingface_hub

Browse files
Files changed (1) hide show
  1. Wan-AI_Wan2.2-Animate-14B_0.txt +6 -4
Wan-AI_Wan2.2-Animate-14B_0.txt CHANGED
@@ -1,7 +1,9 @@
1
  ```CODE:
 
2
  from diffusers import DiffusionPipeline
3
 
4
- pipe = DiffusionPipeline.from_pretrained("Wan-AI/Wan2.2-Animate-14B")
 
5
 
6
  prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
7
  image = pipe(prompt).images[0]
@@ -19,8 +21,8 @@ requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://hugg
19
  The above exception was the direct cause of the following exception:
20
 
21
  Traceback (most recent call last):
22
- File "/tmp/Wan-AI_Wan2.2-Animate-14B_0HYScdy.py", line 24, in <module>
23
- pipe = DiffusionPipeline.from_pretrained("Wan-AI/Wan2.2-Animate-14B")
24
  File "/tmp/.cache/uv/environments-v2/708279b30d01507a/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/708279b30d01507a/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 833, in from_pretrained
@@ -78,6 +80,6 @@ Traceback (most recent call last):
78
  ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
79
  File "/tmp/.cache/uv/environments-v2/708279b30d01507a/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 413, in hf_raise_for_status
80
  raise _format(EntryNotFoundError, message, response) from e
81
- huggingface_hub.errors.EntryNotFoundError: 404 Client Error. (Request ID: Root=1-690d9c52-4dd8bdab2b22c5532554edfe;683957ea-adec-4378-9c9a-1b2b7c26f62e)
82
 
83
  Entry Not Found for url: https://huggingface.co/Wan-AI/Wan2.2-Animate-14B/resolve/main/model_index.json.
 
1
  ```CODE:
2
+ import torch
3
  from diffusers import DiffusionPipeline
4
 
5
+ # switch to "mps" for apple devices
6
+ pipe = DiffusionPipeline.from_pretrained("Wan-AI/Wan2.2-Animate-14B", 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]
 
21
  The above exception was the direct cause of the following exception:
22
 
23
  Traceback (most recent call last):
24
+ File "/tmp/Wan-AI_Wan2.2-Animate-14B_0LuqXYe.py", line 25, in <module>
25
+ pipe = DiffusionPipeline.from_pretrained("Wan-AI/Wan2.2-Animate-14B", dtype=torch.bfloat16, device_map="cuda")
26
  File "/tmp/.cache/uv/environments-v2/708279b30d01507a/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/708279b30d01507a/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 833, in from_pretrained
 
80
  ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
81
  File "/tmp/.cache/uv/environments-v2/708279b30d01507a/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 413, in hf_raise_for_status
82
  raise _format(EntryNotFoundError, message, response) from e
83
+ huggingface_hub.errors.EntryNotFoundError: 404 Client Error. (Request ID: Root=1-6911c0fa-777017c07f7bf1187cee17e7;a51397a1-b51e-49ff-a891-a64089060e9f)
84
 
85
  Entry Not Found for url: https://huggingface.co/Wan-AI/Wan2.2-Animate-14B/resolve/main/model_index.json.