From 300159c03b85b4388d33c9055fcb89da959729ad Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Mon, 26 Sep 2022 19:40:52 +0530 Subject: [PATCH] Temporarily disable the check for whitelisted ckpt weights --- scripts/on_sd_start.bat | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/on_sd_start.bat b/scripts/on_sd_start.bat index 3b6d1648..7d633757 100644 --- a/scripts/on_sd_start.bat +++ b/scripts/on_sd_start.bat @@ -165,16 +165,17 @@ @if exist "sd-v1-4.ckpt" ( for %%I in ("sd-v1-4.ckpt") do if "%%~zI" EQU "4265380512" ( - echo "Data files (weights) necessary for Stable Diffusion were already downloaded" + echo "Data files (weights) necessary for Stable Diffusion were already downloaded. Using the HuggingFace 4 GB Model." ) else ( for %%J in ("sd-v1-4.ckpt") do if "%%~zJ" EQU "7703807346" ( - echo "Data files (weights) necessary for Stable Diffusion were already downloaded" + echo "Data files (weights) necessary for Stable Diffusion were already downloaded. Using the HuggingFace 7 GB Model." ) else ( for %%K in ("sd-v1-4.ckpt") do if "%%~zK" EQU "7703810927" ( - echo "Data files (weights) necessary for Stable Diffusion were already downloaded" + echo "Data files (weights) necessary for Stable Diffusion were already downloaded. Using the Waifu Model." ) else ( - echo. & echo "The model file present at %cd%\sd-v1-4.ckpt is invalid. It is only %%~zK bytes in size. Re-downloading.." & echo. - del "sd-v1-4.ckpt" + @REM echo. & echo "The model file present at %cd%\sd-v1-4.ckpt is invalid. It is only %%~zK bytes in size. Re-downloading.." & echo. + @REM del "sd-v1-4.ckpt" + echo. & echo "It looks like you're using a custom weights file. File size: %%~zK bytes" & echo. ) ) )