Stablediffusion 2 — Make it work on your Linux

Output of “A photography of an installation error”

Current installation recommandation

My installation recommandations

Clone the repo

git clone https://github.com/Stability-AI/stablediffusion.git
cd stablediffusion

Change python 3.8.5 to python 3.9 in environment.yml

gedit environment.yml

Create the conda env and install requirements

conda env create -f environment.yaml
conda activate ldm
pip install -r requirements.txt

Install xFormers using the official command

conda install xformers -c xformers/label/dev

Download model weights

Run the model

python scripts/txt2img.py — prompt “a professional photograph of an astronaut riding a horse” — ckpt <path/to/768model.ckpt/> — config configs/stable-diffusion/v2-inference-v.yaml — H 768 — W 768

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store