首页
开源
资讯
活动
开源许可证
软件工程云服务
软件代码质量检测云服务
持续集成与部署云服务
社区个性化内容推荐服务
贡献审阅人推荐服务
群体化学习服务
重睛鸟代码扫描工具
登录
注册
代码拉取完成,页面将自动刷新
Watch
5
Star
32
Fork
14
MindSpore Lab
/
mindocr
Fork 仓库
加载中
取消
确认
代码
Issues
16
Pull Requests
0
Wiki
0
统计
更新失败,请稍后重试!
Issues
/
详情
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
安装环境时没有问题,推理时报错
待办的
#IA3VT0
阿建
创建于
2024-06-09 12:05
``` python tools/infer/text/predict_ser.py --rec_algorithm CRNN_CH --image_dir /opt/2.jpg [WARNING] ME(9046:281473023122160,MainProcess):2024-06-09-12:03:08.347.438 [mindspore/run_check/_check_version.py:357] MindSpore version 2.2.14 and Ascend AI software package (Ascend Data Center Solution)version 7.2 does not match, the version of software package expect one of ['7.1']. Please refer to the match info on: https://www.mindspore.cn/install /root/miniconda3/envs/chatglm3/lib/python3.8/site-packages/numpy/core/getlimits.py:518: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero. setattr(self, word, getattr(machar, word).flat[0]) /root/miniconda3/envs/chatglm3/lib/python3.8/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero. return self._float_to_str(self.smallest_subnormal) /root/miniconda3/envs/chatglm3/lib/python3.8/site-packages/numpy/core/getlimits.py:518: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero. setattr(self, word, getattr(machar, word).flat[0]) /root/miniconda3/envs/chatglm3/lib/python3.8/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero. return self._float_to_str(self.smallest_subnormal) [WARNING] ME(9046:281473023122160,MainProcess):2024-06-09-12:03:10.945.566 [mindspore/run_check/_check_version.py:375] MindSpore version 2.2.14 and "te" wheel package version 7.2 does not match. For details, refer to the installation guidelines: https://www.mindspore.cn/install [WARNING] ME(9046:281473023122160,MainProcess):2024-06-09-12:03:10.946.415 [mindspore/run_check/_check_version.py:382] MindSpore version 2.2.14 and "hccl" wheel package version 7.2 does not match. For details, refer to the installation guidelines: https://www.mindspore.cn/install [WARNING] ME(9046:281473023122160,MainProcess):2024-06-09-12:03:10.946.525 [mindspore/run_check/_check_version.py:396] Please pay attention to the above warning, countdown: 3 [WARNING] ME(9046:281473023122160,MainProcess):2024-06-09-12:03:11.947.618 [mindspore/run_check/_check_version.py:396] Please pay attention to the above warning, countdown: 2 [WARNING] ME(9046:281473023122160,MainProcess):2024-06-09-12:03:12.948.711 [mindspore/run_check/_check_version.py:396] Please pay attention to the above warning, countdown: 1 Traceback (most recent call last): File "/root/miniconda3/envs/chatglm3/lib/python3.8/site-packages/sklearn/__check_build/__init__.py", line 45, in <module> from ._check_build import check_build # noqa ImportError: /root/miniconda3/envs/chatglm3/lib/python3.8/site-packages/sklearn/__check_build/../../scikit_learn.libs/libgomp-d22c30c5.so.1.0.0: cannot allocate memory in static TLS block During handling of the above exception, another exception occurred: Traceback (most recent call last): File "tools/infer/text/predict_ser.py", line 17, in <module> from postprocess import Postprocessor File "/opt/mindocr-main/tools/infer/text/postprocess.py", line 9, in <module> from mindocr import build_postprocess File "/opt/mindocr-main/mindocr/__init__.py", line 1, in <module> from . import data, losses, metrics, models, postprocess, utils File "/opt/mindocr-main/mindocr/metrics/__init__.py", line 1, in <module> from .builder import build_metric File "/opt/mindocr-main/mindocr/metrics/builder.py", line 1, in <module> from . import cls_metrics, det_metrics, kie_metrics, layout_metrics, rec_metrics File "/opt/mindocr-main/mindocr/metrics/kie_metrics.py", line 6, in <module> import seqeval.metrics File "/root/miniconda3/envs/chatglm3/lib/python3.8/site-packages/seqeval/metrics/__init__.py", line 1, in <module> from seqeval.metrics.sequence_labeling import (accuracy_score, File "/root/miniconda3/envs/chatglm3/lib/python3.8/site-packages/seqeval/metrics/sequence_labeling.py", line 14, in <module> from seqeval.metrics.v1 import SCORES, _precision_recall_fscore_support File "/root/miniconda3/envs/chatglm3/lib/python3.8/site-packages/seqeval/metrics/v1.py", line 5, in <module> from sklearn.exceptions import UndefinedMetricWarning File "/root/miniconda3/envs/chatglm3/lib/python3.8/site-packages/sklearn/__init__.py", line 79, in <module> from . import ( File "/root/miniconda3/envs/chatglm3/lib/python3.8/site-packages/sklearn/__check_build/__init__.py", line 47, in <module> raise_build_error(e) File "/root/miniconda3/envs/chatglm3/lib/python3.8/site-packages/sklearn/__check_build/__init__.py", line 31, in raise_build_error raise ImportError("""%s ImportError: /root/miniconda3/envs/chatglm3/lib/python3.8/site-packages/sklearn/__check_build/../../scikit_learn.libs/libgomp-d22c30c5.so.1.0.0: cannot allocate memory in static TLS block ___________________________________________________________________________ Contents of /root/miniconda3/envs/chatglm3/lib/python3.8/site-packages/sklearn/__check_build: _check_build.cpython-38-aarch64-linux-gnu.so__init__.py __pycache__ ___________________________________________________________________________ It seems that scikit-learn has not been built correctly. If you have installed scikit-learn from source, please do not forget to build the package before using it: run `python setup.py install` or `make` in the source directory. If you have used an installer, please check that it is suited for your Python version, your operating system and your platform. ```
``` python tools/infer/text/predict_ser.py --rec_algorithm CRNN_CH --image_dir /opt/2.jpg [WARNING] ME(9046:281473023122160,MainProcess):2024-06-09-12:03:08.347.438 [mindspore/run_check/_check_version.py:357] MindSpore version 2.2.14 and Ascend AI software package (Ascend Data Center Solution)version 7.2 does not match, the version of software package expect one of ['7.1']. Please refer to the match info on: https://www.mindspore.cn/install /root/miniconda3/envs/chatglm3/lib/python3.8/site-packages/numpy/core/getlimits.py:518: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero. setattr(self, word, getattr(machar, word).flat[0]) /root/miniconda3/envs/chatglm3/lib/python3.8/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero. return self._float_to_str(self.smallest_subnormal) /root/miniconda3/envs/chatglm3/lib/python3.8/site-packages/numpy/core/getlimits.py:518: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero. setattr(self, word, getattr(machar, word).flat[0]) /root/miniconda3/envs/chatglm3/lib/python3.8/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero. return self._float_to_str(self.smallest_subnormal) [WARNING] ME(9046:281473023122160,MainProcess):2024-06-09-12:03:10.945.566 [mindspore/run_check/_check_version.py:375] MindSpore version 2.2.14 and "te" wheel package version 7.2 does not match. For details, refer to the installation guidelines: https://www.mindspore.cn/install [WARNING] ME(9046:281473023122160,MainProcess):2024-06-09-12:03:10.946.415 [mindspore/run_check/_check_version.py:382] MindSpore version 2.2.14 and "hccl" wheel package version 7.2 does not match. For details, refer to the installation guidelines: https://www.mindspore.cn/install [WARNING] ME(9046:281473023122160,MainProcess):2024-06-09-12:03:10.946.525 [mindspore/run_check/_check_version.py:396] Please pay attention to the above warning, countdown: 3 [WARNING] ME(9046:281473023122160,MainProcess):2024-06-09-12:03:11.947.618 [mindspore/run_check/_check_version.py:396] Please pay attention to the above warning, countdown: 2 [WARNING] ME(9046:281473023122160,MainProcess):2024-06-09-12:03:12.948.711 [mindspore/run_check/_check_version.py:396] Please pay attention to the above warning, countdown: 1 Traceback (most recent call last): File "/root/miniconda3/envs/chatglm3/lib/python3.8/site-packages/sklearn/__check_build/__init__.py", line 45, in <module> from ._check_build import check_build # noqa ImportError: /root/miniconda3/envs/chatglm3/lib/python3.8/site-packages/sklearn/__check_build/../../scikit_learn.libs/libgomp-d22c30c5.so.1.0.0: cannot allocate memory in static TLS block During handling of the above exception, another exception occurred: Traceback (most recent call last): File "tools/infer/text/predict_ser.py", line 17, in <module> from postprocess import Postprocessor File "/opt/mindocr-main/tools/infer/text/postprocess.py", line 9, in <module> from mindocr import build_postprocess File "/opt/mindocr-main/mindocr/__init__.py", line 1, in <module> from . import data, losses, metrics, models, postprocess, utils File "/opt/mindocr-main/mindocr/metrics/__init__.py", line 1, in <module> from .builder import build_metric File "/opt/mindocr-main/mindocr/metrics/builder.py", line 1, in <module> from . import cls_metrics, det_metrics, kie_metrics, layout_metrics, rec_metrics File "/opt/mindocr-main/mindocr/metrics/kie_metrics.py", line 6, in <module> import seqeval.metrics File "/root/miniconda3/envs/chatglm3/lib/python3.8/site-packages/seqeval/metrics/__init__.py", line 1, in <module> from seqeval.metrics.sequence_labeling import (accuracy_score, File "/root/miniconda3/envs/chatglm3/lib/python3.8/site-packages/seqeval/metrics/sequence_labeling.py", line 14, in <module> from seqeval.metrics.v1 import SCORES, _precision_recall_fscore_support File "/root/miniconda3/envs/chatglm3/lib/python3.8/site-packages/seqeval/metrics/v1.py", line 5, in <module> from sklearn.exceptions import UndefinedMetricWarning File "/root/miniconda3/envs/chatglm3/lib/python3.8/site-packages/sklearn/__init__.py", line 79, in <module> from . import ( File "/root/miniconda3/envs/chatglm3/lib/python3.8/site-packages/sklearn/__check_build/__init__.py", line 47, in <module> raise_build_error(e) File "/root/miniconda3/envs/chatglm3/lib/python3.8/site-packages/sklearn/__check_build/__init__.py", line 31, in raise_build_error raise ImportError("""%s ImportError: /root/miniconda3/envs/chatglm3/lib/python3.8/site-packages/sklearn/__check_build/../../scikit_learn.libs/libgomp-d22c30c5.so.1.0.0: cannot allocate memory in static TLS block ___________________________________________________________________________ Contents of /root/miniconda3/envs/chatglm3/lib/python3.8/site-packages/sklearn/__check_build: _check_build.cpython-38-aarch64-linux-gnu.so__init__.py __pycache__ ___________________________________________________________________________ It seems that scikit-learn has not been built correctly. If you have installed scikit-learn from source, please do not forget to build the package before using it: run `python setup.py install` or `make` in the source directory. If you have used an installer, please check that it is suited for your Python version, your operating system and your platform. ```
评论 (
0
)
阿建
创建了
任务
登录
后才可以发表评论
状态
待办的
待办的
进行中
已完成
已关闭
负责人
未设置
标签
未设置
标签管理
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (11)
标签 (5)
main
ocr-lm
gh-pages
v0.4.0
revert-772-feat-predict-all
v0.3.1
v0.3.2
overfit
refactor_dp
test_ms1.7
v0.1.1
v0.3.1
v0.3.0
v0.2.0
v0.1.1
v0.1.0
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
参与者(1)