@echo off
set PYTHONUTF8=1
cd /d "%~dp0"
if exist .venv\Scripts\activate.bat (
call .venv\Scripts\activate.bat
) else (
echo Installing dependencies into current Python...
python -m pip install -r requirements.txt
if errorlevel 1 exit /b 1
)
echo.
echo Running export_onnx.py...
python export_onnx.py
if errorlevel 1 exit /b 1
echo.
echo Running quantize.py...
python quantize.py
if errorlevel 1 exit /b 1
echo Done.