Coder Social home page Coder Social logo

stable-diffusion-nix's Introduction

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

stable-diffusion-nix's People

Contributors

collinarnett avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

stable-diffusion-nix's Issues

Fails to build: attribute 'overlays' missing

I'm trying to run this but hitting an error:

$ nix run
warning: Git tree '/home/pwaller/stable-diffusion-nix' is dirty
error: attribute 'overlays' missing

       at /nix/store/jcy4idzhm91fw01y882czca81jbbyx94-source/flake.nix:20:63:

           19|         inherit system;
           20|         overlays = [nixgl.overlay] ++ (nixpkgs.lib.attrValues jupyterWith.overlays);
             |                                                               ^
           21|         config.allowUnfree = true;

License

Hi! Iโ€™d like to make a derived work, but there is no license file in the repository.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.