mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-22 16:23:28 +01:00
Merge branch 'beta' of github.com:cmdr2/stable-diffusion-ui into beta
This commit is contained in:
commit
0f0f475241
@ -194,7 +194,8 @@ call WHERE uvicorn > .tmp
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@if not exist "..\models\stable-diffusion\sd-v1-4.ckpt" (
|
@if not exist "..\models\stable-diffusion\*.ckpt" (
|
||||||
|
@if not exist "..\models\stable-diffusion\*.safetensors" (
|
||||||
@echo. & echo "Downloading data files (weights) for Stable Diffusion.." & echo.
|
@echo. & echo "Downloading data files (weights) for Stable Diffusion.." & echo.
|
||||||
|
|
||||||
@call curl -L -k https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt > ..\models\stable-diffusion\sd-v1-4.ckpt
|
@call curl -L -k https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt > ..\models\stable-diffusion\sd-v1-4.ckpt
|
||||||
@ -212,6 +213,7 @@ call WHERE uvicorn > .tmp
|
|||||||
exit /b
|
exit /b
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -162,8 +162,11 @@ if [ -f "../models/stable-diffusion/sd-v1-4.ckpt" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f "../models/stable-diffusion/sd-v1-4.ckpt" ]; then
|
|
||||||
echo "Downloading data files (weights) for Stable Diffusion.."
|
if find "../models/stable-diffusion/" -name "*.ckpt" -or -name "*.safetensors" > /dev/null; then
|
||||||
|
echo "Found existing model file(s)."
|
||||||
|
else
|
||||||
|
echo "Downloading data files (weights) for Stable Diffusion..."
|
||||||
|
|
||||||
curl -L -k https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt > ../models/stable-diffusion/sd-v1-4.ckpt
|
curl -L -k https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt > ../models/stable-diffusion/sd-v1-4.ckpt
|
||||||
|
|
||||||
|
@ -245,6 +245,7 @@ def getModels():
|
|||||||
except MaliciousModelException as e:
|
except MaliciousModelException as e:
|
||||||
models["scan-error"] = e
|
models["scan-error"] = e
|
||||||
|
|
||||||
|
log.info(f"[green]Scanning all model folders for models...[/]")
|
||||||
# custom models
|
# custom models
|
||||||
listModels(model_type="stable-diffusion")
|
listModels(model_type="stable-diffusion")
|
||||||
listModels(model_type="vae")
|
listModels(model_type="vae")
|
||||||
|
Loading…
Reference in New Issue
Block a user