MCPcopy Create free account
hub / github.com/VisionXLab/OF-Diff / __init__

Method __init__

ldm/modules/diffusionmodules/util.py:256–259  ·  view source on GitHub ↗
(self, c_concat_config, c_crossattn_config)

Source from the content-addressed store, hash-verified

254class HybridConditioner(nn.Module):
255
256 def __init__(self, c_concat_config, c_crossattn_config):
257 super().__init__()
258 self.concat_conditioner = instantiate_from_config(c_concat_config)
259 self.crossattn_conditioner = instantiate_from_config(c_crossattn_config)
260
261 def forward(self, c_concat, c_crossattn):
262 c_concat = self.concat_conditioner(c_concat)

Callers

nothing calls this directly

Calls 1

instantiate_from_configFunction · 0.90

Tested by

no test coverage detected