1.RuntimeError: Failed to import transformers.models.bert.modeling_bert because of the following error (look up to see its traceback):
Failed to import transformers.onnx.config because of the following error (look up to see its traceback):
module ‘numpy.typing’ has no attribute ‘NDArray’

需要安装pillow包:

pip install pillow==9.0.0
Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