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
0aa8d538
Commit
0aa8d538
authored
Jul 15, 2023
by
AUTOMATIC1111
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
suppress printing TI embedding into console by default
parent
510e5fc8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
modules/shared.py
modules/shared.py
+1
-0
modules/textual_inversion/textual_inversion.py
modules/textual_inversion/textual_inversion.py
+1
-1
No files found.
modules/shared.py
View file @
0aa8d538
...
...
@@ -472,6 +472,7 @@ options_templates.update(options_section(('extra_networks', "Extra Networks"), {
"extra_networks_card_height"
:
OptionInfo
(
0
,
"Card height for Extra Networks"
)
.
info
(
"in pixels"
),
"extra_networks_add_text_separator"
:
OptionInfo
(
" "
,
"Extra networks separator"
)
.
info
(
"extra text to add before <...> when adding extra network to prompt"
),
"ui_extra_networks_tab_reorder"
:
OptionInfo
(
""
,
"Extra networks tab order"
)
.
needs_restart
(),
"textual_inversion_print_at_load"
:
OptionInfo
(
False
,
"Print a list of Textual Inversion embeddings when loading model"
),
"textual_inversion_add_hashes_to_infotext"
:
OptionInfo
(
True
,
"Add Textual Inversion hashes to infotext"
),
"sd_hypernetwork"
:
OptionInfo
(
"None"
,
"Add hypernetwork to prompt"
,
gr
.
Dropdown
,
lambda
:
{
"choices"
:
[
"None"
,
*
hypernetworks
]},
refresh
=
reload_hypernetworks
),
}))
...
...
modules/textual_inversion/textual_inversion.py
View file @
0aa8d538
...
...
@@ -256,7 +256,7 @@ class EmbeddingDatabase:
self
.
word_embeddings
.
update
(
sorted_word_embeddings
)
displayed_embeddings
=
(
tuple
(
self
.
word_embeddings
.
keys
()),
tuple
(
self
.
skipped_embeddings
.
keys
()))
if
self
.
previously_displayed_embeddings
!=
displayed_embeddings
:
if
s
hared
.
opts
.
textual_inversion_print_at_load
and
s
elf
.
previously_displayed_embeddings
!=
displayed_embeddings
:
self
.
previously_displayed_embeddings
=
displayed_embeddings
print
(
f
"Textual inversion embeddings loaded({len(self.word_embeddings)}): {', '.join(self.word_embeddings.keys())}"
)
if
self
.
skipped_embeddings
:
...
...
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