完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
|
from libs.YOLO import YOLO11
from libs.Utils import * import os,sys,gc import ulab.numpy as np import image if name=="main": # 这里仅为示例,自定义场景请修改为您自己的测试图片、模型路径、标签名称、模型输入大小 img_path="/data/xia.png" kmodel_path="/data/best.kmodel" labels = ["apple","banana","orange"] model_input_size=[320,320] confidence_threshold = 0.5nms_threshold=0.45mask_threshold=0.5img,img_ori=read_image(img_path)rgb888p_size=[img.shape[2],img.shape[1]]# 初始化YOLO11实例yolo=YOLO11(task_type="segment",mode="image",kmodel_path=kmodel_path,labels=labels,rgb888p_size=rgb888p_size,model_input_size=model_input_size,conf_thresh=confidence_threshold,nms_thresh=nms_threshold,mask_thresh=mask_threshold,max_boxes_num=50,debug_mode=0)yolo.config_preprocess()res=yolo.run(img)yolo.draw_result(res,img_ori)yolo.deinit()gc.collect()错误日志 MPY: soft reboot CanMV v1.2.2(based on Micropython e00a144) on 2025-06-25; k230_canmv_01studio with K230 这是正常打印。。。 |
|
相关推荐
|
|
只有小组成员才能发言,加入小组>>
AI_cube训练模型得到了npy文件,没有kmodel文件
778 浏览 0 评论
请问K230 V3.0版本烧录固件和使用IDE到底是烧录哪个啊?
745 浏览 0 评论
445浏览 4评论
AI Cube进行yolov8n模型训练,创建项目目标检测时显示数据集目录下存在除标注和图片外的其他目录如何处理?
467浏览 3评论
autodl算力云在.pt转换onnx文件时正常,但onnx转.kmodel文件时报错,为什么?
556浏览 2评论
如何在大核rtt上把kd_mpi_vicap_start_stream三个摄像头各自出的流拼成一个流呢?
186浏览 2评论
577浏览 2评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-8 09:48 , Processed in 0.792047 second(s), Total 42, Slave 35 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
3305
