Upload Alissonerdx_BFS-Best-Face-Swap_0.py with huggingface_hub
Browse files
Alissonerdx_BFS-Best-Face-Swap_0.py
CHANGED
|
@@ -25,7 +25,7 @@ try:
|
|
| 25 |
from diffusers.utils import load_image
|
| 26 |
|
| 27 |
# switch to "mps" for apple devices
|
| 28 |
-
pipe = DiffusionPipeline.from_pretrained("Qwen/Qwen-Image-Edit-
|
| 29 |
pipe.load_lora_weights("Alissonerdx/BFS-Best-Face-Swap")
|
| 30 |
|
| 31 |
prompt = "Turn this cat into a dog"
|
|
@@ -51,7 +51,7 @@ from diffusers import DiffusionPipeline
|
|
| 51 |
from diffusers.utils import load_image
|
| 52 |
|
| 53 |
# switch to "mps" for apple devices
|
| 54 |
-
pipe = DiffusionPipeline.from_pretrained("Qwen/Qwen-Image-Edit-
|
| 55 |
pipe.load_lora_weights("Alissonerdx/BFS-Best-Face-Swap")
|
| 56 |
|
| 57 |
prompt = "Turn this cat into a dog"
|
|
|
|
| 25 |
from diffusers.utils import load_image
|
| 26 |
|
| 27 |
# switch to "mps" for apple devices
|
| 28 |
+
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")
|
| 29 |
pipe.load_lora_weights("Alissonerdx/BFS-Best-Face-Swap")
|
| 30 |
|
| 31 |
prompt = "Turn this cat into a dog"
|
|
|
|
| 51 |
from diffusers.utils import load_image
|
| 52 |
|
| 53 |
# switch to "mps" for apple devices
|
| 54 |
+
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")
|
| 55 |
pipe.load_lora_weights("Alissonerdx/BFS-Best-Face-Swap")
|
| 56 |
|
| 57 |
prompt = "Turn this cat into a dog"
|