Quickly get up and running using Stable Diffusion with Nix flakes. Cloned from collinarnett/stable-diffusion-nix.
- Nix
- Nvidia GPU (3.2GB VRAM)
- x86_64 Linux
- Enable flakes by editing either
~/.config/nix/nix.conf
or/etc/nix/nix.conf
and addexperimental-features = nix-command flakes
- Use
nix run --impure
to spawn a Jupyter Lab instance. The--impure
flag allows nixGL to find your Nvidia drivers on non-nixos systems. - Copy
stable-diff.sample.cfg
tostable-diff.cfg
- Update
stable-diff.cfg
with HuggingFace token and make sure to accept the License Agreement for Stable Diffusion. - Update
stable-diff.cfg
with output directory - Execute the cells in
stable-diff.ipynb
to generate images.