replicate / dreambooth-template

A template repo for training and publishing your own custom Stable Diffusion model using https://replicate.com/replicate/dreambooth
Apache License 2.0
51 stars 10 forks source link

Stable Diffusion Dreambooth model template

This is the template used by replicate.com dreambooth api to build custom dreambooth models.

This template is based on cog-stable-diffusion which uses diffusers.

Usage

This template is primarily intended for use by Replicate's DreamBooth API, which is what you probably want to use to train and publish your own model.

If you really want to use this template locally, you can do so by following these steps:

  1. Generate some weights, put them in weights/ (use our trainer or your own)
  2. Download NSFW safety_checker weights using script/download-weights
  3. Install cog & docker
  4. Build cog build
  5. Predict cog predict -i prompt="photo of zzz" -i seed=42 ...