Skip to content

Instantly share code, notes, and snippets.

@matr1xp
Last active January 22, 2024 09:50
Show Gist options
  • Save matr1xp/2bdc841b0eafe31b3bff6fa3889b8ba9 to your computer and use it in GitHub Desktop.
Save matr1xp/2bdc841b0eafe31b3bff6fa3889b8ba9 to your computer and use it in GitHub Desktop.
Stable Diffusion v2 on Windows
# Windows Subsystem for Linux (WSL)
# install miniconda 3
# prerequisites latent diffusion - https://github.com/CompVis/latent-diffusion
# Optional: conda install typing-extensions==4.7.1
conda create -n stable_diffusion
conda activate stable_diffusion
conda install pytorch==1.12.1 torchvision==0.13.1 -c pytorch
pip install transformers==4.19.2 diffusers invisible-watermark
pip install -e .
# gpu support
conda install tensorflow
export CUDA_HOME=/usr/local/cuda-12.2
conda install -c nvidia/label/cuda-12.2 cuda-nvcc
conda install -c conda-forge gcc
conda install -c conda-forge gxx_linux-64==9.5.0
cd ..
git clone https://github.com/facebookresearch/xformers.git
cd xformers
git submodule update --init --recursive
pip install -r requirements.txt
pip install -e .
cd ../stablediffusion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment