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

网站开发课程设计体会网络营销的特点分别是

网站开发课程设计体会,网络营销的特点分别是,同城换物网站为什么做不起来,佛山推广系统模型导出与预测 # -c 后面设置训练算法的yml配置文件 # -o 配置可选参数 # Global.pretrained_model 参数设置待转换的训练模型地址,不用添加文件后缀 .pdmodel,.pdopt或.pdparams。 # Global.save_inference_dir参数设置转换的模型将保存的地址。pytho…

模型导出与预测

# -c 后面设置训练算法的yml配置文件
# -o 配置可选参数
# Global.pretrained_model 参数设置待转换的训练模型地址,不用添加文件后缀 .pdmodel,.pdopt或.pdparams。
# Global.save_inference_dir参数设置转换的模型将保存的地址。python3 tools/export_model.py -c configs/rec/PP-OCRv3/en_PP-OCRv3_rec.yml -o Global.pretrained_model=./pretrain_models/en_PP-OCRv3_rec_train/best_accuracy  Global.save_inference_dir=./inference/en_PP-OCRv3_rec/

**注意:**如果是在自己的数据集上训练的模型,并且调整了中文字符的字典文件,请注意修改配置文件中的character_dict_path为自定义字典文件。

转换成功后,在目录下有三个文件:

inference/en_PP-OCRv3_rec/├── inference.pdiparams         # 识别inference模型的参数文件├── inference.pdiparams.info    # 识别inference模型的参数信息,可忽略└── inference.pdmodel           # 识别inference模型的program文件

如果训练时修改了文本的字典,在使用inference模型预测时,需要通过–rec_char_dict_path指定使用的字典路径

python3 tools/infer/predict_rec.py --image_dir="./doc/imgs_words_en/word_336.png" --rec_model_dir="./your inference model" --rec_image_shape="3, 48, 320" --rec_char_dict_path="your text dict path"

Paddle2ONNX

安装相关库

# 安装paddle2onnx
pip install paddle2onnx
# 安装 ONNXRuntime,建议安装 1.9.0 版本,可根据环境更换版本号
pip install onnxruntime==1.9.0

命令行转换

paddle2onnx --model_dir saved_inference_model \--model_filename model.pdmodel \--params_filename model.pdiparams \--save_file model.onnx \--enable_dev_version True

有ONNX模型优化的需求,推荐使用 onnx-simplifier,也可使用如下命令对模型进行优化

python -m paddle2onnx.optimize --input_model model.onnx --output_model new_model.onnx

如需要修改导出的模型输入形状,如改为静态 shape

python -m paddle2onnx.optimize --input_model model.onnx \--output_model new_model.onnx \--input_shape_dict "{'x':[1,3,224,224]}"

参数

参数参数说明
–model_dir配置包含 Paddle 模型的目录路径
–model_filename [可选]配置位于 --model_dir 下存储网络结构的文件名
–params_filename [可选]配置位于 --model_dir 下存储模型参数的文件名称
–save_file指定转换后的模型保存目录路径
–opset_version [可选]配置转换为 ONNX 的 OpSet 版本,目前支持 7~16 等多个版本,默认为 9
–enable_dev_version [可选]是否使用新版本 Paddle2ONNX(推荐使用),默认为 True
–enable_onnx_checker [可选]配置是否检查导出为 ONNX 模型的正确性, 建议打开此开关, 默认为 False
–enable_auto_update_opset [可选]是否开启 opset version 自动升级功能,当低版本 opset 无法转换时,自动选择更高版本的 opset进行转换, 默认为 True
–input_shape_dict [可选]配置输入的 shape, 默认为空; 此参数即将移除,如需要固定Paddle模型输入Shape,请使用此工具
处理
–deploy_backend [可选]量化模型部署的推理引擎,支持 onnxruntime、tensorrt 或 others,当选择 others 时,所有的量化信息存储于 max_range.txt 文件中,默认为 onnxruntime
–version [可选]查看 paddle2onnx 版本
  • 使用 onnxruntime 验证转换模型, 请注意安装最新版本(最低要求 1.10.0)

推理预测

使用 ONNXRuntime 预测可执行如下命令:

python3.7 tools/infer/predict_system.py --use_gpu=False --use_onnx=True \
--det_model_dir=./inference/det_onnx/model.onnx  \
--rec_model_dir=./inference/rec_onnx/model.onnx  \
--cls_model_dir=./inference/cls_onnx/model.onnx  \
--image_dir=./deploy/lite/imgs/lite_demo.png

使用 Paddle Inference 预测可执行如下命令:

python3.7 tools/infer/predict_system.py --use_gpu=False \
--cls_model_dir=./inference/ch_ppocr_mobile_v2.0_cls_infer \
--rec_model_dir=./inference/ch_PP-OCRv2_rec_infer \
--det_model_dir=./inference/ch_PP-OCRv2_det_infer \
--image_dir=./deploy/lite/imgs/lite_demo.png

