mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-08-09 15:55:01 +02:00
disable the legacy src and ldm folder (otherwise this prevents installing gfpgan and realesrgan)
This commit is contained in:
@ -39,6 +39,10 @@ if [ -e "env" ]; then
|
||||
conda activate ./env || fail "conda activate failed"
|
||||
fi
|
||||
|
||||
# disable the legacy src and ldm folder (otherwise this prevents installing gfpgan and realesrgan)
|
||||
if [ -e "src" ]; then mv src src-old; fi
|
||||
if [ -e "ldm" ]; then mv ldm ldm-old; fi
|
||||
|
||||
# install torch and torchvision
|
||||
if python ../scripts/check_modules.py torch torchvision; then
|
||||
echo "torch and torchvision have already been installed."
|
||||
@ -255,10 +259,6 @@ cd ..
|
||||
export SD_UI_PATH=`pwd`/ui
|
||||
cd stable-diffusion
|
||||
|
||||
# disable the legacy src and ldm folder
|
||||
if [ -e "src" ]; then mv src src-old; fi
|
||||
if [ -e "ldm" ]; then mv ldm ldm-old; fi
|
||||
|
||||
uvicorn server:server_api --app-dir "$SD_UI_PATH" --port ${SD_UI_BIND_PORT:-9000} --host ${SD_UI_BIND_IP:-0.0.0.0} --log-level error
|
||||
|
||||
read -p "Press any key to continue"
|
||||
|
Reference in New Issue
Block a user