Error: AttributeError: 'int' object has no attribute 'enabled'

#18
by Stkzzzz222 - opened

Error running process: Z:\stable-diffusion-webui-master\extensions\sd-webui-controlnet\scripts\controlnet.py
Traceback (most recent call last):
File "Z:\stable-diffusion-webui-master\modules\scripts.py", line 417, in process
script.process(p, *script_args)
File "Z:\stable-diffusion-webui-master\extensions\sd-webui-controlnet\scripts\controlnet.py", line 628, in process
unit = self.parse_remote_call(p, unit, idx)
File "Z:\stable-diffusion-webui-master\extensions\sd-webui-controlnet\scripts\controlnet.py", line 540, in parse_remote_call
unit.enabled = selector(p, "control_net_enabled", unit.enabled, idx, strict=True)
AttributeError: 'int' object has no attribute 'enabled'

I'm having this error every time it renders a frame and I don't have any clue about how to solve it. Can someone please help me?

@Stkzzzz222 maybe same as this problem: https://github.com/Mikubill/sd-webui-controlnet/issues/675

First update your webui to latest version,
than you must have the same controlnet unit in the api as in the UI settings: 'Multi ControlNet: Max models amount',
and just add 'enable': False to the units you don't need in api.

Sign up or log in to comment