ariG23498 HF Staff commited on
Commit
7b47aae
·
verified ·
1 Parent(s): b1067d9

Upload spacepxl_Wan2.1-VAE-upscale2x_0.txt with huggingface_hub

Browse files
spacepxl_Wan2.1-VAE-upscale2x_0.txt CHANGED
@@ -1,7 +1,9 @@
1
  ```CODE:
 
2
  from diffusers import DiffusionPipeline
3
 
4
- pipe = DiffusionPipeline.from_pretrained("spacepxl/Wan2.1-VAE-upscale2x")
 
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/spacepxl_Wan2.1-VAE-upscale2x_0xRAw9H.py", line 24, in <module>
23
- pipe = DiffusionPipeline.from_pretrained("spacepxl/Wan2.1-VAE-upscale2x")
24
  File "/tmp/.cache/uv/environments-v2/bcd5dc359e9736e9/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/bcd5dc359e9736e9/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/bcd5dc359e9736e9/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-690d9c53-44e0731540bceaf5438f9e24;4a595cef-e536-4af4-8b5a-fa92d145aafc)
82
 
83
  Entry Not Found for url: https://huggingface.co/spacepxl/Wan2.1-VAE-upscale2x/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("spacepxl/Wan2.1-VAE-upscale2x", 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/spacepxl_Wan2.1-VAE-upscale2x_04Y2SvY.py", line 25, in <module>
25
+ pipe = DiffusionPipeline.from_pretrained("spacepxl/Wan2.1-VAE-upscale2x", dtype=torch.bfloat16, device_map="cuda")
26
  File "/tmp/.cache/uv/environments-v2/bcd5dc359e9736e9/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/bcd5dc359e9736e9/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 833, in from_pretrained
 
80
  ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
81
  File "/tmp/.cache/uv/environments-v2/bcd5dc359e9736e9/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-6911c0e3-68ff12c73d4ca9ec3cb157d1;30592b01-c6b5-401f-86b2-474a8062056e)
84
 
85
  Entry Not Found for url: https://huggingface.co/spacepxl/Wan2.1-VAE-upscale2x/resolve/main/model_index.json.