Adding CLI option --output-dir#14442
Adding CLI option --output-dir#14442canoalberto wants to merge 2 commits intoAUTOMATIC1111:devfrom canoalberto:dev
Conversation
|
if you're going to change the defaut save path you might as well base it off if you want a quick way of changing the same directory for all images then you can set out of curiosity in what situation would cause "base path is not writable for the user" |
|
Use case: a single, shared, pre-configured installation of stable-diffusion-webui in a read-only directory (e.g. /opt/stable-diffusion-webui) to be used by multiple end users (e.g. in an open ondemand environment where each user is running their own stable-diffusion-webui on a different port (it works!)). Issue: There are hardcoded "outputs" and "log" folders in modules/shared_options.py Fix: allow the CLI to specify an output directory (e.g. --output-dir=$HOME/stable-diffusion-webui-outputs) |
|
are you saying that in your use case each user has their own separate if this is the case that I'm not sure if cli arg suitable, I feel like cli args should have an effect even after the config is saved I still think it makes more sense to just base the default output dir on I'm pretty sure that you're already using |
|
I am already using If the issue is adding an "unnecessary" extra parameter to the CLI then the fix (to the hardcoded outputs/log folder) is even simpler if in modules/shared_options.py references to The point is not to have hardcoded |
|
the main issue that I have with I'm not against adding a new it's possible to make # modules\paths_internal.py
default_output_dir = os.path.join(data_path, "output")
# modules\shared_options.py
"outdir_txt2img_samples": OptionInfo(os.path.join(default_output_dir, 'txt2img-images'), 'Output directory for txt2img images', component_args=hide_dirs),
"outdir_save": OptionInfo(os.path.join(data_path, 'log', 'images'), "Directory for saving images using the Save button", component_args=hide_dirs),this makes it so that the default save paths is instead based off the |
Description
Adding CLI option --output-dir to the cmd_args.
Useful when the base path is not writable for the user (thus cannot create/write default "outputs" folder)
Use case: shared installation by multiple users
Screenshots/videos:
NA (only CLI change)
Checklist: