-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(exe): set default model cache to 0 for Windows bundle
- Loading branch information
Showing
2 changed files
with
13 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |