diff --git a/exe/onnx-web-full.bat b/exe/onnx-web-full.bat index 68029f47..46d29127 100644 --- a/exe/onnx-web-full.bat +++ b/exe/onnx-web-full.bat @@ -1,8 +1,13 @@ +REM paths required to make the bundle work set ONNX_WEB_BASE_PATH=%~dp0 set ONNX_WEB_BUNDLE_PATH=%ONNX_WEB_BASE_PATH%\client set ONNX_WEB_MODEL_PATH=%ONNX_WEB_BASE_PATH%\models -set ONNX_WEB_EXTRA_MODELS=%ONNX_WEB_BASE_PATH%\models\onnx-web-extras.json set ONNX_WEB_OUTPUT_PATH=%ONNX_WEB_BASE_PATH%\outputs -@echo Launching onnx-web in full-precision mode... +REM customize these as needed +set ONNX_WEB_CACHE_MODELS=0 +set ONNX_WEB_EXTRA_MODELS=%ONNX_WEB_BASE_PATH%\models\onnx-web-extras.json + +REM convert models and launch the server +@echo Launching onnx-web in fp32 mode... server\onnx-web.exe --diffusion --correction --upscaling \ No newline at end of file diff --git a/exe/onnx-web-half.bat b/exe/onnx-web-half.bat index 4000d3bf..9a966a87 100644 --- a/exe/onnx-web-half.bat +++ b/exe/onnx-web-half.bat @@ -1,10 +1,14 @@ +REM paths required to make the bundle work set ONNX_WEB_BASE_PATH=%~dp0 set ONNX_WEB_BUNDLE_PATH=%ONNX_WEB_BASE_PATH%\client set ONNX_WEB_MODEL_PATH=%ONNX_WEB_BASE_PATH%\models -set ONNX_WEB_EXTRA_MODELS=%ONNX_WEB_BASE_PATH%\models\onnx-web-extras.json set ONNX_WEB_OUTPUT_PATH=%ONNX_WEB_BASE_PATH%\outputs +REM customize these as needed set ONNX_WEB_BLOCK_PLATFORMS=cpu +set ONNX_WEB_CACHE_MODELS=0 +set ONNX_WEB_EXTRA_MODELS=%ONNX_WEB_BASE_PATH%\models\onnx-web-extras.json -@echo Launching onnx-web in half-precision mode... +REM convert models and launch the server +@echo Launching onnx-web in fp16 mode... server\onnx-web.exe --diffusion --correction --upscaling --half \ No newline at end of file