forked from extern/easydiffusion
Create the folders before moving to them
This commit is contained in:
parent
083390da83
commit
451ab7e84c
@ -49,6 +49,11 @@ if exist "env" (
|
|||||||
if exist src rename src src-old
|
if exist src rename src src-old
|
||||||
if exist ldm rename ldm ldm-old
|
if exist ldm rename ldm ldm-old
|
||||||
|
|
||||||
|
if not exist "..\models\stable-diffusion" mkdir "..\models\stable-diffusion"
|
||||||
|
if not exist "..\models\gfpgan" mkdir "..\models\gfpgan"
|
||||||
|
if not exist "..\models\realesrgan" mkdir "..\models\realesrgan"
|
||||||
|
if not exist "..\models\vae" mkdir "..\models\vae"
|
||||||
|
|
||||||
@rem migrate the legacy models to the correct path (if already downloaded)
|
@rem migrate the legacy models to the correct path (if already downloaded)
|
||||||
if exist "sd-v1-4.ckpt" move sd-v1-4.ckpt ..\models\stable-diffusion\
|
if exist "sd-v1-4.ckpt" move sd-v1-4.ckpt ..\models\stable-diffusion\
|
||||||
if exist "custom-model.ckpt" move custom-model.ckpt ..\models\stable-diffusion\
|
if exist "custom-model.ckpt" move custom-model.ckpt ..\models\stable-diffusion\
|
||||||
@ -159,12 +164,6 @@ call WHERE uvicorn > .tmp
|
|||||||
@echo conda_sd_ui_deps_installed >> ..\scripts\install_status.txt
|
@echo conda_sd_ui_deps_installed >> ..\scripts\install_status.txt
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
if not exist "..\models\stable-diffusion" mkdir "..\models\stable-diffusion"
|
|
||||||
if not exist "..\models\gfpgan" mkdir "..\models\gfpgan"
|
|
||||||
if not exist "..\models\realesrgan" mkdir "..\models\realesrgan"
|
|
||||||
if not exist "..\models\vae" mkdir "..\models\vae"
|
|
||||||
|
|
||||||
@if exist "..\models\stable-diffusion\sd-v1-4.ckpt" (
|
@if exist "..\models\stable-diffusion\sd-v1-4.ckpt" (
|
||||||
for %%I in ("..\models\stable-diffusion\sd-v1-4.ckpt") do if "%%~zI" EQU "4265380512" (
|
for %%I in ("..\models\stable-diffusion\sd-v1-4.ckpt") do if "%%~zI" EQU "4265380512" (
|
||||||
echo "Data files (weights) necessary for Stable Diffusion were already downloaded. Using the HuggingFace 4 GB Model."
|
echo "Data files (weights) necessary for Stable Diffusion were already downloaded. Using the HuggingFace 4 GB Model."
|
||||||
|
@ -43,6 +43,11 @@ fi
|
|||||||
if [ -e "src" ]; then mv src src-old; fi
|
if [ -e "src" ]; then mv src src-old; fi
|
||||||
if [ -e "ldm" ]; then mv ldm ldm-old; fi
|
if [ -e "ldm" ]; then mv ldm ldm-old; fi
|
||||||
|
|
||||||
|
mkdir -p "../models/stable-diffusion"
|
||||||
|
mkdir -p "../models/gfpgan"
|
||||||
|
mkdir -p "../models/realesrgan"
|
||||||
|
mkdir -p "../models/vae"
|
||||||
|
|
||||||
# migrate the legacy models to the correct path (if already downloaded)
|
# migrate the legacy models to the correct path (if already downloaded)
|
||||||
if [ -e "sd-v1-4.ckpt" ]; then mv sd-v1-4.ckpt ../models/stable-diffusion/; fi
|
if [ -e "sd-v1-4.ckpt" ]; then mv sd-v1-4.ckpt ../models/stable-diffusion/; fi
|
||||||
if [ -e "custom-model.ckpt" ]; then mv custom-model.ckpt ../models/stable-diffusion/; fi
|
if [ -e "custom-model.ckpt" ]; then mv custom-model.ckpt ../models/stable-diffusion/; fi
|
||||||
@ -131,11 +136,6 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p "../models/stable-diffusion"
|
|
||||||
mkdir -p "../models/gfpgan"
|
|
||||||
mkdir -p "../models/realesrgan"
|
|
||||||
mkdir -p "../models/vae"
|
|
||||||
|
|
||||||
if [ -f "../models/stable-diffusion/sd-v1-4.ckpt" ]; then
|
if [ -f "../models/stable-diffusion/sd-v1-4.ckpt" ]; then
|
||||||
model_size=`find "../models/stable-diffusion/sd-v1-4.ckpt" -printf "%s"`
|
model_size=`find "../models/stable-diffusion/sd-v1-4.ckpt" -printf "%s"`
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user