Fix accelerate check when spaces in path

This commit is contained in:
d8ahazard 2022-11-10 09:39:43 -06:00
parent 0a54bd3395
commit ac6fd2a5d9
1 changed files with 3 additions and 4 deletions

View File

@ -35,8 +35,8 @@ goto :launch
:accelerate
echo "Checking for accelerate"
dir %VENV_DIR%\Scripts\accelerate.exe >tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :accelerate_launch
set ACCELERATE="%~dp0%VENV_DIR%\Scripts\accelerate.exe"
if EXIST %ACCELERATE% goto :accelerate_launch
:launch
%PYTHON% launch.py %*
@ -44,8 +44,7 @@ pause
exit /b
:accelerate_launch
echo "Accelerating2"
set ACCELERATE="%~dp0%VENV_DIR%\Scripts\accelerate.exe"
echo "Accelerating"
%ACCELERATE% launch --num_cpu_threads_per_process=6 launch.py
pause
exit /b