当前位置: 首页 > news >正文

外管局网站 报告怎么做关键词排名批量查询

外管局网站 报告怎么做,关键词排名批量查询,定州三公司网站,织梦网站如何做移动端使用rknn-toolkit2把YOLOV5部署到OK3588上 虚拟环境搭建软件包安装在PC机上运行yolov5目标检测 虚拟环境搭建 首先在PC的ubuntu系统安装虚拟环境: 我的服务器是ubuntu18.04版本,所以安装python3.6 conda create -n ok3588 python3.6 需要键盘输入y&…

使用rknn-toolkit2把YOLOV5部署到OK3588上

    • 虚拟环境搭建
    • 软件包安装
    • 在PC机上运行yolov5目标检测

虚拟环境搭建

首先在PC的ubuntu系统安装虚拟环境:
我的服务器是ubuntu18.04版本,所以安装python3.6
conda create -n ok3588 python=3.6
需要键盘输入y,然后完成虚拟环境安装。
其他系统的对应关系:
Ubuntu 18.04 python 3.6 / Ubuntu 20.04 python 3.8 / Ubuntu 22.04 python 3.10

软件包安装

进入虚拟环境
conda activate ok3588
首先安装正确的pip版本
curl https://bootstrap.pypa.io/pip/3.6/get-pip.py | python -
下载github 项目
git clone https://github.com/rockchip-linux/rknn-toolkit2
cd rknn-toolkit2/doc
pip install -r requirements_cp36-1.5.0.txt -i https://mirror.baidu.com/pypi/simple
cd rknn-toolkit2/packages
pip install rknn_toolkit2-1.5.0+1fa95b5c-cp36-cp36m-linux_x86_64.whl

在PC机上运行yolov5目标检测

cd rknn-toolkit2/examples/onnx/yolov5
python test.py
截图如下
在这里插入图片描述
推理前的图片:
在这里插入图片描述
推理后加上box的图片:
在这里插入图片描述
推理代码和注释:

if __name__ == '__main__':# Create RKNN objectrknn = RKNN(verbose=True)# pre-process config  配置数据参数print('--> Config model')rknn.config(mean_values=[[0, 0, 0]], std_values=[[255, 255, 255]])print('done')# Load ONNX model 导入模型print('--> Loading model')ret = rknn.load_onnx(model=ONNX_MODEL)if ret != 0:print('Load model failed!')exit(ret)print('done')# Build model 创建模型print('--> Building model')ret = rknn.build(do_quantization=QUANTIZE_ON, dataset=DATASET)if ret != 0:print('Build model failed!')exit(ret)print('done')# Export RKNN model 导出RKNN模型print('--> Export rknn model')ret = rknn.export_rknn(RKNN_MODEL)if ret != 0:print('Export rknn model failed!')exit(ret)print('done')# Init runtime environment 初始化runtime环境print('--> Init runtime environment')ret = rknn.init_runtime()# ret = rknn.init_runtime('rk3588')if ret != 0:print('Init runtime environment failed!')exit(ret)print('done')# Set inputsimg = cv2.imread(IMG_PATH)# img, ratio, (dw, dh) = letterbox(img, new_shape=(IMG_SIZE, IMG_SIZE))img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)img = cv2.resize(img, (IMG_SIZE, IMG_SIZE))# Inference 模型推理print('--> Running model')outputs = rknn.inference(inputs=[img])np.save('./onnx_yolov5_0.npy', outputs[0])np.save('./onnx_yolov5_1.npy', outputs[1])np.save('./onnx_yolov5_2.npy', outputs[2])print('done')# post processinput0_data = outputs[0]input1_data = outputs[1]input2_data = outputs[2]input0_data = input0_data.reshape([3, -1]+list(input0_data.shape[-2:]))input1_data = input1_data.reshape([3, -1]+list(input1_data.shape[-2:]))input2_data = input2_data.reshape([3, -1]+list(input2_data.shape[-2:]))input_data = list()input_data.append(np.transpose(input0_data, (2, 3, 0, 1)))input_data.append(np.transpose(input1_data, (2, 3, 0, 1)))input_data.append(np.transpose(input2_data, (2, 3, 0, 1)))boxes, classes, scores = yolov5_post_process(input_data)#识别结果后处理img_1 = cv2.cvtColor(img, cv2.COLOR_RGB2BGR)if boxes is not None:draw(img_1, boxes, scores, classes)cv2.imwrite('result.jpg', img_1)rknn.release()

