File size: 373 Bytes
9d6c005 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | @echo off
setlocal
cd /d "%~dp0"
if exist .venv\Scripts\python.exe goto ready
python -m venv .venv
if errorlevel 1 exit /b 1
.venv\Scripts\python.exe -m pip install -r requirements.txt
if errorlevel 1 exit /b 1
:ready
set OPENBLAS_NUM_THREADS=2
set OMP_NUM_THREADS=2
.venv\Scripts\python.exe scripts\demo.py
if errorlevel 1 exit /b 1
start "" demo_output\demo.png
endlocal
|