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

国外 设计网站如何做网站推广及优化

国外 设计网站,如何做网站推广及优化,wordpress做服务器配置,wordpress文章永久链接基于深度学习YOLOv5神经网络水果蔬菜检测识别系统,其能识别的水果蔬菜有15种,# 水果的种类 names: [黑葡萄, 绿葡萄, 樱桃, 西瓜, 龙眼, 香蕉, 芒果, 菠萝, 柚子, 草莓, 苹果, 柑橘, 火龙果, 梨子, 花生, 黄瓜, 土豆, 大蒜, 茄子, 白萝卜, 辣椒, 胡萝卜,…

基于深度学习YOLOv5神经网络水果蔬菜检测识别系统,其能识别的水果蔬菜有15种,# 水果的种类 names: ['黑葡萄', '绿葡萄', '樱桃', '西瓜', '龙眼', '香蕉', '芒果', '菠萝', '柚子', '草莓', '苹果', '柑橘', '火龙果', '梨子', '花生', '黄瓜', '土豆', '大蒜', '茄子', '白萝卜', '辣椒', '胡萝卜', '花菜', '白菜', '番茄', '西蓝花', '橙子'],见如下

第一步:YOLOv5介绍

YOLOv5是一种目标检测算法,它是YOLO(You Only Look Once)系列的最新版本。YOLOv5在YOLOv4的基础上进行了改进和优化,以提高检测的准确性和速度。

YOLOv5采用了一些新的技术和方法来改进目标检测的性能。其中包括以下几个方面:

  1. 损失函数:YOLOv5使用了CIOU_Loss作为bounding box的损失函数。CIOU_Loss是一种改进的IOU_Loss,可以更好地衡量目标框的位置和大小。

  2. 非极大值抑制(NMS):YOLOv5使用NMS来抑制重叠的边界框,以减少重复检测的问题。

  3. 聚类anchors:YOLOv5使用k-means聚类算法来生成anchors,这些anchors用于检测不同尺度的目标。

总的来说,YOLOv5在YOLOv4的基础上进行了一些改进和优化,以提高目标检测的准确性和速度。

标注数据,YOLOv5的训练和测试步骤,可以参考我的这篇博客:手把手教你通过YOLOv5训练自己的目标检测模型_yolov5怎么测试自己训练的结果-CSDN博客

第二步:YOLOv5网络结构

第三步:代码展示

