stable-diffusion-webui
stable-diffusion-webui copied to clipboard
command line argument for set the output directory
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
- use a new command line argument to set the default output directory
--output-dir <location>
- if location exists, continue, else fail and quick
Additional information
No response
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
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.