| @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 | |