mnhrdt / quatre-gigaoctets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#local installation of stable diffusion

echo please do not run this script again
sleep 10000

# download the source code
#git clone https://github.com/CompVis/stable-diffusion
git clone https://github.com/anttad/stable-diffusion

# download the weights
wget --user=enric.meinhardt@ens-paris-saclay.fr --password=****** https://huggingface.co/CompVis/stable-diffusion-v-1-1-original/resolve/main/sd-v1-1.ckpt

# link the weights to the source code
mkdir stable-diffusion/models/ldm/stable-diffusion-v1
ln -sr ./sd-v1-1.ckpt stable-diffusion/models/ldm/stable-diffusion-v1/model.c
kpt

# download the taming transformers part of the code
git clone https://github.com/CompVis/taming-transformers.git


# different execution options
cd stable-diffusion

CUDA_VISIBLE_DEVICES="" python scripts/txt2img.py --prompt "A fantasy landscape, trending on artstation" --outdir ./results --ckpt ./weights/sd-v1-1.ckpt --plms --skip_grid --n_samples 1
PYTHONPATH=.:../taming-transformers/ python scripts/txt2img.py --prompt "a photograph of an astronaut riding a horse" --plms

About