Skip to content

Command Line Arguments

GChristensen edited this page Jun 13, 2023 · 17 revisions

The following command line arguments are available:

Argument Description
--device The GPU device to use. cuda:0 by default
--t5-on-gpu Run T5 encoder on GPU. Off by default.
--t5-dtype The data type used by T5 encoder. bfloat16 by default.
--skip-update Turn off auto update.
--remote-access Enable remote access to the Jupyter Lab server. Off by default.
--port TCP port used by the Jupyter Lab server.
--no-browser Do not open the browser window on the application start.
--output-dir Path to the directory with generated images.

To override the default startup options, create a file named user.xsh at the application directory. It may contain user command line arguments in the following format:

$USER_ARGS="--no-browser --skip-update --remote-access --port 8889"

Clone this wiki locally