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
1cc36d17
Commit
1cc36d17
authored
Oct 05, 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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
modules/images.py
modules/images.py
+1
-1
modules/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):
x
=
x
.
replace
(
"[model_hash]"
,
shared
.
sd_model
.
sd_model_hash
)
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
(
"[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
if
prompt
is
not
None
:
...
...
modules/processing.py
View file @
1cc36d17
...
...
@@ -122,6 +122,7 @@ class Processed:
self
.
extra_generation_params
=
p
.
extra_generation_params
self
.
index_of_first_image
=
index_of_first_image
self
.
styles
=
p
.
styles
self
.
job_timestamp
=
state
.
job_timestamp
self
.
eta
=
p
.
eta
self
.
ddim_discretize
=
p
.
ddim_discretize
...
...
@@ -167,6 +168,7 @@ class Processed:
"index_of_first_image"
:
self
.
index_of_first_image
,
"infotexts"
:
self
.
infotexts
,
"styles"
:
self
.
styles
,
"job_timestamp"
:
self
.
job_timestamp
,
}
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