đ WiroAI's Dahyun Flux LoRA
This project offers a LoRA model for generating images of Dahyun from Twice. It's based on the FLUX.1 - dev base model and can be easily integrated into image - generation pipelines.
đ Quick Start
Prerequisites
You need to have the diffusers
library installed and a CUDA - enabled GPU for efficient processing.
Code Example
from diffusers import FluxPipeline
import torch
pipeline = FluxPipeline.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to('cuda')
pipeline.load_lora_weights('WiroAI/Dahyun-Flux-LoRA', weight_name='dahyun_flux_lora.safetensors')
image = pipeline('dahyunwiro, A young woman with shoulder-length brown hair, wearing a denim jacket and white sneakers, walking down a busy city street.').images[0]
image.save("output.png")
⨠Features
- Targeted Image Generation: Specifically trained to generate images of Dahyun from Twice.
- Easy Integration: Can be loaded into the
FluxPipeline
with just a few lines of code.
đĻ Installation
The installation mainly involves setting up the necessary Python environment and installing the diffusers
library. You can use the following command to install diffusers
:
pip install diffusers
đģ Usage Examples
Basic Usage
from diffusers import FluxPipeline
import torch
pipeline = FluxPipeline.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to('cuda')
pipeline.load_lora_weights('WiroAI/Dahyun-Flux-LoRA', weight_name='dahyun_flux_lora.safetensors')
image = pipeline('dahyunwiro').images[0]
image.save("basic_output.png")
Advanced Usage
from diffusers import FluxPipeline
import torch
pipeline = FluxPipeline.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to('cuda')
pipeline.load_lora_weights('WiroAI/Dahyun-Flux-LoRA', weight_name='dahyun_flux_lora.safetensors')
prompt = 'dahyunwiro, A young woman with shoulder-length brown hair, wearing a denim jacket and white sneakers, walking down a busy city street.'
image = pipeline(prompt).images[0]
image.save("advanced_output.png")
đ Documentation
Model Details
Model Description
This LoRA is trained for anyone who like Dahyun from Twice.
- Developed by: [Wiro AI - ML Team]
- Shared by: Wiro AI
Trigger words
You should use dahyunwiro
to trigger the image generation.
Civitai model link
civitai
đ License
This model uses the flux - 1 - dev - non - commercial - license
. You can view the full license details here.
Model Information Table