推理出错求助
收藏回复举报
推理出错求助
t('forum.solved') 已解决
发表于2024-09-17 01:58:54
0 查看
python deploy/py_infer/infer.py \ 

    --input_images_dir=test_imgs \ 

    --det_model_path=tools/re0917/ch_PP-OCRv4_det_db_dynamic_output.mindir \ 

    --det_model_name_or_config=ch_pp_det_OCRv4 \ 

    --res_save_dir=result

Process Process-1:19: 

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/detection/det_infer_node.py", line 12, in init_self_args 

    self.text_detector.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_det.py", line 18, in _init_model 

    self.model = Model( 

  File "/tmp/code/mindocr/deploy/py_infer/src/core/model/model.py", line 15, in __init__ 

    self.model = _INFER_BACKEND_MAP[backend](**kwargs) 

  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

我要发帖子