diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2024-02-11 06:39:51 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2024-02-11 06:39:51 +0000 |
commit | e2b19900ec37ef517d8175a7d86c1925ca9f9e91 (patch) | |
tree | 6fac89794a1a953e42f782c3649b4826dda2332f /modules/sd_hijack_clip_old.py | |
parent | 3732cf2f97be873f17b735221cca177f056bd478 (diff) | |
download | stable-diffusion-webui-gfx803-e2b19900ec37ef517d8175a7d86c1925ca9f9e91.tar.gz stable-diffusion-webui-gfx803-e2b19900ec37ef517d8175a7d86c1925ca9f9e91.tar.bz2 stable-diffusion-webui-gfx803-e2b19900ec37ef517d8175a7d86c1925ca9f9e91.zip |
add infotext entry for emphasis; put emphasis into a separate file, add an option to parse but still ignore emphasis
Diffstat (limited to 'modules/sd_hijack_clip_old.py')
-rw-r--r-- | modules/sd_hijack_clip_old.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sd_hijack_clip_old.py b/modules/sd_hijack_clip_old.py index c5c6270b..43e9b952 100644 --- a/modules/sd_hijack_clip_old.py +++ b/modules/sd_hijack_clip_old.py @@ -32,7 +32,7 @@ def process_text_old(self: sd_hijack_clip.FrozenCLIPEmbedderWithCustomWordsBase, embedding, embedding_length_in_tokens = self.hijack.embedding_db.find_embedding_at_position(tokens, i)
- mult_change = self.token_mults.get(token) if shared.opts.enable_emphasis else None
+ mult_change = self.token_mults.get(token) if shared.opts.emphasis != "None" else None
if mult_change is not None:
mult *= mult_change
i += 1
|