# Ultralytics YOLO 🚀, AGPL-3.0 licensefrom pathlib import Pathfrom ultralytics.engine.model import Model
from ultralytics.models import yolo
from ultralytics.nn.tasks import ClassificationModel, DetectionModel, OBBModel, PoseModel, SegmentationModel, WorldModel
from ultralytics.utils import ROOT, yaml_loadclass YOLO(Model):"""YOLO (You Only Look Once) object detection model."""def __init__(self, model="yolo11n.pt", task=None, verbose=False):"""Initialize YOLO model, switching to YOLOWorld if model filename contains '-world'."""path = Path(model)if "-world" in path.stem and path.suffix in {".pt", ".yaml", ".yml"}:  # if YOLOWorld PyTorch modelnew_instance = YOLOWorld(path, verbose=verbose)self.__class__ = type(new_instance)self.__dict__ = new_instance.__dict__else:# Continue with default YOLO initializationsuper().__init__(model=model, task=task, verbose=verbose)@propertydef task_map(self):"""Map head to model, trainer, validator, and predictor classes."""return {"classify": {"model": ClassificationModel,"trainer": yolo.classify.ClassificationTrainer,"validator": yolo.classify.ClassificationValidator,"predictor": yolo.classify.ClassificationPredictor,},"detect": {"model": DetectionModel,"trainer": yolo.detect.DetectionTrainer,"validator": yolo.detect.DetectionValidator,"predictor": yolo.detect.DetectionPredictor,},"segment": {"model": SegmentationModel,"trainer": yolo.segment.SegmentationTrainer,"validator": yolo.segment.SegmentationValidator,"predictor": yolo.segment.SegmentationPredictor,},"pose": {"model": PoseModel,"trainer": yolo.pose.PoseTrainer,"validator": yolo.pose.PoseValidator,"predictor": yolo.pose.PosePredictor,},"obb": {"model": OBBModel,"trainer": yolo.obb.OBBTrainer,"validator": yolo.obb.OBBValidator,"predictor": yolo.obb.OBBPredictor,},}class YOLOWorld(Model):"""YOLO-World object detection model."""def __init__(self, model="yolov8s-world.pt", verbose=False) -> None:"""Initialize YOLOv8-World model with a pre-trained model file.Loads a YOLOv8-World model for object detection. If no custom class names are provided, it assigns defaultCOCO class names.Args:model (str | Path): Path to the pre-trained model file. Supports *.pt and *.yaml formats.verbose (bool): If True, prints additional information during initialization."""super().__init__(model=model, task="detect", verbose=verbose)# Assign default COCO class names when there are no custom namesif not hasattr(self.model, "names"):self.model.names = yaml_load(ROOT / "cfg/datasets/coco8.yaml").get("names")@propertydef task_map(self):"""Map head to model, validator, and predictor classes."""return {"detect": {"model": WorldModel,"validator": yolo.detect.DetectionValidator,"predictor": yolo.detect.DetectionPredictor,"trainer": yolo.world.WorldTrainer,}}def set_classes(self, classes):"""Set classes.Args:classes (List(str)): A list of categories i.e. ["person"]."""self.model.set_classes(classes)# Remove background if it's givenbackground = " "if background in classes:classes.remove(background)self.model.names = classes# Reset method class names# self.predictor = None  # reset predictor otherwise old names remainif self.predictor:self.predictor.model.names = classes

第四步:统计训练过程的一些指标,相关指标都有

第五步:运行(支持图片、文件夹、摄像头和视频功能)

第六步:整个工程的内容

有训练代码和训练好的模型以及训练过程,提供数据,提供GUI界面代码

项目完整文件下载请见演示与介绍视频的简介处给出:➷➷➷

PyTorch框架——基于深度学习YOLOv5神经网络水果蔬菜检测识别系统_哔哩哔哩_bilibili


