stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

command line argument for set the output directory

Open sraney opened this issue 1 year ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What would your feature do ?

I would like to be able to have a command line argument for set the output directory. maybe something like:

--output-dir <location>

Proposed workflow

  1. use a new command line argument to set the default output directory --output-dir <location>
  2. if location exists, continue, else fail and quick

Additional information

No response

sraney avatar Dec 07 '23 20:12 sraney

There is already the command line argument: --ui-config-file You can dynamically create a new config.json file using the existing one and just modify the output fields before call the webui.py

$ cp config.json /tmp/new_config.json $ # modify new_config.json using sed command or python script $ webui.py --ui-config-file /tmp/new_config.json

Jibaku789 avatar Dec 16 '23 06:12 Jibaku789

this assumes you want to have a static UI config file and not one that changes with the user changing settings while working with the system. I guess we could just alter the default file on the fly with scripts before launching, but that seems a little off.

I would seriously suggest adding an command line option to allow redirecting of the default output home folder.

sraney avatar Feb 08 '24 20:02 sraney