看一下后台的运行日志:
Loading weights [7c819b6d13] from D:\develop\sd-webui-aki-v4\models\Stable-diffusion\majicmixRealistic_v7.safetensors*** Error executing callback ui_tabs_callback for D:\develop\sd-webui-aki-v4\extensions\sd-webui-inpaint-anything\scripts\inpaint_anything.py
Traceback (most recent call last):
File "D:\develop\sd-webui-aki-v4\modules\script_callbacks.py", line 166, in ui_tabs_callback
res += c.callback() or []
File "D:\develop\sd-webui-aki-v4\extensions\sd-webui-inpaint-anything\scripts\inpaint_anything.py", line 841, in on_ui_tabs
cn_modes = [mode.value for mode in sam_dict["cnet"].ControlMode]
AttributeError: module 'extensions.sd-webui-controlnet.scripts.external_code' has no attribute 'ControlMode'
提示:Python 运行时抛出了一个异常。请检查疑难解答页面
错误是:AttributeError: module 'extensions.sd-webui-controlnet.scripts.external_code' has no attribute 'ControlMode'
原因是:inpaint anything 是刚下的,版本是最新的,代码中使用到了controlnet的逻辑代码, 但是sd中的controlnet插件,是之前启动器就带了的,一直没有更新过,这个版本有点老了
解决:重新更新controlnet控件的代码到最新版,然后重新启动webui就不会报错了