MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / __init__

Method __init__

diffsynth/models/sdxl_ipadapter.py:32–35  ·  view source on GitHub ↗
(self, input_dim, output_dim)

Source from the content-addressed store, hash-verified

30
31class IpAdapterModule(torch.nn.Module):
32 def __init__(self, input_dim, output_dim):
33 super().__init__()
34 self.to_k_ip = torch.nn.Linear(input_dim, output_dim, bias=False)
35 self.to_v_ip = torch.nn.Linear(input_dim, output_dim, bias=False)
36
37 def forward(self, hidden_states):
38 ip_k = self.to_k_ip(hidden_states)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected