Instructions to use Shakker-Labs/AWPortrait-FL with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Shakker-Labs/AWPortrait-FL with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Shakker-Labs/AWPortrait-FL", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Update README.md
Browse files
README.md
CHANGED
|
@@ -65,7 +65,7 @@ import torch
|
|
| 65 |
from diffusers import FluxPipeline
|
| 66 |
|
| 67 |
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
|
| 68 |
-
pipe.load_lora_weights('Shakker-Labs/AWPortrait-FL', weight_name='
|
| 69 |
pipe.fuse_lora(lora_scale=0.9)
|
| 70 |
pipe.to("cuda")
|
| 71 |
|
|
|
|
| 65 |
from diffusers import FluxPipeline
|
| 66 |
|
| 67 |
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
|
| 68 |
+
pipe.load_lora_weights('Shakker-Labs/AWPortrait-FL', weight_name='AWPortrait-FL-lora.safetensors')
|
| 69 |
pipe.fuse_lora(lora_scale=0.9)
|
| 70 |
pipe.to("cuda")
|
| 71 |
|