download miniconda https://docs.conda.io/en/latest/miniconda.html
enable install for all users , disable Register Miniconda as the system Python 3.9


in anaconda prompt
cd C:/
mkdir stable-diffusion
cd stable-diffusion


download https://github.com/CompVis/stable-diffusion
unzip in C:/stable-diffusion


in anaconda prompt
cd C:/stable-diffusion/stable-diffusion-main
conda env create -f environment.yaml
conda activate ldm
mkdir -p models/ldm/stable-diffusion-v1/


download the model from huggingface
https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/blob/main/sd-v1-4.ckpt

paste the model in C:/stable-diffusion/stable-diffusion-main/models/ldm/stable-diffusion-v1/
rename the model to model.ckpt


in anaconda prompt
cd C:/stable-diffusion/stable-diffusion-main
python scripts/txt2img.py --prompt "a photograph of an astronaut riding a horse" --plms

Edit
Pub: 22 Aug 2022 18:56 UTC
Views: 46150