Upload lightx2v_Wan2.2-Distill-Loras_0.txt with huggingface_hub
Browse files
lightx2v_Wan2.2-Distill-Loras_0.txt
CHANGED
|
@@ -1,8 +1,10 @@
|
|
| 1 |
```CODE:
|
|
|
|
| 2 |
from diffusers import DiffusionPipeline
|
| 3 |
from diffusers.utils import load_image, export_to_video
|
| 4 |
|
| 5 |
-
|
|
|
|
| 6 |
pipe.load_lora_weights("lightx2v/Wan2.2-Distill-Loras")
|
| 7 |
|
| 8 |
prompt = "A man with short gray hair plays a red electric guitar."
|
|
@@ -24,11 +26,11 @@ requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://hugg
|
|
| 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-
|
| 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
|
| 32 |
cached_folder = cls.download(
|
| 33 |
pretrained_model_name_or_path,
|
| 34 |
...<14 lines>...
|
|
@@ -36,7 +38,7 @@ Traceback (most recent call last):
|
|
| 36 |
)
|
| 37 |
File "/tmp/.cache/uv/environments-v2/dc7c16ae63b072d9/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
|
| 38 |
return fn(*args, **kwargs)
|
| 39 |
-
File "/tmp/.cache/uv/environments-v2/dc7c16ae63b072d9/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line
|
| 40 |
config_file = hf_hub_download(
|
| 41 |
pretrained_model_name,
|
| 42 |
...<5 lines>...
|
|
@@ -83,6 +85,6 @@ Traceback (most recent call last):
|
|
| 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-
|
| 87 |
|
| 88 |
Entry Not Found for url: https://huggingface.co/Wan-AI/Wan2.2-I2V-A14B/resolve/main/model_index.json.
|
|
|
|
| 1 |
```CODE:
|
| 2 |
+
import torch
|
| 3 |
from diffusers import DiffusionPipeline
|
| 4 |
from diffusers.utils import load_image, export_to_video
|
| 5 |
|
| 6 |
+
# switch to "mps" for apple devices
|
| 7 |
+
pipe = DiffusionPipeline.from_pretrained("Wan-AI/Wan2.2-I2V-A14B", dtype=torch.bfloat16, device_map="cuda")
|
| 8 |
pipe.load_lora_weights("lightx2v/Wan2.2-Distill-Loras")
|
| 9 |
|
| 10 |
prompt = "A man with short gray hair plays a red electric guitar."
|
|
|
|
| 26 |
The above exception was the direct cause of the following exception:
|
| 27 |
|
| 28 |
Traceback (most recent call last):
|
| 29 |
+
File "/tmp/lightx2v_Wan2.2-Distill-Loras_0v8oD8g.py", line 28, in <module>
|
| 30 |
+
pipe = DiffusionPipeline.from_pretrained("Wan-AI/Wan2.2-I2V-A14B", dtype=torch.bfloat16, device_map="cuda")
|
| 31 |
File "/tmp/.cache/uv/environments-v2/dc7c16ae63b072d9/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
|
| 32 |
return fn(*args, **kwargs)
|
| 33 |
+
File "/tmp/.cache/uv/environments-v2/dc7c16ae63b072d9/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 829, in from_pretrained
|
| 34 |
cached_folder = cls.download(
|
| 35 |
pretrained_model_name_or_path,
|
| 36 |
...<14 lines>...
|
|
|
|
| 38 |
)
|
| 39 |
File "/tmp/.cache/uv/environments-v2/dc7c16ae63b072d9/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
|
| 40 |
return fn(*args, **kwargs)
|
| 41 |
+
File "/tmp/.cache/uv/environments-v2/dc7c16ae63b072d9/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 1605, in download
|
| 42 |
config_file = hf_hub_download(
|
| 43 |
pretrained_model_name,
|
| 44 |
...<5 lines>...
|
|
|
|
| 85 |
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
|
| 86 |
File "/tmp/.cache/uv/environments-v2/dc7c16ae63b072d9/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 413, in hf_raise_for_status
|
| 87 |
raise _format(EntryNotFoundError, message, response) from e
|
| 88 |
+
huggingface_hub.errors.EntryNotFoundError: 404 Client Error. (Request ID: Root=1-6948f066-060919dd3c7cf83c03f73b90;1953f2d6-84c7-43c9-8705-1361d5424219)
|
| 89 |
|
| 90 |
Entry Not Found for url: https://huggingface.co/Wan-AI/Wan2.2-I2V-A14B/resolve/main/model_index.json.
|