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
1deac2b6
Commit
1deac2b6
authored
Sep 28, 2022
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do nor add log messages to saved iamge parameters
parent
d64b4516
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
img2img.py
modules/img2img.py
+1
-1
processing.py
modules/processing.py
+2
-2
No files found.
modules/img2img.py
View file @
1deac2b6
...
@@ -124,4 +124,4 @@ def img2img(mode: int, prompt: str, negative_prompt: str, prompt_style: str, pro
...
@@ -124,4 +124,4 @@ def img2img(mode: int, prompt: str, negative_prompt: str, prompt_style: str, pro
if
opts
.
samples_log_stdout
:
if
opts
.
samples_log_stdout
:
print
(
generation_info_js
)
print
(
generation_info_js
)
return
processed
.
images
,
generation_info_js
,
plaintext_to_html
(
processed
.
info
)
return
processed
.
images
,
generation_info_js
,
plaintext_to_html
(
processed
.
info
)
\ No newline at end of file
modules/processing.py
View file @
1deac2b6
...
@@ -280,7 +280,7 @@ def create_infotext(p, all_prompts, all_seeds, all_subseeds, comments, iteration
...
@@ -280,7 +280,7 @@ def create_infotext(p, all_prompts, all_seeds, all_subseeds, comments, iteration
negative_prompt_text
=
"
\n
Negative prompt: "
+
p
.
negative_prompt
if
p
.
negative_prompt
else
""
negative_prompt_text
=
"
\n
Negative prompt: "
+
p
.
negative_prompt
if
p
.
negative_prompt
else
""
return
f
"{all_prompts[index]}{negative_prompt_text}
\n
{generation_params_text}"
.
strip
()
+
""
.
join
([
"
\n\n
"
+
x
for
x
in
comments
])
return
f
"{all_prompts[index]}{negative_prompt_text}
\n
{generation_params_text}"
.
strip
()
def
process_images
(
p
:
StableDiffusionProcessing
)
->
Processed
:
def
process_images
(
p
:
StableDiffusionProcessing
)
->
Processed
:
...
@@ -429,7 +429,7 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
...
@@ -429,7 +429,7 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
images
.
save_image
(
grid
,
p
.
outpath_grids
,
"grid"
,
all_seeds
[
0
],
all_prompts
[
0
],
opts
.
grid_format
,
info
=
infotext
(),
short_filename
=
not
opts
.
grid_extended_filename
,
p
=
p
,
grid
=
True
)
images
.
save_image
(
grid
,
p
.
outpath_grids
,
"grid"
,
all_seeds
[
0
],
all_prompts
[
0
],
opts
.
grid_format
,
info
=
infotext
(),
short_filename
=
not
opts
.
grid_extended_filename
,
p
=
p
,
grid
=
True
)
devices
.
torch_gc
()
devices
.
torch_gc
()
return
Processed
(
p
,
output_images
,
all_seeds
[
0
],
infotext
(),
subseed
=
all_subseeds
[
0
],
all_prompts
=
all_prompts
,
all_seeds
=
all_seeds
,
all_subseeds
=
all_subseeds
,
index_of_first_image
=
index_of_first_image
,
infotexts
=
infotexts
)
return
Processed
(
p
,
output_images
,
all_seeds
[
0
],
infotext
()
+
""
.
join
([
"
\n\n
"
+
x
for
x
in
comments
])
,
subseed
=
all_subseeds
[
0
],
all_prompts
=
all_prompts
,
all_seeds
=
all_seeds
,
all_subseeds
=
all_subseeds
,
index_of_first_image
=
index_of_first_image
,
infotexts
=
infotexts
)
class
StableDiffusionProcessingTxt2Img
(
StableDiffusionProcessing
):
class
StableDiffusionProcessingTxt2Img
(
StableDiffusionProcessing
):
...
...
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