Instructions to use alphaduriendur/avatar-weights-01 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use alphaduriendur/avatar-weights-01 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("alphaduriendur/avatar-weights-01") prompt = "a photo of alphaduriendur" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
Flux.1-dev LoRA โ Avatar
LoRA fine-tuned on Flux.1-dev for personalized avatar generation.
Training details
- Base model:
black-forest-labs/FLUX.1-dev - Instance prompt:
a photo of alphaduriendur - LoRA rank: 16
- Training steps: 1000
- Learning rate: 0.0004
- Resolution: 1024
Usage
from diffusers import FluxPipeline
import torch
pipe = FluxPipeline.from_pretrained(
"black-forest-labs/FLUX.1-dev",
torch_dtype=torch.bfloat16
)
pipe.load_lora_weights("alphaduriendur/avatar-weights-01")
pipe = pipe.to("cuda")
image = pipe(
prompt="a photo of alphaduriendur, professional headshot, studio lighting, 8k",
num_inference_steps=28,
guidance_scale=3.5
).images[0]
image.save("avatar.png")
- Downloads last month
- 23
Model tree for alphaduriendur/avatar-weights-01
Base model
black-forest-labs/FLUX.1-dev