Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ppocrv4推理出错 #738

Open
intjun opened this issue Sep 17, 2024 · 1 comment
Open

ppocrv4推理出错 #738

intjun opened this issue Sep 17, 2024 · 1 comment

Comments

@intjun
Copy link

intjun commented Sep 17, 2024

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

@kk928290341
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants