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
a213d3a2
Commit
a213d3a2
authored
Sep 22, 2022
by
Johan Aires Rastén
Committed by
AUTOMATIC1111
Sep 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add option to always log generation info
parent
34d5a31e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
img2img.py
modules/img2img.py
+5
-1
shared.py
modules/shared.py
+1
-0
txt2img.py
modules/txt2img.py
+5
-1
No files found.
modules/img2img.py
View file @
a213d3a2
...
@@ -118,4 +118,8 @@ def img2img(mode: int, prompt: str, negative_prompt: str, prompt_style: str, pro
...
@@ -118,4 +118,8 @@ def img2img(mode: int, prompt: str, negative_prompt: str, prompt_style: str, pro
shared
.
total_tqdm
.
clear
()
shared
.
total_tqdm
.
clear
()
return
processed
.
images
,
processed
.
js
(),
plaintext_to_html
(
processed
.
info
)
generation_info_js
=
processed
.
js
()
if
opts
.
samples_log_stdout
:
print
(
generation_info_js
)
return
processed
.
images
,
generation_info_js
,
plaintext_to_html
(
processed
.
info
)
\ No newline at end of file
modules/shared.py
View file @
a213d3a2
...
@@ -125,6 +125,7 @@ class Options:
...
@@ -125,6 +125,7 @@ class Options:
"outdir_img2img_grids"
:
OptionInfo
(
"outputs/img2img-grids"
,
'Output directory for img2img grids'
,
component_args
=
hide_dirs
),
"outdir_img2img_grids"
:
OptionInfo
(
"outputs/img2img-grids"
,
'Output directory for img2img grids'
,
component_args
=
hide_dirs
),
"outdir_save"
:
OptionInfo
(
"log/images"
,
"Directory for saving images using the Save button"
,
component_args
=
hide_dirs
),
"outdir_save"
:
OptionInfo
(
"log/images"
,
"Directory for saving images using the Save button"
,
component_args
=
hide_dirs
),
"samples_save"
:
OptionInfo
(
True
,
"Always save all generated images"
),
"samples_save"
:
OptionInfo
(
True
,
"Always save all generated images"
),
"samples_log_stdout"
:
OptionInfo
(
False
,
"Always print all generation info to standard output"
),
"save_selected_only"
:
OptionInfo
(
False
,
"When using 'Save' button, only save a single selected image"
),
"save_selected_only"
:
OptionInfo
(
False
,
"When using 'Save' button, only save a single selected image"
),
"samples_format"
:
OptionInfo
(
'png'
,
'File format for individual samples'
),
"samples_format"
:
OptionInfo
(
'png'
,
'File format for individual samples'
),
"filter_nsfw"
:
OptionInfo
(
False
,
"Filter NSFW content"
),
"filter_nsfw"
:
OptionInfo
(
False
,
"Filter NSFW content"
),
...
...
modules/txt2img.py
View file @
a213d3a2
...
@@ -44,5 +44,9 @@ def txt2img(prompt: str, negative_prompt: str, prompt_style: str, prompt_style2:
...
@@ -44,5 +44,9 @@ def txt2img(prompt: str, negative_prompt: str, prompt_style: str, prompt_style2:
shared
.
total_tqdm
.
clear
()
shared
.
total_tqdm
.
clear
()
return
processed
.
images
,
processed
.
js
(),
plaintext_to_html
(
processed
.
info
)
generation_info_js
=
processed
.
js
()
if
opts
.
samples_log_stdout
:
print
(
generation_info_js
)
return
processed
.
images
,
generation_info_js
,
plaintext_to_html
(
processed
.
info
)
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