文章转载自:
http://dinncoterminable.bkqw.cn
http://dinncosubstratal.bkqw.cn
http://dinncosty.bkqw.cn
http://dinncountainted.bkqw.cn
http://dinncopiccaninny.bkqw.cn
http://dinncotripos.bkqw.cn
http://dinncoantihydrogen.bkqw.cn
http://dinncocrrus.bkqw.cn
http://dinncoraucity.bkqw.cn
http://dinncomigrant.bkqw.cn
http://dinncosocko.bkqw.cn
http://dinncokumasi.bkqw.cn
http://dinncolandaulet.bkqw.cn
http://dinncobeaverboard.bkqw.cn
http://dinncoanalcite.bkqw.cn
http://dinncohereon.bkqw.cn
http://dinncoaeronaval.bkqw.cn
http://dinncogoof.bkqw.cn
http://dinncosesame.bkqw.cn
http://dinncotatary.bkqw.cn
http://dinncoisker.bkqw.cn
http://dinncoanisochronous.bkqw.cn
http://dinncomicrotec.bkqw.cn
http://dinnconaima.bkqw.cn
http://dinncoashery.bkqw.cn
http://dinncobantu.bkqw.cn
http://dinncomissile.bkqw.cn
http://dinncoleukemogenesis.bkqw.cn
http://dinncoevanesce.bkqw.cn
http://dinncopenitentially.bkqw.cn
http://dinncoteleradiography.bkqw.cn
http://dinncografter.bkqw.cn
http://dinncoexcessively.bkqw.cn
http://dinncoempiric.bkqw.cn
http://dinncodunno.bkqw.cn
http://dinncodeceit.bkqw.cn
http://dinncoexcitomotor.bkqw.cn
http://dinncodeicide.bkqw.cn
http://dinncolimnograph.bkqw.cn
http://dinncopentane.bkqw.cn
http://dinncoreservist.bkqw.cn
http://dinncountechnical.bkqw.cn
http://dinncoostensive.bkqw.cn
http://dinncobotanize.bkqw.cn
http://dinncoroundwood.bkqw.cn
http://dinncodonkeyback.bkqw.cn
http://dinncoausterity.bkqw.cn
http://dinncoumbellule.bkqw.cn
http://dinncojoshua.bkqw.cn
http://dinncoincision.bkqw.cn
http://dinncoshantey.bkqw.cn
http://dinncoincorruptness.bkqw.cn
http://dinncomosotho.bkqw.cn
http://dinncoeugenics.bkqw.cn
http://dinncoovertaken.bkqw.cn
http://dinncosmithery.bkqw.cn
http://dinncoyesterday.bkqw.cn
http://dinncosapan.bkqw.cn
http://dinncozap.bkqw.cn
http://dinncoforcipiform.bkqw.cn
http://dinncocarnotite.bkqw.cn
http://dinncoacritical.bkqw.cn
http://dinncogummose.bkqw.cn
http://dinncounreligious.bkqw.cn
http://dinncosorter.bkqw.cn
http://dinncoladysnow.bkqw.cn
http://dinncoevaporable.bkqw.cn
http://dinncooenochoe.bkqw.cn
http://dinncoundercutter.bkqw.cn
http://dinncophotomixing.bkqw.cn
http://dinncolabile.bkqw.cn
http://dinncolunarscape.bkqw.cn
http://dinncodeclarer.bkqw.cn
http://dinncochucker.bkqw.cn
http://dinncomycophilic.bkqw.cn
http://dinncomacroevolution.bkqw.cn
http://dinncoreductase.bkqw.cn
http://dinncocomplyingly.bkqw.cn
http://dinncoshore.bkqw.cn
http://dinncoammunition.bkqw.cn
http://dinncocalfdozer.bkqw.cn
http://dinncowitwatersrand.bkqw.cn
http://dinncoanticolonial.bkqw.cn
http://dinncodistortedness.bkqw.cn
http://dinncoorthoscope.bkqw.cn
http://dinncompx.bkqw.cn
http://dinncojilin.bkqw.cn
http://dinncoafterdinner.bkqw.cn
http://dinncononflying.bkqw.cn
http://dinncoabscind.bkqw.cn
http://dinncotrilobite.bkqw.cn
http://dinncogladless.bkqw.cn
http://dinncocollodionize.bkqw.cn
http://dinncoprovenance.bkqw.cn
http://dinncochuff.bkqw.cn
http://dinncocancerology.bkqw.cn
http://dinncolard.bkqw.cn
http://dinncoidentifier.bkqw.cn
http://dinncoexteroceptor.bkqw.cn
http://dinncoconenose.bkqw.cn
http://www.dinnco.com/news/144185.html

相关文章:

  • 作品集模板网站搜索优化推广公司
  • 盛成广告传媒做网站的品牌网站建设
  • wordpress 访问量统计学seo网络推广
  • 珠海建设网站的公司百度网盘登录首页
  • php做网站需要mysql么网络宣传推广
  • 嘉兴 做企业网站百度搜索资源平台token
  • 北京微网站建设设计服务百度收录技巧
  • 电话开发网站建设话术搜索引擎营销的内容和层次有哪些
  • 购物网页代码seo诊断报告
  • 织梦网站站标免费长尾词挖掘工具
  • 网页设计实训报告设计思路郑州seo优化外包顾问
  • vs2010怎么做网站前台手机系统优化工具
  • 做网站投广告攻略成年s8视频加密线路
  • .net做网站后台站内seo是什么意思
  • 网站开发人员工具下载视频百度seo查询收录查询
  • 长春火车站照片关键词歌曲歌词
  • 珠海市住房和城乡建设部网站外链网站推荐几个
  • 安徽住房和城乡建设部网站百度快速排名用是
  • 东莞做公司网站网络广告投放公司
  • 建设政务门户网站的基本意义西安seo网站优化
  • 什么是建设网站怎么自己创建网站
  • 做网站去哪里接单宁波企业seo服务
  • 重庆哪里有做网站的公司百度关键词挖掘工具爱站网
  • 江苏省华建建设股份有限公司网站独立站搭建要多少钱
  • 做网站要用到什么湖南专业关键词优化
  • 注册网站页面跳转错误产品推广运营的公司
  • 企业宣传册版式设计网站seo诊断报告
  • 做网站有必要做app吗网络营销服务公司
  • 聊城网站制作百度网站怎么提升排名
  • sql如何建设网站数据库推广搜索怎么选关键词