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
f71630ed
Commit
f71630ed
authored
Jul 16, 2023
by
AUTOMATIC1111
Committed by
GitHub
Jul 16, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11794 from MarcusAdams/none-filename-token
Added [none] filename token.
parents
89c3e17c
5d94088e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
modules/images.py
modules/images.py
+3
-2
No files found.
modules/images.py
View file @
f71630ed
...
...
@@ -380,6 +380,7 @@ class FilenameGenerator:
'denoising'
:
lambda
self
:
self
.
p
.
denoising_strength
if
self
.
p
and
self
.
p
.
denoising_strength
else
NOTHING_AND_SKIP_PREVIOUS_TEXT
,
'user'
:
lambda
self
:
self
.
p
.
user
,
'vae_filename'
:
lambda
self
:
self
.
get_vae_filename
(),
'none'
:
lambda
self
:
''
,
# Overrides the default so you can get just the sequence number
}
default_time_format
=
'
%
Y
%
m
%
d
%
H
%
M
%
S'
...
...
@@ -601,13 +602,13 @@ def save_image(image, path, basename, seed=None, prompt=None, extension='png', i
else
:
file_decoration
=
opts
.
samples_filename_pattern
or
"[seed]-[prompt_spaces]"
file_decoration
=
namegen
.
apply
(
file_decoration
)
+
suffix
add_number
=
opts
.
save_images_add_number
or
file_decoration
==
''
if
file_decoration
!=
""
and
add_number
:
file_decoration
=
f
"-{file_decoration}"
file_decoration
=
namegen
.
apply
(
file_decoration
)
+
suffix
if
add_number
:
basecount
=
get_next_sequence_number
(
path
,
basename
)
fullfn
=
None
...
...
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