Upload dx8152_Qwen-Image-Edit-2509-White_to_Scene_0.txt with huggingface_hub
Browse files
dx8152_Qwen-Image-Edit-2509-White_to_Scene_0.txt
CHANGED
|
@@ -1,8 +1,10 @@
|
|
| 1 |
```CODE:
|
|
|
|
| 2 |
from diffusers import DiffusionPipeline
|
| 3 |
from diffusers.utils import load_image
|
| 4 |
|
| 5 |
-
|
|
|
|
| 6 |
|
| 7 |
prompt = "Turn this cat into a dog"
|
| 8 |
input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png")
|
|
@@ -22,8 +24,8 @@ requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://hugg
|
|
| 22 |
The above exception was the direct cause of the following exception:
|
| 23 |
|
| 24 |
Traceback (most recent call last):
|
| 25 |
-
File "/tmp/dx8152_Qwen-Image-Edit-2509-
|
| 26 |
-
pipe = DiffusionPipeline.from_pretrained("dx8152/Qwen-Image-Edit-2509-White_to_Scene")
|
| 27 |
File "/tmp/.cache/uv/environments-v2/07e3be77f05d53f5/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
|
| 28 |
return fn(*args, **kwargs)
|
| 29 |
File "/tmp/.cache/uv/environments-v2/07e3be77f05d53f5/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 833, in from_pretrained
|
|
@@ -81,6 +83,6 @@ Traceback (most recent call last):
|
|
| 81 |
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
|
| 82 |
File "/tmp/.cache/uv/environments-v2/07e3be77f05d53f5/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 413, in hf_raise_for_status
|
| 83 |
raise _format(EntryNotFoundError, message, response) from e
|
| 84 |
-
huggingface_hub.errors.EntryNotFoundError: 404 Client Error. (Request ID: Root=1-
|
| 85 |
|
| 86 |
Entry Not Found for url: https://huggingface.co/dx8152/Qwen-Image-Edit-2509-White_to_Scene/resolve/main/model_index.json.
|
|
|
|
| 1 |
```CODE:
|
| 2 |
+
import torch
|
| 3 |
from diffusers import DiffusionPipeline
|
| 4 |
from diffusers.utils import load_image
|
| 5 |
|
| 6 |
+
# switch to "mps" for apple devices
|
| 7 |
+
pipe = DiffusionPipeline.from_pretrained("dx8152/Qwen-Image-Edit-2509-White_to_Scene", dtype=torch.bfloat16, device_map="cuda")
|
| 8 |
|
| 9 |
prompt = "Turn this cat into a dog"
|
| 10 |
input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png")
|
|
|
|
| 24 |
The above exception was the direct cause of the following exception:
|
| 25 |
|
| 26 |
Traceback (most recent call last):
|
| 27 |
+
File "/tmp/dx8152_Qwen-Image-Edit-2509-White_to_Scene_08vH1kW.py", line 26, in <module>
|
| 28 |
+
pipe = DiffusionPipeline.from_pretrained("dx8152/Qwen-Image-Edit-2509-White_to_Scene", dtype=torch.bfloat16, device_map="cuda")
|
| 29 |
File "/tmp/.cache/uv/environments-v2/07e3be77f05d53f5/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/07e3be77f05d53f5/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 833, in from_pretrained
|
|
|
|
| 83 |
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
|
| 84 |
File "/tmp/.cache/uv/environments-v2/07e3be77f05d53f5/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-6911c0ed-510c528e7a08eb556d09391d;c81e3ddf-3b6f-482e-a5bc-1631b137baff)
|
| 87 |
|
| 88 |
Entry Not Found for url: https://huggingface.co/dx8152/Qwen-Image-Edit-2509-White_to_Scene/resolve/main/model_index.json.
|