aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sd_hijack_clip.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-07-29 12:15:06 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2023-07-29 12:15:06 +0000
commit6f0abbb71a3f29d6df63fed82d5d5e196ca0d4de (patch)
treea0e78ef494964799b8e7bdd3347fd7047cdd0508 /modules/sd_hijack_clip.py
parent4ca9f70b592c219c93a25d7ede187284d625f1e6 (diff)
downloadstable-diffusion-webui-gfx803-6f0abbb71a3f29d6df63fed82d5d5e196ca0d4de.tar.gz
stable-diffusion-webui-gfx803-6f0abbb71a3f29d6df63fed82d5d5e196ca0d4de.tar.bz2
stable-diffusion-webui-gfx803-6f0abbb71a3f29d6df63fed82d5d5e196ca0d4de.zip
textual inversion support for SDXL
Diffstat (limited to 'modules/sd_hijack_clip.py')
-rw-r--r--modules/sd_hijack_clip.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sd_hijack_clip.py b/modules/sd_hijack_clip.py
index 16a5500e..2f9d569b 100644
--- a/modules/sd_hijack_clip.py
+++ b/modules/sd_hijack_clip.py
@@ -161,7 +161,7 @@ class FrozenCLIPEmbedderWithCustomWordsBase(torch.nn.Module):
position += 1
continue
- emb_len = int(embedding.vec.shape[0])
+ emb_len = int(embedding.vectors)
if len(chunk.tokens) + emb_len > self.chunk_length:
next_chunk()