开发者社区 > 云原生 > Serverless > 正文

安装sd-webui-inpaint-anything插件,在安装diffusers,无法启动

Error loading script: !adetailer.py

Traceback (most recent call last):

  File "/stable-diffusion-webui/modules/scripts.py", line 319, in load_scripts

    script_module = script_loading.load_module(scriptfile.path)

  File "/stable-diffusion-webui/modules/script_loading.py", line 10, in load_module

    module_spec.loader.exec_module(module)

  File "<frozen importlib._bootstrap_external>", line 883, in exec_module

  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed

  File "/stable-diffusion-webui/extensions/adetailer/scripts/!adetailer.py", line 20, in <module>

    from adetailer import (

  File "/stable-diffusion-webui/extensions/adetailer/adetailer/__init__.py", line 2, in <module>

    from .args import AD_ENABLE, ALL_ARGS, ADetailerArgs, EnableChecker

  File "/stable-diffusion-webui/extensions/adetailer/adetailer/args.py", line 39, in <module>

    class ADetailerArgs(BaseModel, extra=Extra.forbid):

  File "/mnt/auto/sd/python/pydantic/_internal/_model_construction.py", line 177, in __new__

    set_model_fields(cls, bases, config_wrapper, types_namespace)

  File "/mnt/auto/sd/python/pydantic/_internal/_model_construction.py", line 405, in set_model_fields

    fields, class_vars = collect_model_fields(cls, bases, config_wrapper, types_namespace, typevars_map=typevars_map)

  File "/mnt/auto/sd/python/pydantic/_internal/_fields.py", line 98, in collect_model_fields

    type_hints = get_cls_type_hints_lenient(cls, types_namespace)

  File "/mnt/auto/sd/python/pydantic/_internal/_typing_extra.py", line 212, in get_cls_type_hints_lenient

    hints[name] = eval_type_lenient(value, globalns, localns)

  File "/mnt/auto/sd/python/pydantic/_internal/_typing_extra.py", line 224, in eval_type_lenient

    return typing._eval_type(value, globalns, localns)  # type: ignore

  File "/usr/local/lib/python3.10/typing.py", line 327, in _eval_type

    return t._evaluate(globalns, localns, recursive_guard)

  File "/usr/local/lib/python3.10/typing.py", line 694, in _evaluate

    eval(self.__forward_code__, globalns, localns),

  File "<string>", line 1, in <module>

TypeError: constr() got an unexpected keyword argument 'regex'


Error loading script: api.py

Traceback (most recent call last):

  File "/stable-diffusion-webui/modules/scripts.py", line 319, in load_scripts

    script_module = script_loading.load_module(scriptfile.path)

  File "/stable-diffusion-webui/modules/script_loading.py", line 10, in load_module

    module_spec.loader.exec_module(module)

  File "<frozen importlib._bootstrap_external>", line 883, in exec_module

  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed

  File "/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/api.py", line 8, in <module>

    from modules.api.models import *

  File "/stable-diffusion-webui/modules/api/models.py", line 112, in <module>

    ).generate_model()

  File "/stable-diffusion-webui/modules/api/models.py", line 97, in generate_model

    DynamicModel.__config__.allow_population_by_field_name = True

  File "/mnt/auto/sd/python/pydantic/_internal/_model_construction.py", line 210, in __getattr__

    raise AttributeError(item)

AttributeError: __config__

* Error loading script: batch_hijack.py

Traceback (most recent call last):

  File "/stable-diffusion-webui/modules/scripts.py", line 319, in load_scripts

    script_module = script_loading.load_module(scriptfile.path)

  File "/stable-diffusion-webui/modules/script_loading.py", line 10, in load_module

    module_spec.loader.exec_module(module)

  File "<frozen importlib._bootstrap_external>", line 883, in exec_module

  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed

  File "/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/batch_hijack.py", line 7, in <module>

    from scripts import external_code

  File "/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/external_code.py", line 1, in <module>

    from internal_controlnet.external_code import *


  File "/stable-diffusion-webui/extensions/sd-webui-controlnet/internal_controlnet/external_code.py", line 9, in <module>

    from modules.api import api

  File "/stable-diffusion-webui/modules/api/api.py", line 19, in <module>

    from modules.api import models

  File "/stable-diffusion-webui/modules/api/models.py", line 112, in <module>

    ).generate_model()

  File "/stable-diffusion-webui/modules/api/models.py", line 97, in generate_model

    DynamicModel.__config__.allow_population_by_field_name = True

  File "/mnt/auto/sd/python/pydantic/_internal/_model_construction.py", line 210, in __getattr__

    raise AttributeError(item)

