Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
91f327f2
Commit
91f327f2
authored
Oct 02, 2022
by
Lopyter
Committed by
AUTOMATIC1111
Oct 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make save to dirs optional for imgs saved from ui
parent
2ef69df9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
modules/shared.py
modules/shared.py
+1
-0
modules/ui.py
modules/ui.py
+1
-1
No files found.
modules/shared.py
View file @
91f327f2
...
...
@@ -173,6 +173,7 @@ options_templates.update(options_section(('saving-to-dirs', "Saving to a directo
"grid_save_to_dirs"
:
OptionInfo
(
False
,
"Save grids to subdirectory"
),
"directories_filename_pattern"
:
OptionInfo
(
""
,
"Directory name pattern"
),
"directories_max_prompt_words"
:
OptionInfo
(
8
,
"Max prompt words"
,
gr
.
Slider
,
{
"minimum"
:
1
,
"maximum"
:
20
,
"step"
:
1
}),
"use_save_to_dirs_for_ui"
:
OptionInfo
(
False
,
"Use
\"
Save images to a subdirectory
\"
option for images saved from UI"
),
}))
options_templates
.
update
(
options_section
((
'upscaling'
,
"Upscaling"
),
{
...
...
modules/ui.py
View file @
91f327f2
...
...
@@ -113,7 +113,7 @@ def save_files(js_data, images, index):
p
=
MyObject
(
data
)
path
=
opts
.
outdir_save
save_to_dirs
=
opts
.
save_to_dirs
save_to_dirs
=
opts
.
use_save_to_dirs_for_ui
if
save_to_dirs
:
dirname
=
apply_filename_pattern
(
opts
.
directories_filename_pattern
or
"[prompt_words]"
,
p
,
p
.
seed
,
p
.
prompt
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment