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

网站建设丶金手指花总11房产网站设计公司

网站建设丶金手指花总11,房产网站设计公司,做的网站为什么图片看不了怎么回事,加强网站的建设与管理FastDeploy部署教程(CSharp版本) 1. FastDeploy介绍 FastDeploy是一款全场景、易用灵活、极致高效的AI推理部署工具#xff0c; 支持云边端部署。提供超过 #x1f525;160 Text#xff0c;Vision#xff0c; Speech和跨模态模型#x1f4e6;开箱即用的部署体验#xf…FastDeploy部署教程(CSharp版本) 1. FastDeploy介绍 FastDeploy是一款全场景、易用灵活、极致高效的AI推理部署工具 支持云边端部署。提供超过 160 TextVision Speech和跨模态模型开箱即用的部署体验并实现端到端的推理性能优化。包括 物体检测、字符识别OCR、人脸、人像扣图、多目标跟踪系统、NLP、Stable Diffusion文图生成、TTS 等几十种任务场景满足开发者多场景、多硬件、多平台的产业部署需求。 2. FastDeploy 部署(C) 参考 FastDeploy 安装教程 3. FastDeploy 部署(CSharp) FastDeploy C# SDK的接口实现为用户需要C# API的场景提供解决方案。 3.1 FastDeploy 源码编译 CMAKE_CONFIGURATION_TYPES 属性设置为Release 请不要勾选WITH_GPU和ENABLE_TRT_BACKEND 开启 ENABLE_ORT_BACKENDON ENABLE_PADDLE_BACKENDON ENABLE_OPENVINO_BACKENDON ENABLE_VISIONON ENABLE_TEXTON WITH_CAPION WITH_CSHARPAPION 指定CMAKE_INSTALL_PREFIX 安装路径 生成fastdeploy.sln解决方案文件选择Release版本生成编译点击INSTALL-右键点击生成将编译好的SDK安装到先前指定的目录步骤⑤。 3.2 创建CSharp项目 在项目引用中添加–fastdeploy_csharp nuget 包添加OpenCvSharp、OpenCvSharp.Extensions等包 在debug\relese项目文件夹中添加Fastdeploy的动态链接库 fastdeploy_init.bat install %cd% D:\workSpace\Paddle\deploy\FastDeplyCsharp\FastDeplyCsharp\bin\x64\Debug结果预览 3.3 源代码 //目标检测 public void fastdeployDetInfer(string image_path) {string model_dir D://workSpace//Paddle//models//ppyoloe_crn_l_300e_coco;string model_file model_dir \\ model.pdmodel;string params_file model_dir \\ model.pdiparams;string config_file model_dir \\ infer_cfg.yml;RuntimeOption runtimeoption new RuntimeOption();int device_option 0;if (device_option 0){runtimeoption.UseCpu();}else{runtimeoption.UseGpu();}fastdeploy.vision.detection.PPYOLOE model new fastdeploy.vision.detection.PPYOLOE(model_file, params_file, config_file, runtimeoption, ModelFormat.PADDLE);if (!model.Initialized()){Console.WriteLine(Failed to initialize.\n);}Mat image Cv2.ImRead(image_path);fastdeploy.vision.DetectionResult res model.Predict(image);//Console.WriteLine(res.ToString());Mat res_img fastdeploy.vision.Visualize.VisDetection(image, res, 0.5f, 1, 0.5f);InferPictureBox.Image res_img.ToBitmap(); } // 语义分割 public void fastdeplySegInfer(string image_path) {string model_dir D://workSpace//Paddle//models//PP_LiteSeg_B_STDC2_cityscapes_without_argmax_infer;string model_file model_dir \\ model.pdmodel;string params_file model_dir \\ model.pdiparams;string config_file model_dir \\ deploy.yaml;RuntimeOption runtimeoption new RuntimeOption();runtimeoption.UseCpu();fastdeploy.vision.segmentation.PaddleSegModel model new fastdeploy.vision.segmentation.PaddleSegModel(model_file, params_file, config_file, runtimeoption, ModelFormat.PADDLE);if (!model.Initialized()){Console.WriteLine(Failed to initialize.\n);}Mat image Cv2.ImRead(image_path);fastdeploy.vision.SegmentationResult res model.Predict(image);Console.WriteLine(res.ToString());Mat res_img fastdeploy.vision.Visualize.VisSegmentation(image, res, 0.5f);InferPictureBox.Image res_img.ToBitmap(); }
http://www.huolong8.cn/news/234251/

相关文章:

  • seo网站推广seo可以免费打开网站的软件
  • 利用淘宝联盟做网站赚取佣金重庆最新消息今天封城了
  • 浦项建设公司员工网站无锡市滨湖区建设局网站
  • 太原做网站 小程序亚马逊欧洲站
  • 如何去国外网站看内容石家庄网站怎么建设
  • 做购物网站费用怎么用源码搭建网站
  • 做网站多钱一年wordpress订阅者
  • 广州网站制作一般多少钱建设银行网站怎么设置转账额度
  • 自建网站步骤网站返利程序
  • 南昌画册设计公司wordpress模板seo
  • 微信第三方做网站需要费用吗网站开发与规划
  • 电影聚合网站开发企业邮箱电话人工服务24小时
  • 保定网站设计创业做网站开发
  • wordpress滑动解锁代码温州网站建设选择乐云seo
  • 北京有哪些网站制作公司网络工程师培训班哪里
  • 南通市网站建设我的完广州本地生活app
  • 金山石化网站建设企业网站如何建设
  • 易云自助建站it网站建设
  • 铜陵商城网站建设wordpress自建页面
  • 网站建设正版软件wordpress添加登陆
  • 哪家微网站做的好北京推广服务
  • 双鸭山网站开发员工oa系统
  • 荆州哪个公司做网站微信应用平台开发
  • 龙岗网站的建设分销商城解决方案
  • 教育网站框架模板绵阳市城市建设档案馆网站
  • 网站做会员用什么源码软件二次开发
  • 建视频网站的费用义乌便宜自适应网站建设厂家
  • 自己做的网站被篡改怎么办怎么做网站凡科
  • php建网站教程资源共享网站怎么做
  • 可以推广网站网站布局优化