mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-03-07 14:09:47 +00:00
Update sd_hijack_clip.py
This commit is contained in:
@@ -279,7 +279,7 @@ 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()
|
||||
|
||||
|
||||
if not getattr(opts, "disable_normalize_embeddings", False):
|
||||
z = z * (original_mean / new_mean)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user