Error loading script: !adetailer.py #316
Unanswered
divineblessing
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Please help me figure out the cause. I encountered the error shown in the image while installing a plugin with my SD version 1.6. I tried using SD version 1.5, but the same error occurred. Thank you!
*** Error loading script: !adetailer.py
Traceback (most recent call last):
File "D:\StableDiffusion\modules\scripts.py", line 382, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "D:\StableDiffusion\modules\script_loading.py", line 10, in load_module
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "D:\StableDiffusion\extensions\adetailer\scripts!adetailer.py", line 20, in
from adetailer import (
File "D:\StableDiffusion\extensions\adetailer\adetailer_init.py", line 4, in
from .mediapipe import mediapipe_predict
File "D:\StableDiffusion\extensions\adetailer\adetailer\mediapipe.py", line 5, in
import mediapipe as mp
File "D:\StableDiffusion\python\lib\site-packages\mediapipe_init_.py", line 16, in
import mediapipe.python.solutions as solutions
File "D:\StableDiffusion\python\lib\site-packages\mediapipe\python\solutions_init_.py", line 17, in
import mediapipe.python.solutions.drawing_styles
File "D:\StableDiffusion\python\lib\site-packages\mediapipe\python\solutions\drawing_styles.py", line 20, in
from mediapipe.python.solutions.drawing_utils import DrawingSpec
File "D:\StableDiffusion\python\lib\site-packages\mediapipe\python\solutions\drawing_utils.py", line 24, in
from mediapipe.framework.formats import detection_pb2
File "D:\StableDiffusion\python\lib\site-packages\mediapipe\framework\formats\detection_pb2.py", line 16, in
from mediapipe.framework.formats import location_data_pb2 as mediapipe_dot_framework_dot_formats_dot_location__data__pb2
File "D:\StableDiffusion\python\lib\site-packages\mediapipe\framework\formats\location_data_pb2.py", line 16, in
from mediapipe.framework.formats.annotation import rasterization_pb2 as mediapipe_dot_framework_dot_formats_dot_annotation_dot_rasterization__pb2
File "D:\StableDiffusion\python\lib\site-packages\mediapipe\framework\formats\annotation\rasterization_pb2.py", line 36, in
_descriptor.FieldDescriptor(
File "D:\StableDiffusion\python\lib\site-packages\google\protobuf\descriptor.py", line 561, in new
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
提示:Python 运行时抛出了一个异常。请检查疑难解答页面。
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
1. Downgrade the protobuf package to 3.20.x or lower.
2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
Beta Was this translation helpful? Give feedback.
All reactions