Instructions to use WiroAI/Sana-Flux-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use WiroAI/Sana-Flux-LoRA 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("WiroAI/Sana-Flux-LoRA") prompt = "sanawiro, A young woman with jet-black hair styled in loose waves, wearing a simple pastel pink dress. She stands in a blooming garden, surrounded by roses and soft sunlight. Her gentle smile and relaxed demeanor create a peaceful, elegant scene. Ultra-HD, realistic, with vibrant floral details and soft natural light." image = pipe(prompt).images[0] - Transformers
How to use WiroAI/Sana-Flux-LoRA with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("WiroAI/Sana-Flux-LoRA", dtype="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
Ctrl+K