Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

collinarnett/stable-diffusion-nix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ARCHIVED

This repository is now no longer being maintained. The huggingface library diffusers is now included in nixpkgs.

Stable Diffusion with Nix

NixOS Unstable

Quickly get up and running using Stable Diffusion with Nix flakes.

Requirements

  • Nix
  • Nvidia GPU (3.2GB VRAM)
  • x86_64 Linux

Setup

  1. Enable flakes by editing either ~/.config/nix/nix.conf or /etc/nix/nix.conf and add
experimental-features = nix-command flakes
  1. Use nix run --impure github:collinarnett/stable-diffusion-nix#jupyterLab to spawn a Jupyter Lab instance. The --impure flag allows nixGL to find your Nvidia drivers on non-nixos systems.

  2. Replace YOUR_TOKEN_HERE with your HuggingFace token and make sure to accept the License Agreement for Stable Diffusion.

  3. Execute the cells in stable-diff.ipynb to generate images.

Enjoy!

image

About

JupyterLab Flake for Stable Diffusion

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published