MCPcopy Index your code
hub / github.com/VisionXLab/OF-Diff / __init__

Method __init__

cldm/cldm.py:319–324  ·  view source on GitHub ↗
(self, control_stage_config, control_key, only_mid_control, *args, **kwargs)

Source from the content-addressed store, hash-verified

317class ControlLDM(LatentDiffusion):
318
319 def __init__(self, control_stage_config, control_key, only_mid_control, *args, **kwargs):
320 super().__init__(*args, **kwargs)
321 self.control_model = instantiate_from_config(control_stage_config)
322 self.control_key = control_key
323 self.only_mid_control = only_mid_control
324 self.control_scales = [1.0] * 13
325
326 @torch.no_grad()
327 def get_input(self, batch, k, bs=None, *args, **kwargs):

Callers

nothing calls this directly

Calls 2

instantiate_from_configFunction · 0.90
__init__Method · 0.45

Tested by

no test coverage detected