Last active
January 22, 2024 09:50
-
-
Save matr1xp/2bdc841b0eafe31b3bff6fa3889b8ba9 to your computer and use it in GitHub Desktop.
Stable Diffusion v2 on Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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