StartHua / Comfyui_CXH_joy_caption

Recommended based on comfyui node pictures:Joy_caption + MiniCPMv2_6-prompt-generator + florence2
Apache License 2.0
444 stars 26 forks source link

提示protobuf版本问题,但是检测系统版本又是对的,不知道问题在哪?求教 #76

Open qingdengke88 opened 1 month ago

qingdengke88 commented 1 month ago

加载JoyCaption Descriptors cannot be created directly. 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). More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

C:\Windows\System32\ComfyUI>pip show protobuf WARNING: Ignoring invalid distribution - (c:\users\xu\appdata\local\programs\python\python310\lib\site-packages) WARNING: Ignoring invalid distribution -rotobuf (c:\users\xu\appdata\local\programs\python\python310\lib\site-packages) Name: protobuf Version: 3.20.3 Summary: Protocol Buffers Home-page: https://developers.google.com/protocol-buffers/ Author: Author-email: License: BSD-3-Clause Location: c:\users\xu\appdata\local\programs\python\python310\lib\site-packages Requires: Required-by: onnxruntime, onnxruntime-gpu, open-clip-torch, tensorboard, tensorflow-intel, wandb

lxk61688 commented 1 month ago

安装transformers到4.44.2版本即可解决,Install transformers to version 4.44.2 to solve the problem