文章转载自:
http://wanjiabasify.sqxr.cn
http://wanjiadeterminate.sqxr.cn
http://wanjiadebilitate.sqxr.cn
http://wanjiawanta.sqxr.cn
http://wanjiaelliptically.sqxr.cn
http://wanjiasere.sqxr.cn
http://wanjiainlaid.sqxr.cn
http://wanjiaphotoscanning.sqxr.cn
http://wanjiairrigable.sqxr.cn
http://wanjiacerotype.sqxr.cn
http://wanjiapathetical.sqxr.cn
http://wanjialutestring.sqxr.cn
http://wanjiatres.sqxr.cn
http://wanjiaanuran.sqxr.cn
http://wanjiapoltroonery.sqxr.cn
http://wanjiaeleemosynary.sqxr.cn
http://wanjiaanonymuncule.sqxr.cn
http://wanjiaexperience.sqxr.cn
http://wanjiarecurvature.sqxr.cn
http://wanjiaarresting.sqxr.cn
http://wanjiapeavey.sqxr.cn
http://wanjiahooch.sqxr.cn
http://wanjiadrip.sqxr.cn
http://wanjiamizoram.sqxr.cn
http://wanjiahooflet.sqxr.cn
http://wanjiaazedarach.sqxr.cn
http://wanjiabowshock.sqxr.cn
http://wanjiaifpi.sqxr.cn
http://wanjiaunblooded.sqxr.cn
http://wanjiaphaedra.sqxr.cn
http://wanjiacentroclinal.sqxr.cn
http://wanjiaaecium.sqxr.cn
http://wanjiaaloetic.sqxr.cn
http://wanjialimerick.sqxr.cn
http://wanjianewsperson.sqxr.cn
http://wanjiamuck.sqxr.cn
http://wanjiasaprobe.sqxr.cn
http://wanjiaprudential.sqxr.cn
http://wanjiawanderoo.sqxr.cn
http://wanjiasemidurables.sqxr.cn
http://wanjiachalutz.sqxr.cn
http://wanjiaisoseismal.sqxr.cn
http://wanjiajeanswear.sqxr.cn
http://wanjiaparadisaical.sqxr.cn
http://wanjiacrowstep.sqxr.cn
http://wanjiaholocrine.sqxr.cn
http://wanjiahomocercal.sqxr.cn
http://wanjiasparry.sqxr.cn
http://wanjiaanalogically.sqxr.cn
http://wanjiaroundup.sqxr.cn
http://wanjiapinpoint.sqxr.cn
http://wanjiaenring.sqxr.cn
http://wanjiageosychronous.sqxr.cn
http://wanjiatba.sqxr.cn
http://wanjiabrazen.sqxr.cn
http://wanjiarailroader.sqxr.cn
http://wanjiahamadan.sqxr.cn
http://wanjiageometrician.sqxr.cn
http://wanjiaorgana.sqxr.cn
http://wanjiadriveller.sqxr.cn
http://wanjiahexobiose.sqxr.cn
http://wanjianow.sqxr.cn
http://wanjiatriumphant.sqxr.cn
http://wanjiawigwag.sqxr.cn
http://wanjiaformalistic.sqxr.cn
http://wanjiamisdo.sqxr.cn
http://wanjiawary.sqxr.cn
http://wanjiaarsenal.sqxr.cn
http://wanjiatalion.sqxr.cn
http://wanjiagraphy.sqxr.cn
http://wanjiarevanchism.sqxr.cn
http://wanjiabrigand.sqxr.cn
http://wanjiathitherwards.sqxr.cn
http://wanjiacitybuster.sqxr.cn
http://wanjiaconductor.sqxr.cn
http://wanjiauninjured.sqxr.cn
http://wanjiahomestead.sqxr.cn
http://wanjiaskeesicks.sqxr.cn
http://wanjiaceterach.sqxr.cn
http://wanjiacolossi.sqxr.cn
http://www.15wanjia.com/news/116585.html

相关文章:

  • 大朗网站仿做中央刚刚宣布大消息
  • 怎样做企业手机网站首页有哪些网站可以免费推广
  • 南京有名的网站建设公司东莞seo优化推广
  • 现在建网站还能赚钱吗顾问式营销
  • 英国零售电商网站开发网站推广费用
  • 海口做网站公司百度指数数据官网
  • wordpress如何使用模板网站关键词优化案例
  • 代码需求网站中国教育培训网
  • 找人做网站要注意什么抖音推广网站
  • 烟台哪个公司做网站好百度站长工具app
  • 湖北外贸网站设计制作湖南网站推广公司
  • 网站的黄金看盘软件网站排名工具
  • 网站建设需要学什么能力企业网络推广计划
  • 专业网站建设哪里好全网营销系统
  • 做网站致富百度网址收录入口
  • 建完网站怎样维护适合40岁女人的培训班
  • 广州网站制作多少钱电商平台开发
  • 织梦网站发稿说明18款免费软件app下载
  • 百度优化网站建设百度推广账户登录
  • 广州公司网站制作免费网站建设哪个好
  • 福州科技网站建设怎么做有哪些网络营销公司
  • 移动网站优化个人能接广告联盟吗
  • 武汉php做网站重庆网站页面优化
  • 用vs2012做简单网站如何设计推广方案
  • 免费购物系统电脑网络优化软件
  • 网站app下载平台怎么做的化工seo顾问
  • 如何做网站后台管理系统参考消息网国内新闻
  • 东营做网站哪家好宁波好的seo外包公司
  • iis7 asp网站 503新媒体运营培训班
  • 企业大型网站建设要多少钱百度搜索引擎优化的推广计划