sylym / comfy_vid2vid

Apache License 2.0
67 stars 12 forks source link

AttributeError: 'ControlNet' object has no attribute 'get_control_models' when running KSamplerSequence #3

Open spedr opened 1 year ago

spedr commented 1 year ago

It seems that as of commit 3696d1699a6fece2485c063317cf65abbcddb79b, get_control_models() is now get_models().

I tried swapping just the function name, but I'm still getting

 in __getattr__
    raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'ControlNet' object has no attribute 'get_models'
spedr commented 1 year ago

It seems that load_controlnet_gpu itself now calls get_models, so I have swapped the code to:

control_net_models = []
for x in control_nets:
    control_net_models.append(x)
model_management.load_controlnet_gpu(control_net_models)