You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
984 B
Bash
24 lines
984 B
Bash
#!/bin/bash
|
|
|
|
echo This Script is now installing a Stable Diffusion cpu only variant.
|
|
|
|
mkdir -p models/ldm/stable-diffusion-v1/
|
|
mkdir -p outputs/extras-samples
|
|
mkdir -p outputs/img2img-samples/samples
|
|
mkdir -p outputs/txt2img-samples/samples
|
|
|
|
conda install pytorch torchvision torchaudio cpuonly -c pytorch
|
|
conda env create -f environment-cpuonly.yaml
|
|
conda activate sdco
|
|
|
|
pip install pynvml gradio keras-unet fairseq basicsr facexlib
|
|
pip install -e git+https://github.com/CompVis/taming-transformers.git@master#egg=taming-transformers
|
|
pip install -e git+https://github.com/openai/CLIP.git@main#egg=clip
|
|
pip install -e git+https://github.com/TencentARC/GFPGAN#egg=GFPGAN
|
|
pip install -e git+https://github.com/xinntao/Real-ESRGAN#egg=realesrgan
|
|
pip install -e git+https://github.com/hlky/k-diffusion-sd#egg=k_diffusion
|
|
cp sd-v1-4.ckpt models/ldm/stable-diffusion-v1/model.ckpt
|
|
rm sd-v1-4.ckpt
|
|
cp GFPGANv1.3.pth src/gfpgan/experiments/pretrained_models/GFPGANv1.3.pth
|
|
rm GFPGANv1.3.pth
|