AttributeError: __config__

* Error loading script: controlnet.py

Traceback (most recent call last):

  File "/stable-diffusion-webui/modules/scripts.py", line 319, in load_scripts

    script_module = script_loading.load_module(scriptfile.path)

  File "/stable-diffusion-webui/modules/script_loading.py", line 10, in load_module

    module_spec.loader.exec_module(module)

  File "<frozen importlib._bootstrap_external>", line 883, in exec_module

  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed

  File "/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 13, in <module>

    from scripts import global_state, hook, external_code, processor, batch_hijack, controlnet_version, utils

  File "/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/external_code.py", line 1, in <module>

    from internal_controlnet.external_code import *

  File "/stable-diffusion-webui/extensions/sd-webui-controlnet/internal_controlnet/external_code.py", line 9, in <module>

    from modules.api import api

  File "/stable-diffusion-webui/modules/api/api.py", line 19, in <module>

    from modules.api import models

  File "/stable-diffusion-webui/modules/api/models.py", line 112, in <module>

    ).generate_model()

  File "/stable-diffusion-webui/modules/api/models.py", line 97, in generate_model

    DynamicModel.__config__.allow_population_by_field_name = True

  File "/mnt/auto/sd/python/pydantic/_internal/_model_construction.py", line 210, in __getattr__

    raise AttributeError(item)

AttributeError: __config__

c-650e6370-79bc69850f6646efb8fc2023-09-23 12:03:462023-09-23 04:03:46,016 - ControlNet - INFO - ControlNet v1.1.238


Error loading script: external_code.py

Traceback (most recent call last):

  File "/stable-diffusion-webui/modules/scripts.py", line 319, in load_scripts

    script_module = script_loading.load_module(scriptfile.path)

  File "/stable-diffusion-webui/modules/script_loading.py", line 10, in load_module

    module_spec.loader.exec_module(module)

  File "<frozen importlib._bootstrap_external>", line 883, in exec_module

  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed

  File "/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/external_code.py", line 1, in <module>

    from internal_controlnet.external_code import *

  File "/stable-diffusion-webui/extensions/sd-webui-controlnet/internal_controlnet/external_code.py", line 9, in <module>

    from modules.api import api

  File "/stable-diffusion-webui/modules/api/api.py", line 19, in <module>

    from modules.api import models

  File "/stable-diffusion-webui/modules/api/models.py", line 112, in <module>

    ).generate_model()

  File "/stable-diffusion-webui/modules/api/models.py", line 97, in generate_model

    DynamicModel.__config__.allow_population_by_field_name = True

  File "/mnt/auto/sd/python/pydantic/_internal/_model_construction.py", line 210, in __getattr__

    raise AttributeError(item)

AttributeError: __config__

* Error loading script: xyz_grid_support.py

Traceback (most recent call last):

  File "/stable-diffusion-webui/modules/scripts.py", line 319, in load_scripts

    script_module = script_loading.load_module(scriptfile.path)

  File "/stable-diffusion-webui/modules/script_loading.py", line 10, in load_module

    module_spec.loader.exec_module(module)

  File "<frozen importlib._bootstrap_external>", line 883, in exec_module

  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed

  File "/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/xyz_grid_support.py", line 8, in <module>

    from scripts.external_code import ResizeMode, ControlMode

  File "/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/external_code.py", line 1, in <module>

    from internal_controlnet.external_code import *

  File "/stable-diffusion-webui/extensions/sd-webui-controlnet/internal_controlnet/external_code.py", line 9, in <module>

    from modules.api import api

  File "/stable-diffusion-webui/modules/api/api.py", line 19, in <module>

    from modules.api import models

  File "/stable-diffusion-webui/modules/api/models.py", line 112, in <module>

    ).generate_model()

  File "/stable-diffusion-webui/modules/api/models.py", line 97, in generate_model

    DynamicModel.__config__.allow_population_by_field_name = True

  File "/mnt/auto/sd/python/pydantic/_internal/_model_construction.py", line 210, in __getattr__

    raise AttributeError(item)

AttributeError: __config__

出现以上异常,请问下要怎么解决?

展开
收起
游客5pxmi2qzhv7cs 2023-09-23 12:22:59 1323 0
0 条回答
写回答
取消 提交回答
问答分类:
问答地址:

快速交付实现商业价值。

热门讨论

热门文章

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载