GFPGAN model is needed in the folder

main
Christopher Williams 3 years ago
parent 361d66458d
commit c2689e183b

@ -61,6 +61,12 @@ https://huggingface.co/CompVis/stable-diffusion-v-1-4-original
copy the file to your stable-diffusion-cpuonly-main directory
### Download the GFPGAN model
https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.3.pth
copy the file to your stable-diffusion-cpuponly-main directory
### Windows - Running the install script
open a terminal or powershell and cd to your stable-diffusion-cpuonly-main directory and run

@ -1,11 +1,14 @@
echo This Script is now installing a Stable Diffusion cpu only variant.
mkdir "models/ldm/stable-diffusion-v1/"
mkdir "models/ldm/stable-diffusion-v1"
mkdir "outputs/extras-samples"
mkdir "outputs/img2img-samples/samples"
mkdir "outputs/txt2img-samples/samples"
mkdir "src/gfpgan/experiments/pretrained_models"
copy sd-v1-4.ckpt "models/ldm/stable-diffusion-v1/model.ckpt"
del sd-v1-4.ckpt
copy GFPGANv1.3.pth "src/gfpgan/experiments/pretrained_models/GFPGANv1.3.pth"
del GFPGANv1.3.pth
call conda install pytorch torchvision torchaudio cpuonly -c pytorch
call conda env create -f environment-cpuonly.yaml

@ -2,12 +2,15 @@
echo This Script is now installing a Stable Diffusion cpu only variant.
mkdir -p models/ldm/stable-diffusion-v1/
mkdir -p models/ldm/stable-diffusion-v1
mkdir -p outputs/extras-samples
mkdir -p outputs/img2img-samples/samples
mkdir -p outputs/txt2img-samples/samples
mkdir src/gfpgan/experiments/pretrained_models
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
conda install pytorch torchvision torchaudio cpuonly -c pytorch
conda env create -f environment-cpuonly.yaml

Loading…
Cancel
Save