mindocr icon indicating copy to clipboard operation
mindocr copied to clipboard

ppocrv4推理出错

Open intjun opened this issue 1 year ago • 1 comments

mindtorch0.3_mindspore2.3.0_torchnpu2.2.0_cann8.0 File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/multiprocessing/process.py", line 118, in start assert not _current_process._config.get('daemon'),
AssertionError: daemonic processes are not allowed to have children [ERROR] MINDOCR(1847:281473157416000,Process-1:34):2024-09-17-06:55:19.239.330 [src/parallel/framework/module_base.py:40] RecInferNode init failed: daemonic processes are not allowed to have children Process Process-1:34: 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 "/tmp/code/mindocr/deploy/py_infer/src/parallel/framework/module_base.py", line 41, in process_handler raise error File "/tmp/code/mindocr/deploy/py_infer/src/parallel/framework/module_base.py", line 36, in process_handler params = self.init_self_args() File "/tmp/code/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 "/tmp/code/mindocr/deploy/py_infer/src/infer/infer_base.py", line 29, in init self._init_model() File "/tmp/code/mindocr/deploy/py_infer/src/infer/infer_rec.py", line 61, in _init_model self.__load_model(model_path) File "/tmp/code/mindocr/deploy/py_infer/src/infer/infer_rec.py", line 17, in __load_model model = Model( File "/tmp/code/mindocr/deploy/py_infer/src/core/model/model.py", line 15, in init self.model = _INFER_BACKEND_MAPbackend File "/tmp/code/mindocr/deploy/py_infer/src/core/model/backend/lite_model.py", line 16, in init super().init(model_path, device, device_id) File "/tmp/code/mindocr/deploy/py_infer/src/core/model/backend/model_base.py", line 28, in init self._init_model() File "/tmp/code/mindocr/deploy/py_infer/src/core/model/backend/lite_model.py", line 23, in _init_model context.target = [self.device.lower()] File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/site-packages/mindspore_lite/context.py", line 272, in target ascend_checker.check_env() File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/site-packages/mindspore_lite/_check_ascend.py", line 77, in check_env return self.check_cann_version() and self.check_lib_path() and self.check_python_deps() File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/site-packages/mindspore_lite/_check_ascend.py", line 193, in check_python_deps p.start() File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.9/multiprocessing/process.py", line 118, in start assert not _current_process._config.get('daemon'),
AssertionError: daemonic processes are not allowed to have children

intjun avatar Sep 17 '24 07:09 intjun

建议使用mindspore=2.2.10, mindspore_lite=2.2.10, mindspore_lite2.3版本存在不兼容问题

kk928290341 avatar Oct 18 '24 08:10 kk928290341