mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-02-20 06:43:57 +00:00
Update forge_clip.py
This commit is contained in:
@@ -6,7 +6,12 @@ class CLIP_SD_15_L(FrozenCLIPEmbedderWithCustomWords):
|
||||
|
||||
|
||||
class CLIP_SD_21_G(FrozenCLIPEmbedderWithCustomWords):
|
||||
pass
|
||||
def __init__(self, wrapped, hijack):
|
||||
super().__init__(wrapped, hijack)
|
||||
|
||||
if self.wrapped.layer == "penultimate":
|
||||
self.wrapped.layer = "hidden"
|
||||
self.wrapped.layer_idx = -2
|
||||
|
||||
|
||||
class CLIP_SD_XL_L(FrozenCLIPEmbedderWithCustomWords):
|
||||
|
||||
Reference in New Issue
Block a user