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
1cc36d17
Commit
1cc36d17
authored
Oct 04, 2022
by
Milly
Committed by
AUTOMATIC1111
Oct 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added job_timestamp to Processed
So `[job_timestamp]` pattern can use in saving image UI.
parent
070b7d60
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
images.py
modules/images.py
+1
-1
processing.py
modules/processing.py
+2
-0
No files found.
modules/images.py
View file @
1cc36d17
...
@@ -298,7 +298,7 @@ def apply_filename_pattern(x, p, seed, prompt):
...
@@ -298,7 +298,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]"
,
datetime
.
datetime
.
now
()
.
strftime
(
"
%
Y
%
m
%
d
%
H
%
M
%
S"
))
x
=
x
.
replace
(
"[datetime]"
,
datetime
.
datetime
.
now
()
.
strftime
(
"
%
Y
%
m
%
d
%
H
%
M
%
S"
))
x
=
x
.
replace
(
"[job_timestamp]"
,
shared
.
state
.
job_timestamp
)
x
=
x
.
replace
(
"[job_timestamp]"
,
getattr
(
p
,
"job_timestamp"
,
shared
.
state
.
job_timestamp
)
)
# Apply [prompt] at last. Because it may contain any replacement word.^M
# Apply [prompt] at last. Because it may contain any replacement word.^M
if
prompt
is
not
None
:
if
prompt
is
not
None
:
...
...
modules/processing.py
View file @
1cc36d17
...
@@ -122,6 +122,7 @@ class Processed:
...
@@ -122,6 +122,7 @@ class Processed:
self
.
extra_generation_params
=
p
.
extra_generation_params
self
.
extra_generation_params
=
p
.
extra_generation_params
self
.
index_of_first_image
=
index_of_first_image
self
.
index_of_first_image
=
index_of_first_image
self
.
styles
=
p
.
styles
self
.
styles
=
p
.
styles
self
.
job_timestamp
=
state
.
job_timestamp
self
.
eta
=
p
.
eta
self
.
eta
=
p
.
eta
self
.
ddim_discretize
=
p
.
ddim_discretize
self
.
ddim_discretize
=
p
.
ddim_discretize
...
@@ -167,6 +168,7 @@ class Processed:
...
@@ -167,6 +168,7 @@ class Processed:
"index_of_first_image"
:
self
.
index_of_first_image
,
"index_of_first_image"
:
self
.
index_of_first_image
,
"infotexts"
:
self
.
infotexts
,
"infotexts"
:
self
.
infotexts
,
"styles"
:
self
.
styles
,
"styles"
:
self
.
styles
,
"job_timestamp"
:
self
.
job_timestamp
,
}
}
return
json
.
dumps
(
obj
)
return
json
.
dumps
(
obj
)
...
...
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