mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-04-30 19:21:39 +00:00
Merge branch 'main' of github.com:ostris/ai-toolkit
This commit is contained in:
@@ -31,7 +31,7 @@ class TEAdapterCaptionProjection(nn.Module):
|
|||||||
in_features = caption_channels
|
in_features = caption_channels
|
||||||
self.adapter_ref: weakref.ref = weakref.ref(adapter)
|
self.adapter_ref: weakref.ref = weakref.ref(adapter)
|
||||||
sd = adapter.sd_ref()
|
sd = adapter.sd_ref()
|
||||||
self.parent_module_ref = weakref.ref(sd.transformer.caption_projection)
|
self.parent_module_ref = weakref.ref(sd.unet.caption_projection)
|
||||||
parent_module = self.parent_module_ref()
|
parent_module = self.parent_module_ref()
|
||||||
self.linear_1 = nn.Linear(
|
self.linear_1 = nn.Linear(
|
||||||
in_features=in_features,
|
in_features=in_features,
|
||||||
|
|||||||
Reference in New Issue
Block a user