MCPcopy Create free account
hub / github.com/Kosinkadink/ComfyUI-Advanced-ControlNet / get_contextref_obj

Function get_contextref_obj

adv_control/sampling.py:50–61  ·  view source on GitHub ↗
(model: ModelPatcher)

Source from the content-addressed store, hash-verified

48
49
50def get_contextref_obj(model: ModelPatcher):
51 params = model.get_attachment("ADE_params")
52 if params is None:
53 # backwards compatibility
54 params = getattr(model, "motion_injection_params", None)
55 if params is None:
56 return None
57 context_options = getattr(params, "context_options")
58 extras = getattr(context_options, "extras", None)
59 if extras is None:
60 return None
61 return getattr(extras, "context_ref", None)
62
63
64def get_refcn(control: ControlBase, order: int=-1):

Callers 1

acn_outer_sample_wrapperFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected