diff --git a/scripts/on_sd_start.bat b/scripts/on_sd_start.bat index bee3b0db..bff4c4fd 100644 --- a/scripts/on_sd_start.bat +++ b/scripts/on_sd_start.bat @@ -71,7 +71,8 @@ echo PYTHONPATH=%PYTHONPATH% call where python call python --version -call python -m pip install -q torchruntime +@rem this is outside check_modules.py to ensure that the required version of torchruntime is present +call python -m pip install -q torchruntime>=1.15.1 call python scripts\check_modules.py --launch-uvicorn pause diff --git a/scripts/on_sd_start.sh b/scripts/on_sd_start.sh index 0e9f1a08..ef44f93f 100755 --- a/scripts/on_sd_start.sh +++ b/scripts/on_sd_start.sh @@ -50,7 +50,8 @@ fi if [ -e "src" ]; then mv src src-old; fi if [ -e "ldm" ]; then mv ldm ldm-old; fi -python -m pip install -q torchruntime +# this is outside check_modules.py to ensure that the required version of torchruntime is present +python -m pip install -q torchruntime>=1.15.1 cd .. # Download the required packages