Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
nix-stable-diffusion
Nix-friendly fork of: Optimized Stable Diffusion modified to run on lower GPU VRAM (by Danielhp95)
-
BLIP
PyTorch code for BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generation
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I have been playing around with a memory efficient version of [stable-diffusion](https://github.com/basujindal/stable-diffusion), an AI model that outputs images based on input text. I think it is rather neat, and [this post](https://xeiaso.net/blog/stable-diffusion-nixos) by Xeiaso (good blog for nix resources and rants) inspired me to try and make the installation process more nix-friendly. So I have forked the original [stable-diffusion repo](https://github.com/CompVis/stable-diffusion) and added a [`default.nix`](https://github.com/Danielhp95/nix-stable-diffusion/blob/main/default.nix) which dumps you in a `nix-shell` with all dependencies: cuda (nvidia) stuff, python dependencies and C++ libraries for pytorch (deep learning framework). Although **note** that in order to run it you must first download the model weights from [this repo](https://huggingface.co/CompVis/stable-diffusion-v1-4) and place them in `models/ldm/stable-diffusion-v1/model.ckpt` directory.
I have been playing around with a memory efficient version of [stable-diffusion](https://github.com/basujindal/stable-diffusion), an AI model that outputs images based on input text. I think it is rather neat, and [this post](https://xeiaso.net/blog/stable-diffusion-nixos) by Xeiaso (good blog for nix resources and rants) inspired me to try and make the installation process more nix-friendly. So I have forked the original [stable-diffusion repo](https://github.com/CompVis/stable-diffusion) and added a [`default.nix`](https://github.com/Danielhp95/nix-stable-diffusion/blob/main/default.nix) which dumps you in a `nix-shell` with all dependencies: cuda (nvidia) stuff, python dependencies and C++ libraries for pytorch (deep learning framework). Although **note** that in order to run it you must first download the model weights from [this repo](https://huggingface.co/CompVis/stable-diffusion-v1-4) and place them in `models/ldm/stable-diffusion-v1/model.ckpt` directory.
I have been playing around with a memory efficient version of [stable-diffusion](https://github.com/basujindal/stable-diffusion), an AI model that outputs images based on input text. I think it is rather neat, and [this post](https://xeiaso.net/blog/stable-diffusion-nixos) by Xeiaso (good blog for nix resources and rants) inspired me to try and make the installation process more nix-friendly. So I have forked the original [stable-diffusion repo](https://github.com/CompVis/stable-diffusion) and added a [`default.nix`](https://github.com/Danielhp95/nix-stable-diffusion/blob/main/default.nix) which dumps you in a `nix-shell` with all dependencies: cuda (nvidia) stuff, python dependencies and C++ libraries for pytorch (deep learning framework). Although **note** that in order to run it you must first download the model weights from [this repo](https://huggingface.co/CompVis/stable-diffusion-v1-4) and place them in `models/ldm/stable-diffusion-v1/model.ckpt` directory.
This was really helpful, thanks. I managed to get it working for the AUTOMATIC1111 version of webui.
# Copy models as described in README cp ~/Downloads/model.ckpt . cp ~/Downloads/GFPGANv1.3.pth . # Clone other repos as mentioned in README mkdir repositories git clone https://github.com/CompVis/stable-diffusion.git repositories/stable-diffusion git clone https://github.com/CompVis/taming-transformers.git repositories/taming-transformers git clone https://github.com/sczhou/CodeFormer.git repositories/CodeFormer git clone https://github.com/salesforce/BLIP.git repositories/BLIP export NIXPKGS_ALLOW_UNFREE=1 nix-shell default.nix pip install torch --extra-index-url https://download.pytorch.org/whl/cu113 # Also from linux instructions. Can probably be added to default.nix python webui.py
# Copy models as described in README cp ~/Downloads/model.ckpt . cp ~/Downloads/GFPGANv1.3.pth . # Clone other repos as mentioned in README mkdir repositories git clone https://github.com/CompVis/stable-diffusion.git repositories/stable-diffusion git clone https://github.com/CompVis/taming-transformers.git repositories/taming-transformers git clone https://github.com/sczhou/CodeFormer.git repositories/CodeFormer git clone https://github.com/salesforce/BLIP.git repositories/BLIP export NIXPKGS_ALLOW_UNFREE=1 nix-shell default.nix pip install torch --extra-index-url https://download.pytorch.org/whl/cu113 # Also from linux instructions. Can probably be added to default.nix python webui.py
# Copy models as described in README cp ~/Downloads/model.ckpt . cp ~/Downloads/GFPGANv1.3.pth . # Clone other repos as mentioned in README mkdir repositories git clone https://github.com/CompVis/stable-diffusion.git repositories/stable-diffusion git clone https://github.com/CompVis/taming-transformers.git repositories/taming-transformers git clone https://github.com/sczhou/CodeFormer.git repositories/CodeFormer git clone https://github.com/salesforce/BLIP.git repositories/BLIP export NIXPKGS_ALLOW_UNFREE=1 nix-shell default.nix pip install torch --extra-index-url https://download.pytorch.org/whl/cu113 # Also from linux instructions. Can probably be added to default.nix python webui.py
Related posts
- Is there a website where you can upload a photo and get the description in a paragraph?
- Stable Diffusion v2-1-unCLIP model released
- GPT-4 shows emergent Theory of Mind on par with an adult. It scored in the 85+ percentile for a lot of major college exams. It can also do taxes and create functional websites from a simple drawing
- meme
- Object Recognition for Photo Metadata