2.3 KiB
2.3 KiB
Setup Guide
This guide covers the setup process for onnx-web, including downloading the Windows bundle.
Contents
Windows all-in-one bundle
- Download the latest ZIP file from TODO
- Find the ZIP file and
Extract All
to a memorable folder - Open the folder where you extracted the files
- You can add models to the
models
folder - Your images will be in the
outputs
folder, along with files containing the parameters used to generate them
- You can add models to the
- Run the local server using one of the
onnx-web-*.bat
scripts- Run
onnx-web-half.bat
if you are using a GPU and you have < 12GB of VRAM-half
mode is compatible with both AMD and Nvidia GPUs-half
mode is not compatible with CPU mode
- Run
onnx-web-full.bat
if you are using CPU mode or if you have >= 16GB of VRAM- Try the
onnx-web-half.bat
script if you encounter out-of-memory errors or generating images is very slow
- Try the
- Run
- Wait for the models to be downloaded and converted
- Most models are distributed in PyTorch format and need to be converted into ONNX format
- This only happens once for each model and takes a few minutes
- Open one of the URLs shown in the logs in your browser
- This will typically be http://127.0.0.1:5000?api=http://127.0.0.1:5000
- If you running the server on a different PC and not accessing it from a browser on the same system, use that PC's IP address instead of 127.0.0.1
- Any modern browser should work, including Chrome, Edge, and Firefox
- Mobile browsers also work, but have stricter mixed-content policies
Windows Python installer
- Install Git
- Install Python 3.10
- Open command prompt
- Run one of the
setup-*.bat
scripts- Run
setup-amd.bat
if you are using an AMD GPU and DirectML - Run
setup-nvidia.bat
if you are using an Nvidia GPU and CUDA - Run
setup-cpu.bat
if you are planning on only using CPU mode
- Run
- In the future, run
launch.bat
- You should only need to run the setup script once
- If you encounter any errors with Python imports, run the setup script again
Windows Store Python
TODO