ariG23498 HF Staff commited on
Commit
6348578
·
verified ·
1 Parent(s): e11ebbb

Upload lightx2v_Wan2.2-Distill-Loras_0.txt with huggingface_hub

Browse files
Files changed (1) hide show
  1. lightx2v_Wan2.2-Distill-Loras_0.txt +9 -12
lightx2v_Wan2.2-Distill-Loras_0.txt CHANGED
@@ -1,17 +1,14 @@
1
  ```CODE:
2
- import torch
3
  from diffusers import DiffusionPipeline
4
  from diffusers.utils import load_image, export_to_video
5
 
6
- pipe = DiffusionPipeline.from_pretrained("lightx2v/Wan2.2-Distill-Loras", torch_dtype=torch.float16)
7
- pipe.to("cuda")
8
 
9
  prompt = "A man with short gray hair plays a red electric guitar."
10
- image = load_image(
11
- "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png"
12
- )
13
 
14
- output = pipe(image=image, prompt=prompt).frames[0]
15
  export_to_video(output, "output.mp4")
16
  ```
17
 
@@ -22,13 +19,13 @@ Traceback (most recent call last):
22
  ~~~~~~~~~~~~~~~~~~~~~~~~~^^
23
  File "/tmp/.cache/uv/environments-v2/dc7c16ae63b072d9/lib/python3.13/site-packages/requests/models.py", line 1026, in raise_for_status
24
  raise HTTPError(http_error_msg, response=self)
25
- requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/lightx2v/Wan2.2-Distill-Loras/resolve/main/model_index.json
26
 
27
  The above exception was the direct cause of the following exception:
28
 
29
  Traceback (most recent call last):
30
- File "/tmp/lightx2v_Wan2.2-Distill-Loras_09SinjZ.py", line 20, in <module>
31
- pipe = DiffusionPipeline.from_pretrained("lightx2v/Wan2.2-Distill-Loras", torch_dtype=torch.float16)
32
  File "/tmp/.cache/uv/environments-v2/dc7c16ae63b072d9/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
33
  return fn(*args, **kwargs)
34
  File "/tmp/.cache/uv/environments-v2/dc7c16ae63b072d9/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 833, in from_pretrained
@@ -86,6 +83,6 @@ Traceback (most recent call last):
86
  ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
87
  File "/tmp/.cache/uv/environments-v2/dc7c16ae63b072d9/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 413, in hf_raise_for_status
88
  raise _format(EntryNotFoundError, message, response) from e
89
- huggingface_hub.errors.EntryNotFoundError: 404 Client Error. (Request ID: Root=1-69085681-26e351631710758d5a7b8558;b65bb9cd-850f-4811-8082-edf6ff60daa7)
90
 
91
- Entry Not Found for url: https://huggingface.co/lightx2v/Wan2.2-Distill-Loras/resolve/main/model_index.json.
 
1
  ```CODE:
 
2
  from diffusers import DiffusionPipeline
3
  from diffusers.utils import load_image, export_to_video
4
 
5
+ pipe = DiffusionPipeline.from_pretrained("Wan-AI/Wan2.2-I2V-A14B")
6
+ pipe.load_lora_weights("lightx2v/Wan2.2-Distill-Loras")
7
 
8
  prompt = "A man with short gray hair plays a red electric guitar."
9
+ input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png")
 
 
10
 
11
+ image = pipe(image=input_image, prompt=prompt).frames[0]
12
  export_to_video(output, "output.mp4")
13
  ```
14
 
 
19
  ~~~~~~~~~~~~~~~~~~~~~~~~~^^
20
  File "/tmp/.cache/uv/environments-v2/dc7c16ae63b072d9/lib/python3.13/site-packages/requests/models.py", line 1026, in raise_for_status
21
  raise HTTPError(http_error_msg, response=self)
22
+ requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/Wan-AI/Wan2.2-I2V-A14B/resolve/main/model_index.json
23
 
24
  The above exception was the direct cause of the following exception:
25
 
26
  Traceback (most recent call last):
27
+ File "/tmp/lightx2v_Wan2.2-Distill-Loras_060nLf9.py", line 24, in <module>
28
+ pipe = DiffusionPipeline.from_pretrained("Wan-AI/Wan2.2-I2V-A14B")
29
  File "/tmp/.cache/uv/environments-v2/dc7c16ae63b072d9/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
30
  return fn(*args, **kwargs)
31
  File "/tmp/.cache/uv/environments-v2/dc7c16ae63b072d9/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 833, in from_pretrained
 
83
  ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
84
  File "/tmp/.cache/uv/environments-v2/dc7c16ae63b072d9/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 413, in hf_raise_for_status
85
  raise _format(EntryNotFoundError, message, response) from e
86
+ huggingface_hub.errors.EntryNotFoundError: 404 Client Error. (Request ID: Root=1-690c4aea-2d1f13dc7e4db3044881dbf4;39fb0b60-cae9-4194-83e0-b4024f025e99)
87
 
88
+ Entry Not Found for url: https://huggingface.co/Wan-AI/Wan2.2-I2V-A14B/resolve/main/model_index.json.