PyTorch implementation for diffusion fine-tuning via compact parameter space
Top 75.9% on sourcepulse
This repository provides a PyTorch implementation of SVDiff, a method for compact parameter space fine-tuning of diffusion models. It enables efficient single-subject generation and single-image editing with significantly reduced model sizes and faster training compared to LoRA.
How It Works
SVDiff fine-tunes diffusion models by learning low-rank spectral shifts in the parameter space, specifically targeting the U-Net and text encoder. This approach allows for a more compact representation of learned concepts, resulting in smaller checkpoint files (1.2MB vs. 3.1MB for LoRA) and fewer trainable parameters. The method is designed to achieve comparable or better results with fewer training steps.
Quick Start & Requirements
pip install svdiff-pytorch
git clone https://github.com/mkshing/svdiff-pytorch && pip install -r requirements.txt
diffusers
.Highlighted Details
Maintenance & Community
diffusers
.Licensing & Compatibility
Limitations & Caveats
1 year ago
1 day