昇腾910B踩坑MinerU 2.1.9记录(pipeline调通,vlm未知) #3233
Skyorca
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
1 系统
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
昇腾910B2
驱动 23.0.6.2
CANN 7.5.X
Miner U 2.1.9
2 踩坑记录
坑1: 图形库相关的问题,总之就是动态库导致TLS的内存分配失败(OpenCV库在ARM64架构上的兼容性问题)
⭐这个错误 ImportError: /lib/aarch64-linux-gnu/libGLdispatch.so.0: cannot allocate memory in static TLS block 是由于OpenCV库在ARM64架构上的兼容性问题导致的。从错误堆栈可以看到,问题出现在导入cv2模块时,这发生在MinerU的VLM后端初始化过程中。
解决方法:
1 安装减少内存问题的opencv版本
换成清华源然后重命名为sources.list.tuna,然后挪到根目录下面
↑这些不知道哪些好使,或者有没有好使的
3 强制覆盖conda环境自带的动态库(conda的和系统的冲突)
此外,还可以把conda环境中自带的的强制挪走
或者:
降级simsimd 3.7.2
降级albumentations 1.3.1
sklean包相关:
4 其他
torch / torch_npu 2.5.1
pip install "numpy<2.0" 2.0和昇腾不兼容
export MINERU_MODEL_SOURCE=modelscope
Beta Was this translation helpful? Give feedback.
All reactions