Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
spedr opened this issue May 15, 2023 · 1 comment

Comments

@spedr
Copy link

spedr commented May 15, 2023

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
Copy link
Author

spedr commented May 15, 2023

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant