mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-05 16:51:21 -08:00
add option
This commit is contained in:
parent
0bc7867ccd
commit
6b3f7039b6
2 changed files with 4 additions and 1 deletions
|
|
@ -279,7 +279,9 @@ class FrozenCLIPEmbedderWithCustomWordsBase(torch.nn.Module):
|
|||
original_mean = z.mean()
|
||||
z = z * batch_multipliers.reshape(batch_multipliers.shape + (1,)).expand(z.shape)
|
||||
new_mean = z.mean()
|
||||
z = z * (original_mean / new_mean)
|
||||
|
||||
if not getattr(opts, "disable_normalize_embeddings", False):
|
||||
z = z * (original_mean / new_mean)
|
||||
|
||||
if pooled is not None:
|
||||
z.pooled = pooled
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue