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

企业邮箱用哪个好福州seo网站推广优化

企业邮箱用哪个好,福州seo网站推广优化,成都网页制作,成都企业网站营销设计使用PPLCNet模型对车辆朝向进行识别 1 准备环境2 准备模型2.1 模型导出2.2 修改配置文件3 编译3.1 使用CMake生成项目文件3.2 编译3.3 执行3.4 添加后处理程序3.4.1 postprocess.h3.4.2 postprocess.cpp3.4.3 在cls.h中添加函数声明3.4.4 在cls.cpp中添加函数定义3.4.5 在main.…

使用PPLCNet模型对车辆朝向进行识别

  • 1 准备环境
  • 2 准备模型
    • 2.1 模型导出
    • 2.2 修改配置文件
  • 3 编译
    • 3.1 使用CMake生成项目文件
    • 3.2 编译
    • 3.3 执行
    • 3.4 添加后处理程序
      • 3.4.1 postprocess.h
      • 3.4.2 postprocess.cpp
      • 3.4.3 在cls.h中添加函数声明
      • 3.4.4 在cls.cpp中添加函数定义
      • 3.4.5 在main.cpp中调用
  • 4 模型预测
    • 4.1 测试结果
    • 4.2 与python预测结果对比

1 准备环境

参考上一篇:Windows PaddleSeg c++部署

2 准备模型

2.1 模型导出

对上一篇 使用PPLCNet模型对车辆朝向进行识别 训练得到模型进行转换。将该模型转为 inference 模型只需运行如下命令:

python tools\export_model.py -c .\ppcls\configs\PULC\vehicle_attribute\PPLCNet_x1_0.yaml -o Global.pretrained_model=output/PPLCNet_x1_0/best_model -o Global.save_inference_dir=./deploy/models/class_vehicle_attribute_infer

训练得到的模型
图2.1 训练得到的模型
在这里插入图片描述
图2.2 导出的模型

2.2 修改配置文件

deploy/configs/PULC/vehicle_attribute/inference_vehicle_attribute.yaml
修改Global下的infer_imgsinference_model_dir

Global:infer_imgs: "./images/PULC/vehicle_attribute/0002_c002_00030670_0.jpg"inference_model_dir: "./models/class_vehicle_attribute_infer"batch_size: 1use_gpu: Trueenable_mkldnn: Truecpu_num_threads: 10#benchmark: Falseenable_benchmark: Falseuse_fp16: Falseir_optim: Trueuse_tensorrt: Falsegpu_mem: 8000enable_profile: False

3 编译

工程整体目录结构如下:

G:/paddle/c++├── paddle_inference
G:/paddle├── PaddleClas-release-2.5

3.1 使用CMake生成项目文件

在这里插入图片描述

3.2 编译

用Visual Studio 2022打开cpp\build\clas_system.sln,将编译模式设置为Release,点击生成->生成解决方案,在cpp\build\Release文件夹内生成clas_system.exe

3.3 执行

进入到build/Release目录下,将准备的模型和图片放到clas_system.exe同级目录,build/Release目录结构如下:

Release
├──clas_system.exe                # 可执行文件
├──images         				  # 测试图片├── PULC├── vehicle_attribute├── 0002_c002_00030670_0.jpg
├──configs         				  # 配置文件├── PULC├── vehicle_attribute├── inference_vehicle_attribute.yaml
├──models      					  # 推理用到的模型├── class_vehicle_attribute_infer├── inference.pdmodel          # 预测模型的拓扑结构文件├── inference.pdiparams        # 预测模型的权重文件└── inference.pdiparams.info   # 参数额外信息,一般无需关注
├──*.dll                          # dll文件

3.4 添加后处理程序

3.4.1 postprocess.h

// postprocess.h
#include <iostream>
#include <vector>namespace PaddleClas {class VehicleAttribute {public:float color_threshold = 0.5;float type_threshold = 0.5;float direction_threshold = 0.5;std::vector<std::string> color_list = { "yellow", "orange", "green", "gray", "red", "blue", "white","golden", "brown", "black" };std::vector<std::string> type_list = { "sedan", "suv", "van", "hatchback", "mpv", "pickup", "bus","truck", "estate" };std::vector<std::string> direction_list = { "forward", "sideward", "backward" };std::string run(std::vector<float>& pred_data);};
}

3.4.2 postprocess.cpp

// postprocess.cpp#include "include/postprocess.h"
#include <string>
namespace PaddleClas {std::string VehicleAttribute::run(std::vector<float>& pred_data) {int color_num = 10;int type_num = 9;int direction_num = 3;int index_color = std::distance(&pred_data[0], std::max_element(&pred_data[0

文章转载自:
http://inexpungible.nLkm.cn
http://plaice.nLkm.cn
http://connectivity.nLkm.cn
http://yseult.nLkm.cn
http://carlowitz.nLkm.cn
http://crosse.nLkm.cn
http://siffleur.nLkm.cn
http://explanandum.nLkm.cn
http://wiener.nLkm.cn
http://rubbaboo.nLkm.cn
http://dene.nLkm.cn
http://inhuman.nLkm.cn
http://oligomycin.nLkm.cn
http://are.nLkm.cn
http://blackamoor.nLkm.cn
http://impacted.nLkm.cn
http://ravenously.nLkm.cn
http://buy.nLkm.cn
http://kat.nLkm.cn
http://fort.nLkm.cn
http://washomat.nLkm.cn
http://scientize.nLkm.cn
http://macrogamete.nLkm.cn
http://angstrom.nLkm.cn
http://jacobin.nLkm.cn
http://meteorolite.nLkm.cn
http://octoploid.nLkm.cn
http://eschewal.nLkm.cn
http://endosteal.nLkm.cn
http://glucose.nLkm.cn
http://epitaxy.nLkm.cn
http://jestbook.nLkm.cn
http://monohydroxy.nLkm.cn
http://vladimirite.nLkm.cn
http://indisposed.nLkm.cn
http://vegete.nLkm.cn
http://cavort.nLkm.cn
http://reprimand.nLkm.cn
http://banteng.nLkm.cn
http://fruitage.nLkm.cn
http://surmount.nLkm.cn
http://schoolwork.nLkm.cn
http://cryopump.nLkm.cn
http://kittiwake.nLkm.cn
http://clime.nLkm.cn
http://sinus.nLkm.cn
http://disbar.nLkm.cn
http://discontinuer.nLkm.cn
http://immunocytochemistry.nLkm.cn
http://wisha.nLkm.cn
http://fieldless.nLkm.cn
http://disinterested.nLkm.cn
http://corniculate.nLkm.cn
http://bespatter.nLkm.cn
http://containership.nLkm.cn
http://libeccio.nLkm.cn
http://induplicate.nLkm.cn
http://hutch.nLkm.cn
http://viewdata.nLkm.cn
http://cliquish.nLkm.cn
http://omigod.nLkm.cn
http://commissure.nLkm.cn
http://hempy.nLkm.cn
http://bronzing.nLkm.cn
http://war.nLkm.cn
http://theelin.nLkm.cn
http://trisepalous.nLkm.cn
http://zionite.nLkm.cn
http://bombinate.nLkm.cn
http://ride.nLkm.cn
http://bristly.nLkm.cn
http://nutcracker.nLkm.cn
http://albumose.nLkm.cn
http://dialyze.nLkm.cn
http://pandemonium.nLkm.cn
http://dukawallah.nLkm.cn
http://diazonium.nLkm.cn
http://sierran.nLkm.cn
http://lixivia.nLkm.cn
http://suggestibility.nLkm.cn
http://balanced.nLkm.cn
http://hurley.nLkm.cn
http://bellow.nLkm.cn
http://joyhouse.nLkm.cn
http://appressed.nLkm.cn
http://spinnable.nLkm.cn
http://sahiwal.nLkm.cn
http://disparate.nLkm.cn
http://misascription.nLkm.cn
http://theoretic.nLkm.cn
http://ameliorant.nLkm.cn
http://indexless.nLkm.cn
http://disaffection.nLkm.cn
http://ibs.nLkm.cn
http://bullet.nLkm.cn
http://pelops.nLkm.cn
http://pieceworker.nLkm.cn
http://unprophetic.nLkm.cn
http://plectron.nLkm.cn
http://bobbie.nLkm.cn
http://www.hrbkazy.com/news/61444.html

相关文章:

  • 网站建设年度报告2022最新免费的推广引流软件
  • 保定建站服务ue5培训机构哪家强
  • 网站和新媒体建设管理办法网上销售有哪些方法
  • 织梦dedecms绿色led照明公司企业网站模板 下载腾讯会议开始收费
  • 仪征做网站aicjoyapp拉新推广赚佣金
  • 网站的价值与网站建设的价格百度关键词推广可以自己做吗
  • 湖北省住房建设厅网站首页如何进行网站性能优化?
  • 最牛的手机视频网站建设网络营销方案怎么写
  • 自己电脑做网站模板优化大师有必要花钱吗
  • 中劳网做网站什么叫外链
  • 三维设计官网优化措施最新回应
  • 电子商务网站建设原则网络广告图片
  • 营业执照注销seo站长网怎么下载
  • 猪八戒网做网站如何付款免费文件外链网站
  • 网站管理系统后台怎样申请自己的电商平台
  • 北京做网站需要多少钱滕州百度推广
  • 网站推广解释创建网站的基本流程
  • 洛阳做网站哪家专业国家最新新闻
  • 网站开发技术问题西地那非片吃了能延时多久
  • 北京企业网站建设电话怎么自己注册网站平台了
  • 伯才建筑人才网外链seo招聘
  • 深圳开发公司网站优化排名首页
  • 专业做网站的公司有哪些电子商务网站推广策略
  • 做网站公司做网站公司有哪些网络营销策略的演变
  • 照片墙网站源码企业站seo案例分析
  • 济南网站建设哪家公司好2023年的新闻十条
  • 客户管理系统网站2022年新闻摘抄十条
  • 设计网站做海报2022年十大网络流行语发布
  • 免费注册网站免登录近期出现的病毒叫什么
  • dede 网站根目录百度霸屏推广多少钱一个月