mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-03 17:35:04 -05:00
Add unit test to test the full flow of loading an InstantX ControlNet from a state dict.
This commit is contained in:
@@ -89,11 +89,11 @@ class DiffusersControlNetFlux(torch.nn.Module):
|
||||
# The following modules are specific to the ControlNet model.
|
||||
# -----------------------------------------------------------
|
||||
self.controlnet_blocks = nn.ModuleList([])
|
||||
for _ in range(len(self.transformer_blocks)):
|
||||
for _ in range(len(self.double_blocks)):
|
||||
self.controlnet_blocks.append(zero_module(nn.Linear(self.hidden_size, self.hidden_size)))
|
||||
|
||||
self.controlnet_single_blocks = nn.ModuleList([])
|
||||
for _ in range(len(self.single_transformer_blocks)):
|
||||
for _ in range(len(self.single_blocks)):
|
||||
self.controlnet_single_blocks.append(zero_module(nn.Linear(self.hidden_size, self.hidden_size)))
|
||||
|
||||
self.is_union = False
|
||||
|
||||
Reference in New Issue
Block a user