华为计算微信公众号
昇腾AI开发者公众号
华为计算微博
华为计算今日头条
服务器:银河麒麟、NPU:Ascend 310P3
python版本:3.79
Ascend-cann-toolkit_8.0.RC1
请教老师,使用acl接口推理时报错:
/usr/local/lib64/python3.7/site-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension: warn(f"Failed to load image Python extension: {e}") ACL Init: Loading model ascend/model.om model_id:1 init resource success Start Detect: /home/xiangshan/test/yolov5-ascend-main/acl_net.py:120: Warning: acl.util.numpy_to_ptr will be deprecated. Please use acl.util.bytes_to_ptr instead. ptr = acl.util.numpy_to_ptr(dataset[i]) /home/xiangshan/test/yolov5-ascend-main/acl_net.py:222: Warning: acl.util.ptr_to_numpy will be deprecated. Please use acl.util.ptr_to_bytes instead. data = acl.util.ptr_to_numpy(ptr, (size,), 1) image 1/2 img/bus.jpg: 4 persons, 1 bus, Done. (0.102s) image 2/2 img/zidane.jpg: 2 persons, Done. (0.068s) This detection cost 0s Results saved to img_out/exp4 2 labels saved to img_out/exp4/labels Releasing resources stage: 段错误 (核心已转储)
模型使用的是yolov5s转的onnx to om模型,代码中模型已经加载成功,但是推理时提示段错误,无法排查到原因,特此请教,请求指导,非常感谢。
本帖最后由 匿名用户 于 2025/03/17 09:10:32 编辑
我要发帖子
服务器:银河麒麟、NPU:Ascend 310P3
python版本:3.79
Ascend-cann-toolkit_8.0.RC1
请教老师,使用acl接口推理时报错:
/usr/local/lib64/python3.7/site-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension: warn(f"Failed to load image Python extension: {e}") ACL Init: Loading model ascend/model.om model_id:1 init resource success Start Detect: /home/xiangshan/test/yolov5-ascend-main/acl_net.py:120: Warning: acl.util.numpy_to_ptr will be deprecated. Please use acl.util.bytes_to_ptr instead. ptr = acl.util.numpy_to_ptr(dataset[i]) /home/xiangshan/test/yolov5-ascend-main/acl_net.py:222: Warning: acl.util.ptr_to_numpy will be deprecated. Please use acl.util.ptr_to_bytes instead. data = acl.util.ptr_to_numpy(ptr, (size,), 1) image 1/2 img/bus.jpg: 4 persons, 1 bus, Done. (0.102s) image 2/2 img/zidane.jpg: 2 persons, Done. (0.068s) This detection cost 0s Results saved to img_out/exp4 2 labels saved to img_out/exp4/labels Releasing resources stage: 段错误 (核心已转储)模型使用的是yolov5s转的onnx to om模型,代码中模型已经加载成功,但是推理时提示段错误,无法排查到原因,特此请教,请求指导,非常感谢。