首页
开源
资讯
活动
开源许可证
软件工程云服务
软件代码质量检测云服务
持续集成与部署云服务
社区个性化内容推荐服务
贡献审阅人推荐服务
群体化学习服务
重睛鸟代码扫描工具
登录
注册
代码拉取完成,页面将自动刷新
Watch
5
Star
32
Fork
14
MindSpore Lab
/
mindocr
Fork 仓库
加载中
取消
确认
代码
Issues
16
Pull Requests
0
Wiki
0
统计
更新失败,请稍后重试!
Issues
/
详情
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
RuntimeError: build_from_file failed! Error is Common error code.
待办的
#IAS8M5
GAOYANG
创建于
2024-09-19 17:04
在使用ppocrV4转换过来的mindir权重进行推理时,会报‘RuntimeError: build_from_file failed! Error is Common error code.’,报错原因是因为我使用Ascend推理导致,如果在mindocr/deploy/py_infer/src/core/model/backend/lite_model.py中将self.device赋值为‘cpu'则可以正常运行,具体报错如下: /home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/site-packages/numpy/core/getlimits.py:549: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero. setattr(self, word, getattr(machar, word).flat[0]) /home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/site-packages/numpy/core/getlimits.py:549: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero. setattr(self, word, getattr(machar, word).flat[0]) ________________________________context-info________________________________ GET <mindspore_lite.lib._c_lite_wrapper.ContextBind object at 0xfffe9fb48e70> <class 'mindspore_lite.context.Context'> WARNING:root:mslite ascendc custom kernel path not found ________________________________context-info________________________________ GET <mindspore_lite.lib._c_lite_wrapper.ContextBind object at 0xfffe9fb48f70> <class 'mindspore_lite.context.Context'> WARNING:root:mslite ascendc custom kernel path not found ________________________________context-info________________________________ GET <mindspore_lite.lib._c_lite_wrapper.ContextBind object at 0xfffe9fb491b0> <class 'mindspore_lite.context.Context'> WARNING:root:mslite ascendc custom kernel path not found [ERROR] ME(218394,ffff9f8bf010,python):2024-09-19-16:57:29.955.827 [mindspore/lite/src/extendrt/session/single_op_session.cc:290] CompileGraph] Only support CustomAscend, but got Conv2DFusion, node p2o.Conv.0 [ERROR] ME(218394,ffff9f8bf010,python):2024-09-19-16:57:29.955.944 [mindspore/lite/src/extendrt/cxx_api/model/model_impl.cc:413] BuildByBufferImpl] compile graph failed. [ERROR] MINDOCR(218394:281473358491664,Process-3:28):2024-09-19-16:57:29.960.185 [src/parallel/framework/module_base.py:40] [The error from this card id (0)] DetPreNode init failed: build_from_file failed! Error is Common error code. [ERROR] ME(218427,ffff9f8bf010,python):2024-09-19-16:57:29.960.481 [mindspore/lite/src/extendrt/session/single_op_session.cc:290] CompileGraph] Only support CustomAscend, but got Conv2DFusion, node p2o.Conv.0 [ERROR] ME(218427,ffff9f8bf010,python):2024-09-19-16:57:29.960.617 [mindspore/lite/src/extendrt/cxx_api/model/model_impl.cc:413] BuildByBufferImpl] compile graph failed. ________________________________context-info________________________________ ________________________________context-info________________________________ GET GET <mindspore_lite.lib._c_lite_wrapper.ContextBind object at 0xfffe9fb492b0> <mindspore_lite.lib._c_lite_wrapper.ContextBind object at 0xfffe9fb4a3b0> <class 'mindspore_lite.context.Context'> <class 'mindspore_lite.context.Context'> WARNING:root:mslite ascendc custom kernel path not found WARNING:root:mslite ascendc custom kernel path not found [ERROR] MINDOCR(218427:281473358491664,Process-3:29):2024-09-19-16:57:29.964.722 [src/parallel/framework/module_base.py:40] [The error from this card id (0)] DetInferNode init failed: build_from_file failed! Error is Common error code. [ERROR] ME(218485,ffff9f8bf010,python):2024-09-19-16:57:29.984.429 [mindspore/lite/src/extendrt/session/single_op_session.cc:290] CompileGraph] Only support CustomAscend, but got Conv2DFusion, node p2o.Conv.0 [ERROR] ME(218485,ffff9f8bf010,python):2024-09-19-16:57:29.984.529 [mindspore/lite/src/extendrt/cxx_api/model/model_impl.cc:413] BuildByBufferImpl] compile graph failed. [ERROR] MINDOCR(218485:281473358491664,Process-3:31):2024-09-19-16:57:29.986.652 [src/parallel/framework/module_base.py:40] [The error from this card id (0)] ClsPreNode init failed: build_from_file failed! Error is Common error code. ________________________________context-info________________________________ GET <mindspore_lite.lib._c_lite_wrapper.ContextBind object at 0xfffe9fb4a4b0> <class 'mindspore_lite.context.Context'> WARNING:root:mslite ascendc custom kernel path not found [ERROR] ME(218515,ffff9f8bf010,python):2024-09-19-16:57:30.011.365 [mindspore/lite/src/extendrt/session/single_op_session.cc:290] CompileGraph] Only support CustomAscend, but got Conv2DFusion, node p2o.Conv.0 [ERROR] ME(218515,ffff9f8bf010,python):2024-09-19-16:57:30.011.497 [mindspore/lite/src/extendrt/cxx_api/model/model_impl.cc:413] BuildByBufferImpl] compile graph failed. [ERROR] MINDOCR(218515:281473358491664,Process-3:32):2024-09-19-16:57:30.142.99 [src/parallel/framework/module_base.py:40] [The error from this card id (0)] ClsInferNode init failed: build_from_file failed! Error is Common error code. [ERROR] ME(218546,ffff9f8bf010,python):2024-09-19-16:57:30.036.081 [mindspore/lite/src/extendrt/session/single_op_session.cc:290] CompileGraph] Only support CustomAscend, but got Conv2DFusion, node p2o.Conv.0 [ERROR] ME(218546,ffff9f8bf010,python):2024-09-19-16:57:30.036.200 [mindspore/lite/src/extendrt/cxx_api/model/model_impl.cc:413] BuildByBufferImpl] compile graph failed. [ERROR] MINDOCR(218546:281473358491664,Process-3:33):2024-09-19-16:57:30.415.24 [src/parallel/framework/module_base.py:40] [The error from this card id (0)] RecPreNode init failed: build_from_file failed! Error is Common error code. [ERROR] ME(218576,ffff9f8bf010,python):2024-09-19-16:57:30.097.238 [mindspore/lite/src/extendrt/session/single_op_session.cc:290] CompileGraph] Only support CustomAscend, but got Conv2DFusion, node p2o.Conv.0 [ERROR] ME(218576,ffff9f8bf010,python):2024-09-19-16:57:30.097.364 [mindspore/lite/src/extendrt/cxx_api/model/model_impl.cc:413] BuildByBufferImpl] compile graph failed. [ERROR] MINDOCR(218576:281473358491664,Process-3:34):2024-09-19-16:57:30.102.769 [src/parallel/framework/module_base.py:40] [The error from this card id (0)] RecInferNode init failed: build_from_file failed! Error is Common error code. Process Process-3:28: Traceback (most recent call last): File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap self.run() File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/multiprocessing/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/framework/module_base.py", line 41, in process_handler raise error File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/framework/module_base.py", line 36, in process_handler params = self.init_self_args() File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/module/detection/det_pre_node.py", line 13, in init_self_args self.text_detector.init(preprocess=True, model=False, postprocess=False) File "/home/ma-user/work/mindocr/deploy/py_infer/src/infer/infer_base.py", line 29, in init self._init_model() File "/home/ma-user/work/mindocr/deploy/py_infer/src/infer/infer_det.py", line 18, in _init_model self.model = Model( File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/model.py", line 15, in __init__ self.model = _INFER_BACKEND_MAP[backend](**kwargs) File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/lite_model.py", line 16, in __init__ super().__init__(model_path, device, device_id) File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/model_base.py", line 28, in __init__ self._init_model() File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/lite_model.py", line 39, in _init_model self.model.build_from_file(self.model_path, mslite.ModelType.MINDIR, context) File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/site-packages/mindspore_lite/model.py", line 110, in warpper return func(*args, **kwargs) File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/site-packages/mindspore_lite/model.py", line 255, in build_from_file raise RuntimeError( RuntimeError: build_from_file failed! Error is Common error code. Process Process-3:29: Process Process-3:31: Traceback (most recent call last): File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap self.run() File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/multiprocessing/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/framework/module_base.py", line 41, in process_handler raise error File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/framework/module_base.py", line 36, in process_handler params = self.init_self_args() File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/module/detection/det_infer_node.py", line 12, in init_self_args self.text_detector.init(preprocess=False, model=True, postprocess=False) File "/home/ma-user/work/mindocr/deploy/py_infer/src/infer/infer_base.py", line 29, in init self._init_model() File "/home/ma-user/work/mindocr/deploy/py_infer/src/infer/infer_det.py", line 18, in _init_model self.model = Model( File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/model.py", line 15, in __init__ self.model = _INFER_BACKEND_MAP[backend](**kwargs) File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/lite_model.py", line 16, in __init__ super().__init__(model_path, device, device_id) File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/model_base.py", line 28, in __init__ self._init_model() File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/lite_model.py", line 39, in _init_model self.model.build_from_file(self.model_path, mslite.ModelType.MINDIR, context) File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/site-packages/mindspore_lite/model.py", line 110, in warpper return func(*args, **kwargs) File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/site-packages/mindspore_lite/model.py", line 255, in build_from_file raise RuntimeError( RuntimeError: build_from_file failed! Error is Common error code. Traceback (most recent call last): File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap self.run() File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/multiprocessing/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/framework/module_base.py", line 41, in process_handler raise error File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/framework/module_base.py", line 36, in process_handler params = self.init_self_args() File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/module/classification/cls_pre_node.py", line 16, in init_self_args self.text_classifier.init(preprocess=True, model=False, postprocess=False) File "/home/ma-user/work/mindocr/deploy/py_infer/src/infer/infer_base.py", line 29, in init self._init_model() File "/home/ma-user/work/mindocr/deploy/py_infer/src/infer/infer_cls.py", line 18, in _init_model self.model = Model( File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/model.py", line 15, in __init__ self.model = _INFER_BACKEND_MAP[backend](**kwargs) File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/lite_model.py", line 16, in __init__ super().__init__(model_path, device, device_id) File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/model_base.py", line 28, in __init__ self._init_model() File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/lite_model.py", line 39, in _init_model self.model.build_from_file(self.model_path, mslite.ModelType.MINDIR, context) File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/site-packages/mindspore_lite/model.py", line 110, in warpper return func(*args, **kwargs) File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/site-packages/mindspore_lite/model.py", line 255, in build_from_file raise RuntimeError( RuntimeError: build_from_file failed! Error is Common error code. Process Process-3:32: Process Process-3:33: Process Process-3:34: Traceback (most recent call last): Traceback (most recent call last): File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap self.run() File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap self.run() File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/multiprocessing/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/multiprocessing/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/framework/module_base.py", line 41, in process_handler raise error File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/framework/module_base.py", line 41, in process_handler raise error File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/framework/module_base.py", line 36, in process_handler params = self.init_self_args() File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/framework/module_base.py", line 36, in process_handler params = self.init_self_args() File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/module/recognition/rec_pre_node.py", line 16, in init_self_args self.text_recognizer.init(preprocess=True, model=False, postprocess=False) File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/module/classification/cls_infer_node.py", line 17, in init_self_args self.text_classifier.init(preprocess=False, model=True, postprocess=True) File "/home/ma-user/work/mindocr/deploy/py_infer/src/infer/infer_base.py", line 29, in init self._init_model() File "/home/ma-user/work/mindocr/deploy/py_infer/src/infer/infer_base.py", line 29, in init self._init_model() File "/home/ma-user/work/mindocr/deploy/py_infer/src/infer/infer_rec.py", line 61, in _init_model self.__load_model(model_path) Traceback (most recent call last): File "/home/ma-user/work/mindocr/deploy/py_infer/src/infer/infer_cls.py", line 18, in _init_model self.model = Model( File "/home/ma-user/work/mindocr/deploy/py_infer/src/infer/infer_rec.py", line 17, in __load_model model = Model( File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/model.py", line 15, in __init__ self.model = _INFER_BACKEND_MAP[backend](**kwargs) File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/model.py", line 15, in __init__ self.model = _INFER_BACKEND_MAP[backend](**kwargs) File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/lite_model.py", line 16, in __init__ super().__init__(model_path, device, device_id) File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/lite_model.py", line 16, in __init__ super().__init__(model_path, device, device_id) File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/model_base.py", line 28, in __init__ self._init_model() File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/model_base.py", line 28, in __init__ self._init_model() File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/lite_model.py", line 39, in _init_model self.model.build_from_file(self.model_path, mslite.ModelType.MINDIR, context) File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/lite_model.py", line 39, in _init_model self.model.build_from_file(self.model_path, mslite.ModelType.MINDIR, context) File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/site-packages/mindspore_lite/model.py", line 110, in warpper return func(*args, **kwargs) File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/site-packages/mindspore_lite/model.py", line 110, in warpper return func(*args, **kwargs) File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/site-packages/mindspore_lite/model.py", line 255, in build_from_file raise RuntimeError( File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/site-packages/mindspore_lite/model.py", line 255, in build_from_file raise RuntimeError( RuntimeError: build_from_file failed! Error is Common error code. File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap self.run() RuntimeError: build_from_file failed! Error is Common error code. File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/multiprocessing/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/framework/module_base.py", line 41, in process_handler raise error File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/framework/module_base.py", line 36, in process_handler params = self.init_self_args() File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/module/recognition/rec_infer_node.py", line 12, in init_self_args self.text_recognizer.init(preprocess=False, model=True, postprocess=False) File "/home/ma-user/work/mindocr/deploy/py_infer/src/infer/infer_base.py", line 29, in init self._init_model() File "/home/ma-user/work/mindocr/deploy/py_infer/src/infer/infer_rec.py", line 61, in _init_model self.__load_model(model_path) File "/home/ma-user/work/mindocr/deploy/py_infer/src/infer/infer_rec.py", line 17, in __load_model model = Model( File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/model.py", line 15, in __init__ self.model = _INFER_BACKEND_MAP[backend](**kwargs) File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/lite_model.py", line 16, in __init__ super().__init__(model_path, device, device_id) File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/model_base.py", line 28, in __init__ self._init_model() File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/lite_model.py", line 39, in _init_model self.model.build_from_file(self.model_path, mslite.ModelType.MINDIR, context) File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/site-packages/mindspore_lite/model.py", line 110, in warpper return func(*args, **kwargs) File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/site-packages/mindspore_lite/model.py", line 255, in build_from_file raise RuntimeError( RuntimeError: build_from_file failed! Error is Common error code.
在使用ppocrV4转换过来的mindir权重进行推理时,会报‘RuntimeError: build_from_file failed! Error is Common error code.’,报错原因是因为我使用Ascend推理导致,如果在mindocr/deploy/py_infer/src/core/model/backend/lite_model.py中将self.device赋值为‘cpu'则可以正常运行,具体报错如下: /home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/site-packages/numpy/core/getlimits.py:549: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero. setattr(self, word, getattr(machar, word).flat[0]) /home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/site-packages/numpy/core/getlimits.py:549: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero. setattr(self, word, getattr(machar, word).flat[0]) ________________________________context-info________________________________ GET <mindspore_lite.lib._c_lite_wrapper.ContextBind object at 0xfffe9fb48e70> <class 'mindspore_lite.context.Context'> WARNING:root:mslite ascendc custom kernel path not found ________________________________context-info________________________________ GET <mindspore_lite.lib._c_lite_wrapper.ContextBind object at 0xfffe9fb48f70> <class 'mindspore_lite.context.Context'> WARNING:root:mslite ascendc custom kernel path not found ________________________________context-info________________________________ GET <mindspore_lite.lib._c_lite_wrapper.ContextBind object at 0xfffe9fb491b0> <class 'mindspore_lite.context.Context'> WARNING:root:mslite ascendc custom kernel path not found [ERROR] ME(218394,ffff9f8bf010,python):2024-09-19-16:57:29.955.827 [mindspore/lite/src/extendrt/session/single_op_session.cc:290] CompileGraph] Only support CustomAscend, but got Conv2DFusion, node p2o.Conv.0 [ERROR] ME(218394,ffff9f8bf010,python):2024-09-19-16:57:29.955.944 [mindspore/lite/src/extendrt/cxx_api/model/model_impl.cc:413] BuildByBufferImpl] compile graph failed. [ERROR] MINDOCR(218394:281473358491664,Process-3:28):2024-09-19-16:57:29.960.185 [src/parallel/framework/module_base.py:40] [The error from this card id (0)] DetPreNode init failed: build_from_file failed! Error is Common error code. [ERROR] ME(218427,ffff9f8bf010,python):2024-09-19-16:57:29.960.481 [mindspore/lite/src/extendrt/session/single_op_session.cc:290] CompileGraph] Only support CustomAscend, but got Conv2DFusion, node p2o.Conv.0 [ERROR] ME(218427,ffff9f8bf010,python):2024-09-19-16:57:29.960.617 [mindspore/lite/src/extendrt/cxx_api/model/model_impl.cc:413] BuildByBufferImpl] compile graph failed. ________________________________context-info________________________________ ________________________________context-info________________________________ GET GET <mindspore_lite.lib._c_lite_wrapper.ContextBind object at 0xfffe9fb492b0> <mindspore_lite.lib._c_lite_wrapper.ContextBind object at 0xfffe9fb4a3b0> <class 'mindspore_lite.context.Context'> <class 'mindspore_lite.context.Context'> WARNING:root:mslite ascendc custom kernel path not found WARNING:root:mslite ascendc custom kernel path not found [ERROR] MINDOCR(218427:281473358491664,Process-3:29):2024-09-19-16:57:29.964.722 [src/parallel/framework/module_base.py:40] [The error from this card id (0)] DetInferNode init failed: build_from_file failed! Error is Common error code. [ERROR] ME(218485,ffff9f8bf010,python):2024-09-19-16:57:29.984.429 [mindspore/lite/src/extendrt/session/single_op_session.cc:290] CompileGraph] Only support CustomAscend, but got Conv2DFusion, node p2o.Conv.0 [ERROR] ME(218485,ffff9f8bf010,python):2024-09-19-16:57:29.984.529 [mindspore/lite/src/extendrt/cxx_api/model/model_impl.cc:413] BuildByBufferImpl] compile graph failed. [ERROR] MINDOCR(218485:281473358491664,Process-3:31):2024-09-19-16:57:29.986.652 [src/parallel/framework/module_base.py:40] [The error from this card id (0)] ClsPreNode init failed: build_from_file failed! Error is Common error code. ________________________________context-info________________________________ GET <mindspore_lite.lib._c_lite_wrapper.ContextBind object at 0xfffe9fb4a4b0> <class 'mindspore_lite.context.Context'> WARNING:root:mslite ascendc custom kernel path not found [ERROR] ME(218515,ffff9f8bf010,python):2024-09-19-16:57:30.011.365 [mindspore/lite/src/extendrt/session/single_op_session.cc:290] CompileGraph] Only support CustomAscend, but got Conv2DFusion, node p2o.Conv.0 [ERROR] ME(218515,ffff9f8bf010,python):2024-09-19-16:57:30.011.497 [mindspore/lite/src/extendrt/cxx_api/model/model_impl.cc:413] BuildByBufferImpl] compile graph failed. [ERROR] MINDOCR(218515:281473358491664,Process-3:32):2024-09-19-16:57:30.142.99 [src/parallel/framework/module_base.py:40] [The error from this card id (0)] ClsInferNode init failed: build_from_file failed! Error is Common error code. [ERROR] ME(218546,ffff9f8bf010,python):2024-09-19-16:57:30.036.081 [mindspore/lite/src/extendrt/session/single_op_session.cc:290] CompileGraph] Only support CustomAscend, but got Conv2DFusion, node p2o.Conv.0 [ERROR] ME(218546,ffff9f8bf010,python):2024-09-19-16:57:30.036.200 [mindspore/lite/src/extendrt/cxx_api/model/model_impl.cc:413] BuildByBufferImpl] compile graph failed. [ERROR] MINDOCR(218546:281473358491664,Process-3:33):2024-09-19-16:57:30.415.24 [src/parallel/framework/module_base.py:40] [The error from this card id (0)] RecPreNode init failed: build_from_file failed! Error is Common error code. [ERROR] ME(218576,ffff9f8bf010,python):2024-09-19-16:57:30.097.238 [mindspore/lite/src/extendrt/session/single_op_session.cc:290] CompileGraph] Only support CustomAscend, but got Conv2DFusion, node p2o.Conv.0 [ERROR] ME(218576,ffff9f8bf010,python):2024-09-19-16:57:30.097.364 [mindspore/lite/src/extendrt/cxx_api/model/model_impl.cc:413] BuildByBufferImpl] compile graph failed. [ERROR] MINDOCR(218576:281473358491664,Process-3:34):2024-09-19-16:57:30.102.769 [src/parallel/framework/module_base.py:40] [The error from this card id (0)] RecInferNode init failed: build_from_file failed! Error is Common error code. Process Process-3:28: Traceback (most recent call last): File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap self.run() File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/multiprocessing/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/framework/module_base.py", line 41, in process_handler raise error File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/framework/module_base.py", line 36, in process_handler params = self.init_self_args() File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/module/detection/det_pre_node.py", line 13, in init_self_args self.text_detector.init(preprocess=True, model=False, postprocess=False) File "/home/ma-user/work/mindocr/deploy/py_infer/src/infer/infer_base.py", line 29, in init self._init_model() File "/home/ma-user/work/mindocr/deploy/py_infer/src/infer/infer_det.py", line 18, in _init_model self.model = Model( File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/model.py", line 15, in __init__ self.model = _INFER_BACKEND_MAP[backend](**kwargs) File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/lite_model.py", line 16, in __init__ super().__init__(model_path, device, device_id) File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/model_base.py", line 28, in __init__ self._init_model() File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/lite_model.py", line 39, in _init_model self.model.build_from_file(self.model_path, mslite.ModelType.MINDIR, context) File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/site-packages/mindspore_lite/model.py", line 110, in warpper return func(*args, **kwargs) File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/site-packages/mindspore_lite/model.py", line 255, in build_from_file raise RuntimeError( RuntimeError: build_from_file failed! Error is Common error code. Process Process-3:29: Process Process-3:31: Traceback (most recent call last): File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap self.run() File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/multiprocessing/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/framework/module_base.py", line 41, in process_handler raise error File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/framework/module_base.py", line 36, in process_handler params = self.init_self_args() File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/module/detection/det_infer_node.py", line 12, in init_self_args self.text_detector.init(preprocess=False, model=True, postprocess=False) File "/home/ma-user/work/mindocr/deploy/py_infer/src/infer/infer_base.py", line 29, in init self._init_model() File "/home/ma-user/work/mindocr/deploy/py_infer/src/infer/infer_det.py", line 18, in _init_model self.model = Model( File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/model.py", line 15, in __init__ self.model = _INFER_BACKEND_MAP[backend](**kwargs) File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/lite_model.py", line 16, in __init__ super().__init__(model_path, device, device_id) File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/model_base.py", line 28, in __init__ self._init_model() File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/lite_model.py", line 39, in _init_model self.model.build_from_file(self.model_path, mslite.ModelType.MINDIR, context) File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/site-packages/mindspore_lite/model.py", line 110, in warpper return func(*args, **kwargs) File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/site-packages/mindspore_lite/model.py", line 255, in build_from_file raise RuntimeError( RuntimeError: build_from_file failed! Error is Common error code. Traceback (most recent call last): File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap self.run() File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/multiprocessing/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/framework/module_base.py", line 41, in process_handler raise error File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/framework/module_base.py", line 36, in process_handler params = self.init_self_args() File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/module/classification/cls_pre_node.py", line 16, in init_self_args self.text_classifier.init(preprocess=True, model=False, postprocess=False) File "/home/ma-user/work/mindocr/deploy/py_infer/src/infer/infer_base.py", line 29, in init self._init_model() File "/home/ma-user/work/mindocr/deploy/py_infer/src/infer/infer_cls.py", line 18, in _init_model self.model = Model( File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/model.py", line 15, in __init__ self.model = _INFER_BACKEND_MAP[backend](**kwargs) File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/lite_model.py", line 16, in __init__ super().__init__(model_path, device, device_id) File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/model_base.py", line 28, in __init__ self._init_model() File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/lite_model.py", line 39, in _init_model self.model.build_from_file(self.model_path, mslite.ModelType.MINDIR, context) File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/site-packages/mindspore_lite/model.py", line 110, in warpper return func(*args, **kwargs) File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/site-packages/mindspore_lite/model.py", line 255, in build_from_file raise RuntimeError( RuntimeError: build_from_file failed! Error is Common error code. Process Process-3:32: Process Process-3:33: Process Process-3:34: Traceback (most recent call last): Traceback (most recent call last): File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap self.run() File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap self.run() File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/multiprocessing/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/multiprocessing/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/framework/module_base.py", line 41, in process_handler raise error File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/framework/module_base.py", line 41, in process_handler raise error File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/framework/module_base.py", line 36, in process_handler params = self.init_self_args() File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/framework/module_base.py", line 36, in process_handler params = self.init_self_args() File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/module/recognition/rec_pre_node.py", line 16, in init_self_args self.text_recognizer.init(preprocess=True, model=False, postprocess=False) File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/module/classification/cls_infer_node.py", line 17, in init_self_args self.text_classifier.init(preprocess=False, model=True, postprocess=True) File "/home/ma-user/work/mindocr/deploy/py_infer/src/infer/infer_base.py", line 29, in init self._init_model() File "/home/ma-user/work/mindocr/deploy/py_infer/src/infer/infer_base.py", line 29, in init self._init_model() File "/home/ma-user/work/mindocr/deploy/py_infer/src/infer/infer_rec.py", line 61, in _init_model self.__load_model(model_path) Traceback (most recent call last): File "/home/ma-user/work/mindocr/deploy/py_infer/src/infer/infer_cls.py", line 18, in _init_model self.model = Model( File "/home/ma-user/work/mindocr/deploy/py_infer/src/infer/infer_rec.py", line 17, in __load_model model = Model( File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/model.py", line 15, in __init__ self.model = _INFER_BACKEND_MAP[backend](**kwargs) File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/model.py", line 15, in __init__ self.model = _INFER_BACKEND_MAP[backend](**kwargs) File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/lite_model.py", line 16, in __init__ super().__init__(model_path, device, device_id) File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/lite_model.py", line 16, in __init__ super().__init__(model_path, device, device_id) File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/model_base.py", line 28, in __init__ self._init_model() File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/model_base.py", line 28, in __init__ self._init_model() File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/lite_model.py", line 39, in _init_model self.model.build_from_file(self.model_path, mslite.ModelType.MINDIR, context) File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/lite_model.py", line 39, in _init_model self.model.build_from_file(self.model_path, mslite.ModelType.MINDIR, context) File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/site-packages/mindspore_lite/model.py", line 110, in warpper return func(*args, **kwargs) File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/site-packages/mindspore_lite/model.py", line 110, in warpper return func(*args, **kwargs) File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/site-packages/mindspore_lite/model.py", line 255, in build_from_file raise RuntimeError( File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/site-packages/mindspore_lite/model.py", line 255, in build_from_file raise RuntimeError( RuntimeError: build_from_file failed! Error is Common error code. File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap self.run() RuntimeError: build_from_file failed! Error is Common error code. File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/multiprocessing/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/framework/module_base.py", line 41, in process_handler raise error File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/framework/module_base.py", line 36, in process_handler params = self.init_self_args() File "/home/ma-user/work/mindocr/deploy/py_infer/src/parallel/module/recognition/rec_infer_node.py", line 12, in init_self_args self.text_recognizer.init(preprocess=False, model=True, postprocess=False) File "/home/ma-user/work/mindocr/deploy/py_infer/src/infer/infer_base.py", line 29, in init self._init_model() File "/home/ma-user/work/mindocr/deploy/py_infer/src/infer/infer_rec.py", line 61, in _init_model self.__load_model(model_path) File "/home/ma-user/work/mindocr/deploy/py_infer/src/infer/infer_rec.py", line 17, in __load_model model = Model( File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/model.py", line 15, in __init__ self.model = _INFER_BACKEND_MAP[backend](**kwargs) File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/lite_model.py", line 16, in __init__ super().__init__(model_path, device, device_id) File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/model_base.py", line 28, in __init__ self._init_model() File "/home/ma-user/work/mindocr/deploy/py_infer/src/core/model/backend/lite_model.py", line 39, in _init_model self.model.build_from_file(self.model_path, mslite.ModelType.MINDIR, context) File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/site-packages/mindspore_lite/model.py", line 110, in warpper return func(*args, **kwargs) File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/site-packages/mindspore_lite/model.py", line 255, in build_from_file raise RuntimeError( RuntimeError: build_from_file failed! Error is Common error code.
评论 (
0
)
GAOYANG
创建了
任务
登录
后才可以发表评论
状态
待办的
待办的
进行中
已完成
已关闭
负责人
未设置
标签
未设置
标签管理
里程碑
未关联里程碑
未关联里程碑
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)