Upload Alissonerdx_BFS-Best-Face-Swap_0.txt with huggingface_hub
Browse files
Alissonerdx_BFS-Best-Face-Swap_0.txt
CHANGED
|
@@ -4,7 +4,7 @@ from diffusers import DiffusionPipeline
|
|
| 4 |
from diffusers.utils import load_image
|
| 5 |
|
| 6 |
# switch to "mps" for apple devices
|
| 7 |
-
pipe = DiffusionPipeline.from_pretrained("Qwen/Qwen-Image-Edit-
|
| 8 |
pipe.load_lora_weights("Alissonerdx/BFS-Best-Face-Swap")
|
| 9 |
|
| 10 |
prompt = "Turn this cat into a dog"
|
|
@@ -15,26 +15,12 @@ image = pipe(image=input_image, prompt=prompt).images[0]
|
|
| 15 |
|
| 16 |
ERROR:
|
| 17 |
Traceback (most recent call last):
|
| 18 |
-
File "/tmp/Alissonerdx_BFS-Best-Face-
|
| 19 |
-
pipe = DiffusionPipeline.from_pretrained("Qwen/Qwen-Image-Edit-
|
| 20 |
-
File "/tmp/.cache/uv/environments-v2/04a66d23059ab39c/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line
|
| 21 |
return fn(*args, **kwargs)
|
| 22 |
-
File "/tmp/.cache/uv/environments-v2/04a66d23059ab39c/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
...<14 lines>...
|
| 26 |
-
**kwargs,
|
| 27 |
)
|
| 28 |
-
|
| 29 |
-
return fn(*args, **kwargs)
|
| 30 |
-
File "/tmp/.cache/uv/environments-v2/04a66d23059ab39c/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 1548, in download
|
| 31 |
-
pipeline_class = _get_pipeline_class(
|
| 32 |
-
cls,
|
| 33 |
-
...<7 lines>...
|
| 34 |
-
revision=custom_revision,
|
| 35 |
-
)
|
| 36 |
-
File "/tmp/.cache/uv/environments-v2/04a66d23059ab39c/lib/python3.13/site-packages/diffusers/pipelines/pipeline_loading_utils.py", line 491, in _get_pipeline_class
|
| 37 |
-
pipeline_cls = getattr(diffusers_module, class_name)
|
| 38 |
-
File "/tmp/.cache/uv/environments-v2/04a66d23059ab39c/lib/python3.13/site-packages/diffusers/utils/import_utils.py", line 946, in __getattr__
|
| 39 |
-
raise AttributeError(f"module {self.__name__} has no attribute {name}")
|
| 40 |
-
AttributeError: module diffusers has no attribute QwenImageEditPlusPipeline. Did you mean: 'QwenImageEditPipeline'?
|
|
|
|
| 4 |
from diffusers.utils import load_image
|
| 5 |
|
| 6 |
# switch to "mps" for apple devices
|
| 7 |
+
pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.2-klein-9B,black-forest-labs/FLUX.2-klein-4B,black-forest-labs/FLUX.2-klein-base-4B,black-forest-labs/FLUX.2-klein-base-9B,black-forest-labs/FLUX.2-klein-9b-fp8,black-forest-labs/FLUX.2-klein-4b-fp8,Qwen/Qwen-Image-Edit-2511", dtype=torch.bfloat16, device_map="cuda")
|
| 8 |
pipe.load_lora_weights("Alissonerdx/BFS-Best-Face-Swap")
|
| 9 |
|
| 10 |
prompt = "Turn this cat into a dog"
|
|
|
|
| 15 |
|
| 16 |
ERROR:
|
| 17 |
Traceback (most recent call last):
|
| 18 |
+
File "/tmp/Alissonerdx_BFS-Best-Face-Swap_0LUp0fO.py", line 28, in <module>
|
| 19 |
+
pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.2-klein-9B,black-forest-labs/FLUX.2-klein-4B,black-forest-labs/FLUX.2-klein-base-4B,black-forest-labs/FLUX.2-klein-base-9B,black-forest-labs/FLUX.2-klein-9b-fp8,black-forest-labs/FLUX.2-klein-4b-fp8,Qwen/Qwen-Image-Edit-2511", dtype=torch.bfloat16, device_map="cuda")
|
| 20 |
+
File "/tmp/.cache/uv/environments-v2/04a66d23059ab39c/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 89, in _inner_fn
|
| 21 |
return fn(*args, **kwargs)
|
| 22 |
+
File "/tmp/.cache/uv/environments-v2/04a66d23059ab39c/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 825, in from_pretrained
|
| 23 |
+
raise ValueError(
|
| 24 |
+
...<2 lines>...
|
|
|
|
|
|
|
| 25 |
)
|
| 26 |
+
ValueError: The provided pretrained_model_name_or_path "black-forest-labs/FLUX.2-klein-9B,black-forest-labs/FLUX.2-klein-4B,black-forest-labs/FLUX.2-klein-base-4B,black-forest-labs/FLUX.2-klein-base-9B,black-forest-labs/FLUX.2-klein-9b-fp8,black-forest-labs/FLUX.2-klein-4b-fp8,Qwen/Qwen-Image-Edit-2511" is neither a valid local path nor a valid repo id. Please check the parameter.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|