Image stylization via implicit style-content separation
Top 75.9% on sourcepulse
B-LoRA enables implicit style-content separation for single input images, targeting researchers and practitioners in image stylization. It disentangles style and content using Stable Diffusion XL and LoRA, facilitating tasks like style transfer and consistent style generation.
How It Works
B-LoRA leverages Stable Diffusion XL (SDXL) and Low-Rank Adaptation (LoRA) to implicitly separate style and content from a single input image. This disentanglement is achieved by training specialized LoRA adapters that capture either the style or content characteristics, allowing for flexible recombination in downstream tasks.
Quick Start & Requirements
pip install -r requirements.txt
after cloning the repository.accelerate
and specific SDXL base models.python inference.py
.Highlighted Details
content_alpha
and style_alpha
.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The provided training script notes issues with newer diffusers
and PEFT
versions, recommending the use of older versions (diffusers 0.25.0, no PEFT) for optimal training convergence.
8 months ago
Inactive