Skip to content

This project shows how to fine-tune stable diffusion model on your own dataset.

License

Notifications You must be signed in to change notification settings

guyi2000/stable-diffusion-finetune

Repository files navigation

Stable Diffusion fine-tuning

This project shows how to fine-tune stable diffusion model on your own dataset.

Note: This script is experimental. The script fine-tunes the whole model and often times the model overfits and runs into issues like catastrophic forgetting. It's recommended to try different hyperparamters to get the best result on your dataset.

Prerequisites

Before running the scripts, make sure to install the library's training dependencies (such as PyTorch and 🤗Transformers):

git clone https://github.com/huggingface/diffusers
cd diffusers
pip install .

Then run

cd ..
pip install -r requirements.txt

And initialize an 🤗Accelerate environment with:

accelerate config

Making your own datasets

To fine-tune stable diffusion model on your own dataset, you need to prepare your dataset in the following format:

About

This project shows how to fine-tune stable diffusion model on your own dataset.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published