mindspore mindyolo目标检测华为昇腾上推理使用

参考:

https://github.com/mindspore-lab/mindyolo

使用案例:

https://github.com/mindspore-lab/mindyolo/blob/master/GETTING_STARTED.md

安装:

matlab 复制代码
pip install mindyolo

特别注意opencv-python、opencv-python-headless版本问题,不然会遇到ImportError: libGL.so.1: cannot open shared object file: No such file or directory等问题

代码

1)下载项目

matlab 复制代码
git clone https://github.com/mindspore-lab/mindyolo

2)运行测试

模型权重下载:https://github.com/mindspore-lab/mindyolo/blob/master/MODEL_ZOO.md

测试这种命令形式用华为昇腾npu推理速度不算快

matlab 复制代码
cd mindyolo

# Run with Ascend (By default)华为昇腾npu推理
python demo/predict.py --config ./configs/yolov7/yolov7.yaml --weight=/path_to_ckpt/WEIGHT.ckpt --image_path /path_to_image/IMAGE.jpg

# Run with GPU
python demo/predict.py --config ./configs/yolov7/yolov7.yaml --weight=/path_to_ckpt/WEIGHT.ckpt --image_path /path_to_image/IMAGE.jpg --device_target=GPU

## 我这里用的yolov7-tiny测试
python demo/predict.py --config ./configs/yolov7/yolov7-tiny.yaml --weight=../yolov7-tiny_300e_mAP375-d8972c94.ckpt --image_path  ../17people.jpg --device_target=CPU

推理图片结果保存在runs_infer下

相关推荐
ZGIAI28 分钟前
ZGI 混合检索:汇集候选并统一重排
人工智能·架构
ZGIAI29 分钟前
ZGI 运行日志:还原任务与节点状态
人工智能·架构
Scott9999HH33 分钟前
2026 中小企业如何破局 AI 搜索?轻量化 GEO 优化系统架构设计与 Python 实战落地
人工智能
甲维斯1 小时前
opencode的“恶果”来了,吃掉100G空间!
人工智能
IT大白鼠1 小时前
PentestGPT作为AI运维编排工作流自动化底座的技术架构与应用价值评估
运维·人工智能·自动化·pentestgpt
yurenpai(27届找实习中)1 小时前
从零读懂 AI 智能客服(一):模块职责与 SSE 聊天链路(后端架构)
java·人工智能·架构·langchain4j
别动我齐刘海2 小时前
机器人运动控制学习4——状态估计 State Estimation
c++·人工智能·学习·目标检测·机器学习·机器人·自动驾驶
Behaviour2 小时前
Unity AI 生态横评对比:官方 AI Beta / Unity CLI / 团结 Codely / 社区 MCP 四大阵营选型
人工智能·unity·ai·游戏引擎·aigc·ai编程
盈飞无限2 小时前
AI智能SPC软件,制造业质量数字化转型核心
人工智能
狂云歌2 小时前
2025年读书回顾,AI+游戏+历史
人工智能·学习·游戏