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
340fce21
Commit
340fce21
authored
Sep 07, 2023
by
w-e-w
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable console prompts in settings
parent
d39440bf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
modules/img2img.py
modules/img2img.py
+1
-1
modules/shared_options.py
modules/shared_options.py
+1
-0
modules/txt2img.py
modules/txt2img.py
+1
-1
No files found.
modules/img2img.py
View file @
340fce21
...
...
@@ -199,7 +199,7 @@ def img2img(id_task: str, mode: int, prompt: str, negative_prompt: str, prompt_s
p
.
user
=
request
.
username
if
shared
.
cmd_opts
.
enable_console_prompts
:
if
shared
.
opts
.
enable_console_prompts
or
shared
.
cmd_opts
.
enable_console_prompts
:
print
(
f
"
\n
img2img: {prompt}"
,
file
=
shared
.
progress_print_out
)
if
mask
:
...
...
modules/shared_options.py
View file @
340fce21
...
...
@@ -100,6 +100,7 @@ options_templates.update(options_section(('face-restoration', "Face restoration"
options_templates
.
update
(
options_section
((
'system'
,
"System"
),
{
"auto_launch_browser"
:
OptionInfo
(
"Local"
,
"Automatically open webui in browser on startup"
,
gr
.
Radio
,
lambda
:
{
"choices"
:
[
"Disable"
,
"Local"
,
"Remote"
]}),
"enable_console_prompts"
:
OptionInfo
(
False
,
"Print prompts to console when generating with txt2img and img2img."
),
"show_warnings"
:
OptionInfo
(
False
,
"Show warnings in console."
)
.
needs_reload_ui
(),
"show_gradio_deprecation_warnings"
:
OptionInfo
(
True
,
"Show gradio deprecation warnings in console."
)
.
needs_reload_ui
(),
"memmon_poll_rate"
:
OptionInfo
(
8
,
"VRAM usage polls per second during generation."
,
gr
.
Slider
,
{
"minimum"
:
0
,
"maximum"
:
40
,
"step"
:
1
})
.
info
(
"0 = disable"
),
...
...
modules/txt2img.py
View file @
340fce21
...
...
@@ -45,7 +45,7 @@ def txt2img(id_task: str, prompt: str, negative_prompt: str, prompt_styles, step
p
.
user
=
request
.
username
if
cmd_opts
.
enable_console_prompts
:
if
shared
.
opts
.
enable_console_prompts
or
cmd_opts
.
enable_console_prompts
:
print
(
f
"
\n
txt2img: {prompt}"
,
file
=
shared
.
progress_print_out
)
with
closing
(
p
):
...
...
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