mindspore-lab / mindyolo

A toolbox of yolo models and algorithms based on MindSpore
Apache License 2.0
94 stars 39 forks source link

RuntimeError: Unsupported device target Ascend. #273

Closed lonngxiang closed 2 months ago

lonngxiang commented 6 months ago

运行demo/predict.py 报错

self._context_handle.set_param(param, value)

RuntimeError: Unsupported device target Ascend. This process only supports one of the ['CPU']. Please check whether the Ascend environment is installed and configured correctly, and check whether current mindspore wheel package was built with "-e Ascend". For details, please refer to "Device load error message".



zhanghuiyao commented 6 months ago

看起来是mindspore和cann安装的问题,可以尝试运行以下代码check mindspore是否能正常调用ascend

>>> import mindspore as ms;ms.run_check()
lonngxiang commented 6 months ago
ms.run_check()

image

lonngxiang commented 6 months ago

这是算有问题吗

zhanghuiyao commented 6 months ago

是的 看起来mindspore无法检测到ascend,只能调用到cpu

image
zhanghuiyao commented 6 months ago

可以尝试按照 官网 的流程进行MindSpore和CANN的安装,如果仍然有问题可以到Ascend官网和 MindSpore开源仓 上提交issue

lonngxiang commented 6 months ago

可以尝试按照 官网 的流程进行MindSpore和CANN的安装,如果仍然有问题可以到Ascend官网和 MindSpore开源仓 上提交issue

嗯谢谢,这边MindSpore就是官网步骤安装的 39bd4f589241997f4d6d38bb0226151e_f18f7af1_13585450

fookhsu commented 4 months ago

请问下后续有解决吗,我也遇到类似的问题