mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2025-12-15 07:44:30 +08:00
Fix CustomControlNetWeightsFluxFromList
This commit is contained in:
parent
9a3434ffa3
commit
a22b269242
@ -2076,10 +2076,10 @@ class CustomControlNetWeightsFluxFromList:
|
|||||||
def load_weights(self, list_of_floats: list[float],
|
def load_weights(self, list_of_floats: list[float],
|
||||||
uncond_multiplier: float=1.0, cn_extras: dict[str]={}):
|
uncond_multiplier: float=1.0, cn_extras: dict[str]={}):
|
||||||
|
|
||||||
acn_nodes = importlib.import_module("ComfyUI-Advanced-ControlNet")
|
adv_control = importlib.import_module("ComfyUI-Advanced-ControlNet.adv_control")
|
||||||
ControlWeights = acn_nodes.adv_control.utils.ControlWeights
|
ControlWeights = adv_control.utils.ControlWeights
|
||||||
TimestepKeyframeGroup = acn_nodes.adv_control.utils.TimestepKeyframeGroup
|
TimestepKeyframeGroup = adv_control.utils.TimestepKeyframeGroup
|
||||||
TimestepKeyframe = acn_nodes.adv_control.utils.TimestepKeyframe
|
TimestepKeyframe = adv_control.utils.TimestepKeyframe
|
||||||
|
|
||||||
weights = ControlWeights.controlnet(weights_input=list_of_floats, uncond_multiplier=uncond_multiplier, extras=cn_extras)
|
weights = ControlWeights.controlnet(weights_input=list_of_floats, uncond_multiplier=uncond_multiplier, extras=cn_extras)
|
||||||
print(weights.weights_input)
|
print(weights.weights_input)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user