Skip to content

alexkrz/diffusion-lightning

Repository files navigation

Train DreamBooth with Lightning

Training a diffusion model with the DreamBooth method using Pytorch Lightning.

Setup

We recommend miniforge to set up your python environment. In case VSCode does not detect your conda environments, install nb_conda in the base environment.

conda env create -n $YOUR_ENV_NAME -f environment.yml
conda activate $YOUR_ENV_NAME
pip install -r requirements.txt
pre-commit install

Props

Intention

This repository is meant to simplify the train_dreambooth_lora.py script found in the Huggingface Dreambooth instructions (https://huggingface.co/docs/diffusers/training/dreambooth).

The training can be executed by running

python train_lightning.py (--config configs/train_dreambooth_lightning.yaml)

About

Training a diffusion model with the DreamBooth method using Pytorch Lightning.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages