Concept eraser for diffusion models
Top 53.7% on sourcepulse
This project provides a method for erasing specific concepts or attributes from pre-trained diffusion models, enabling users to remove unwanted visual elements while preserving the model's overall capabilities. It is targeted at researchers and developers working with generative AI who need to control or refine model outputs.
How It Works
The core approach involves fine-tuning the diffusion model using a short text description of the concept to be erased. The model is trained on conditioned and unconditioned scores from a frozen Stable Diffusion model, guiding the generation process away from the undesired concept. This method leverages the model's internal knowledge to steer its outputs, allowing for precise concept removal.
Quick Start & Requirements
git clone https://github.com/rohitgandikota/erasing.git
and pip install -r requirements.txt
.http://127.0.0.1:7860/
(requires cloning demo repository and installing its requirements).Highlighted Details
diffusers
library, allowing generalization to newer models.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
1 month ago
1 week