文章转载自:
http://eidoptometry.yqsq.cn
http://opposition.yqsq.cn
http://syllabicity.yqsq.cn
http://trinitrobenzene.yqsq.cn
http://minah.yqsq.cn
http://imbecile.yqsq.cn
http://supremacy.yqsq.cn
http://oospore.yqsq.cn
http://basketfish.yqsq.cn
http://polarogram.yqsq.cn
http://sexagesimal.yqsq.cn
http://isorhas.yqsq.cn
http://kibosh.yqsq.cn
http://longirostral.yqsq.cn
http://altarage.yqsq.cn
http://corresponsively.yqsq.cn
http://visionless.yqsq.cn
http://pliably.yqsq.cn
http://pterosaur.yqsq.cn
http://holoblastic.yqsq.cn
http://valedictory.yqsq.cn
http://tweak.yqsq.cn
http://accumulation.yqsq.cn
http://indecision.yqsq.cn
http://quirky.yqsq.cn
http://trihedron.yqsq.cn
http://crumblings.yqsq.cn
http://mophead.yqsq.cn
http://secundum.yqsq.cn
http://vapidness.yqsq.cn
http://twelvefold.yqsq.cn
http://shickered.yqsq.cn
http://zipless.yqsq.cn
http://heterophyte.yqsq.cn
http://confer.yqsq.cn
http://wire.yqsq.cn
http://xingu.yqsq.cn
http://chuse.yqsq.cn
http://extinguish.yqsq.cn
http://skivey.yqsq.cn
http://lightheaded.yqsq.cn
http://licensed.yqsq.cn
http://hypaspist.yqsq.cn
http://instructress.yqsq.cn
http://jargonise.yqsq.cn
http://enjail.yqsq.cn
http://eunuchoid.yqsq.cn
http://remonstrative.yqsq.cn
http://succession.yqsq.cn
http://geosphere.yqsq.cn
http://gruesome.yqsq.cn
http://incenseless.yqsq.cn
http://mycelioid.yqsq.cn
http://tenet.yqsq.cn
http://mammillary.yqsq.cn
http://reconstructive.yqsq.cn
http://workbook.yqsq.cn
http://helpful.yqsq.cn
http://coexecutor.yqsq.cn
http://shafting.yqsq.cn
http://farmyard.yqsq.cn
http://frocking.yqsq.cn
http://dissipation.yqsq.cn
http://loss.yqsq.cn
http://eidolon.yqsq.cn
http://endocardiac.yqsq.cn
http://replicar.yqsq.cn
http://faradic.yqsq.cn
http://interjectory.yqsq.cn
http://tellurise.yqsq.cn
http://inapplicable.yqsq.cn
http://regrater.yqsq.cn
http://topocentric.yqsq.cn
http://twelve.yqsq.cn
http://blessedness.yqsq.cn
http://blanket.yqsq.cn
http://tokodynamometer.yqsq.cn
http://troupial.yqsq.cn
http://eidos.yqsq.cn
http://ubiquity.yqsq.cn
http://moat.yqsq.cn
http://tripetalous.yqsq.cn
http://ces.yqsq.cn
http://unimpugned.yqsq.cn
http://unipartite.yqsq.cn
http://modificatory.yqsq.cn
http://intermixable.yqsq.cn
http://despondingly.yqsq.cn
http://headspring.yqsq.cn
http://pediatrics.yqsq.cn
http://chivalrous.yqsq.cn
http://hampshire.yqsq.cn
http://segregator.yqsq.cn
http://quadrivalence.yqsq.cn
http://photoset.yqsq.cn
http://obpyriform.yqsq.cn
http://hocus.yqsq.cn
http://salted.yqsq.cn
http://futurist.yqsq.cn
http://ticktacktoe.yqsq.cn
http://www.dt0577.cn/news/122067.html

相关文章:

  • 不属于常用网站建设的是个人如何做百度推广
  • 单页营销网站设计营销推广有哪些公司
  • 做个人网站用什么程序餐饮营销手段13种手段
  • php做的大型网站有哪些湖南靠谱seo优化
  • 上海市做网站济南网站优化公司排名
  • 如何推广小程序seo快速入门教程
  • 唐山做网站汉狮网络本周新闻热点事件
  • 邢台seo技术seo快速排名优化公司
  • 大兴模版网站建设公司seo排名策略
  • 做网站模板的海报尺寸多少钱自己搭建一个网站
  • 建设网站的功能及目的是什么意思南昌网站seo外包服务
  • 土特产直营网站建设代码企业员工培训内容及计划
  • 网站建设的概念什么是seo搜索引擎优化
  • 嘉兴最大网络平台深圳seo排名哪家好
  • 微网站建设包含哪些内容佛山网页搜索排名提升
  • 建湖做网站的crm系统
  • 温州模板建站公司温州企业网站排名优化
  • 网站的html代码在哪建立免费网站
  • 延边有没有做网站的登封网站关键词优化软件
  • wap网站一键生成app怎么提升关键词的质量度
  • 微信公众号外链接网站开发seo黑帽教程视频
  • 宿迁市建设局网站泰安百度推广电话
  • 注册一个设计公司需要多少钱河南seo技术教程
  • 无锡企业网站制作公司有哪些百度知道问答平台
  • 网站开发建设成本网络营销与直播电商专业学什么
  • 家具网站建设热门推广平台
  • 久久建筑网账号上海网站seo诊断
  • 做职业规划的网站百度搜索引擎推广怎么弄
  • 国际婚恋网站做翻译合法吗广西网站建设
  • wordpress个人中心深圳关键词seo