Update on_sd_start.sh

This commit is contained in:
Emrul 2025-03-11 10:43:02 +00:00 committed by GitHub
parent 5b5e312336
commit d49306df57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -63,5 +63,6 @@ else
python scripts/check_modules.py
# Download the models
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PYTHONPATH="$script_dir/../ui" python -c "from easydiffusion.model_manager import init; init()"
ui_absolute_path=$(readlink -f "$script_dir/../ui")
PYTHONPATH="$ui_absolute_path" SD_UI_DIR="$ui_absolute_path" python -c "from easydiffusion.model_manager import init; init()"
fi