Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
b39f06ce
Commit
b39f06ce
authored
Sep 26, 2022
by
tateisu
Committed by
AUTOMATIC1111
Sep 26, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add [datetime] to image file name pattern
parent
e61da308
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
images.py
modules/images.py
+1
-0
No files found.
modules/images.py
View file @
b39f06ce
...
@@ -295,6 +295,7 @@ def apply_filename_pattern(x, p, seed, prompt):
...
@@ -295,6 +295,7 @@ def apply_filename_pattern(x, p, seed, prompt):
x
=
x
.
replace
(
"[model_hash]"
,
shared
.
sd_model
.
sd_model_hash
)
x
=
x
.
replace
(
"[model_hash]"
,
shared
.
sd_model
.
sd_model_hash
)
x
=
x
.
replace
(
"[date]"
,
datetime
.
date
.
today
()
.
isoformat
())
x
=
x
.
replace
(
"[date]"
,
datetime
.
date
.
today
()
.
isoformat
())
x
=
x
.
replace
(
"[datetime]"
,
re
.
sub
(
r'(\.\d+|\D+)'
,
""
,
datetime
.
datetime
.
now
()
.
isoformat
()))
x
=
x
.
replace
(
"[job_timestamp]"
,
shared
.
state
.
job_timestamp
)
x
=
x
.
replace
(
"[job_timestamp]"
,
shared
.
state
.
job_timestamp
)
if
cmd_opts
.
hide_ui_dir_config
:
if
cmd_opts
.
hide_ui_dir_config
:
...
...
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