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
a8322ad7
Unverified
Commit
a8322ad7
authored
Jan 18, 2023
by
AUTOMATIC1111
Committed by
GitHub
Jan 18, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6854 from EllangoK/master
Saves Extra Generation Parameters to params.txt
parents
43fd6eaa
5e15a0b4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
processing.py
modules/processing.py
+4
-4
No files found.
modules/processing.py
View file @
a8322ad7
...
@@ -538,10 +538,6 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
...
@@ -538,10 +538,6 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
if
p
.
scripts
is
not
None
:
if
p
.
scripts
is
not
None
:
p
.
scripts
.
process
(
p
)
p
.
scripts
.
process
(
p
)
with
open
(
os
.
path
.
join
(
shared
.
script_path
,
"params.txt"
),
"w"
,
encoding
=
"utf8"
)
as
file
:
processed
=
Processed
(
p
,
[],
p
.
seed
,
""
)
file
.
write
(
processed
.
infotext
(
p
,
0
))
infotexts
=
[]
infotexts
=
[]
output_images
=
[]
output_images
=
[]
...
@@ -572,6 +568,10 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
...
@@ -572,6 +568,10 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
with
devices
.
autocast
():
with
devices
.
autocast
():
p
.
init
(
p
.
all_prompts
,
p
.
all_seeds
,
p
.
all_subseeds
)
p
.
init
(
p
.
all_prompts
,
p
.
all_seeds
,
p
.
all_subseeds
)
with
open
(
os
.
path
.
join
(
shared
.
script_path
,
"params.txt"
),
"w"
,
encoding
=
"utf8"
)
as
file
:
processed
=
Processed
(
p
,
[],
p
.
seed
,
""
)
file
.
write
(
processed
.
infotext
(
p
,
0
))
if
state
.
job_count
==
-
1
:
if
state
.
job_count
==
-
1
:
state
.
job_count
=
p
.
n_iter
state
.
job_count
=
p
.
n_iter
...
...
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