Temporarily disable the check for whitelisted ckpt weights

This commit is contained in:
cmdr2 2022-09-26 19:40:52 +05:30
parent 1bcb6738bb
commit 300159c03b

View File

@ -165,16 +165,17 @@
@if exist "sd-v1-4.ckpt" ( @if exist "sd-v1-4.ckpt" (
for %%I in ("sd-v1-4.ckpt") do if "%%~zI" EQU "4265380512" ( 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 ( ) else (
for %%J in ("sd-v1-4.ckpt") do if "%%~zJ" EQU "7703807346" ( 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 ( ) else (
for %%K in ("sd-v1-4.ckpt") do if "%%~zK" EQU "7703810927" ( 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 ( ) 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. @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.
del "sd-v1-4.ckpt" @REM del "sd-v1-4.ckpt"
echo. & echo "It looks like you're using a custom weights file. File size: %%~zK bytes" & echo.
) )
) )
) )