Skip to content

Commit

Permalink
feat(exe): include pre-converted models in bundle launch scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Dec 23, 2023
1 parent b2740d3 commit c85b608
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions exe/onnx-web-full.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ set ONNX_WEB_OUTPUT_PATH=%ONNX_WEB_BASE_PATH%\outputs

REM customize these as needed
set ONNX_WEB_CACHE_MODELS=0
set ONNX_WEB_EXTRA_MODELS=%ONNX_WEB_MODEL_PATH%\extras.json
set ONNX_WEB_EXTRA_MODELS=%ONNX_WEB_MODEL_PATH%\preconverted-fp32.json,%ONNX_WEB_MODEL_PATH%\extras.json

REM convert models and launch the server
@echo Launching onnx-web in fp32 mode...
server\onnx-web.exe --diffusion --correction --upscaling
server\onnx-web.exe --base=false --diffusion --correction --upscaling
4 changes: 2 additions & 2 deletions exe/onnx-web-half.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ 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_MODEL_PATH%\extras.json
set ONNX_WEB_EXTRA_MODELS=%ONNX_WEB_MODEL_PATH%\preconverted-fp16.json,%ONNX_WEB_MODEL_PATH%\extras.json

REM convert models and launch the server
@echo Launching onnx-web in fp16 mode...
server\onnx-web.exe --diffusion --correction --upscaling --half
server\onnx-web.exe --base=false --diffusion --correction --upscaling --half

0 comments on commit c85b608

Please sign in to comment.