首页 > 其他分享 >[开源项目]YOLOv8_Efficient

[开源项目]YOLOv8_Efficient

时间:2023-01-09 19:45:09浏览次数:96  
标签:yaml Efficient py yolov8n yolov8s -- 开源 model YOLOv8

Yolov8_Efficient

img

Simple and efficient use for yolov8


Build Status img imgimgimgimgimgimg

About

This is an unofficial repository maintained by independent developers for learning and communication based on the ultralytics v8 Weights and ultralytics Project. If you have more questions and ideas, please feel free to discuss them together. In addition, if ultralytics releases the latest yolov8 warehouse, it is suggested to give priority to the official one.

Performance

img

New's

  • ... ...
  • 2023/01/09 - add val.py and fix some error
  • 2023/01/07 - fix some error and warning
  • 2023/01/06 - add train.py, detect.py and README.md
  • 2023/01/06 - Create and Init a new repository

Quickstart

1. CLI

To simply use the latest Ultralytics YOLO models

yolo task=detect    mode=train    model=yolov8n.yaml      args=...
          classify       predict        yolov8n-cls.yaml  args=...
          segment        val            yolov8n-seg.yaml  args=...
                         export         yolov8n.pt        format=onnx

2. Python SDK

To use pythonic interface of Ultralytics YOLO model

from ultralytics import YOLO

model = YOLO("yolov8n.yaml")  # create a new model from scratch
model = YOLO(
    "yolov8n.pt"
)  # load a pretrained model (recommended for best training results)
results = model.train(data="coco128.yaml", epochs=100, imgsz=640, ...)
results = model.val()
results = model.predict(source="bus.jpg")
success = model.export(format="onnx")

If you're looking to modify YOLO for R&D or to build on top of it, refer to Using Trainer Guide on our docs.

Pretrained Checkpoints

Model size (pixels) mAPval 50-95 mAPval 50 Speed CPU b1 (ms) Speed V100 b1 (ms) Speed V100 b32 (ms) params (M) FLOPs @640 (B)
yolov8n 640 - - - - - - -
yolov8n-seg 640 - - - - - - -
yolov8s - - - - - -
yolov8-seg - - - - - - - -
yolov8m - - - - - - - -
yolov8m-seg - - - - - - - -
yolov8l - - - - - - - -
yolov8l-seg - - - - - - - -
yolov8x - - - - - - - -
yolov8x-seg - - - - - - - -
  • TODO:Model testing and validation in progress

Install

pip install

pip install ultralytics

Development

git clone [email protected]:isLinXu/YOLOv8_Efficient.git
cd YOLOv8_Efficient
cd ultralytics-master
pip install -e .

img

Usage

Train

  • Single-GPU training:
python train.py --data coco128.yaml --weights weights/yolov8ns.pt --img 640  # from pretrained (recommended)
python train.py --data coco128.yaml --weights '' --cfg yolov8ns.yaml --img 640  # from scratch

Use IDE Pycharm

img

  • Multi-GPU DDP training:
    python -m torch.distributed.run --nproc_per_node 4 --master_port 1 train.py --data coco128.yaml --weights yolov8ns.pt --img 640 --device 0,1,2,3

detect

python detect.py --weights yolov8s.pt --source 0                               # webcam
                                                     img.jpg                         # image
                                                     vid.mp4                         # video
                                                     screen                          # screenshot
                                                     path/                           # directory
                                                     list.txt                        # list of images
                                                     list.streams                    # list of streams
                                                     'path/*.jpg'                    # glob
                                                     'https://youtu.be/Zgi9g1ksQHc'  # YouTube
                                                     'rtsp://example.com/media.mp4'  # RTSP, RTMP, HTTP stream

Use IDE Pycharm

img

val

  • i.e coco128:
img img img
img img img

Usage:

python val.py --weights yolov8n.pt --data coco128.yaml --img 640

Usage - formats:

python val.py --weights yolov8s.pt                 # PyTorch
                              yolov8s.torchscript        # TorchScript
                              yolov8s.onnx               # ONNX Runtime or OpenCV DNN with --dnn
                              yolov8s_openvino_model     # OpenVINO
                              yolov8s.engine             # TensorRT
                              yolov8s.mlmodel            # CoreML (macOS-only)
                              yolov8s_saved_model        # TensorFlow SavedModel
                              yolov8s.pb                 # TensorFlow GraphDef
                              yolov8s.tflite             # TensorFlow Lite
                              yolov8s_edgetpu.tflite     # TensorFlow Edge TPU
                              yolov8s_paddle_model       # PaddlePaddle

Use IDE Pycharm img

标签:yaml,Efficient,py,yolov8n,yolov8s,--,开源,model,YOLOv8
From: https://www.cnblogs.com/isLinXu/p/17038363.html

相关文章

  • Python经典开源项目
    Python-100-Days项目地址:https://github.com/jackfrued/Python-100-DaysPython-100-Days就是我上面说的“保姆级”教程,他的内容面面俱到包括了Python开发的方方面面,......
  • 两款开源.NET工作流引擎 Elsa 与ccflow使用比较
    ​相对java开源的工作流程引擎.net开源的工作流程引擎相对较少,这里整理两款.net开源工作流引擎,做一下对比使用。elsa示例代码:Githubd地址:https://github.com/zhenl/MyElsac......
  • 让开源和标准成为云原生的确定性力量
    图片来源:预见2023·吴晓波年终秀纵观过去几年云原生技术的发展历程,开放、标准的开源生态对云原生技术持续演进起到极大推动作用。开源生态带来了众多云原生领域技术创......
  • flash实用工具类+开源包收藏
    ​​​​ActionScriptUtilityClassTweener​​TweeningPlatform​​​​tween24​​ –一位日本人写的tween库​​Tweener​​Audio​​as3soundeditorlib​​​​ASA......
  • 【开源代码】运动模糊时准确检测和定位线段,通用的帧事件特征融合网络
    以下内容来自从零开始机器人SLAM知识星球每日更新内容点击领取学习资料→机器人SLAM学习资料大礼包论文##开源代码#DetectingLineSegmentsinMotion-blurredImag......
  • 一个专注推荐.Net开源项目的榜单
    大家好,我是编程乐趣,从7月份开始推荐开源项目,已经推荐了接近100个开源项目了,其中绝大部分是有关.Net的开源项目,也受到大家非常多人的喜欢。由于公众号不方便查询,很多人又想......
  • RocketMQ 多语言 SDK 开源贡献召集令
    作者:艾阳坤目前ApacheRocketMQ5.0SDK[1]正在社区开源,开发与迭代也在火热进行中,欢迎广大社区的朋友们能够参与其中。我们欢迎任何形式的贡献,包括但不限于新feature......
  • .Net 7 被Microsoft的开源免费PowerToys工具独立附带
    楔子什么是PowerToys?MicrosoftPowerToys是一组实用工具,可帮助高级用户调整和简化其Windows体验,从而提高工作效率。简而言之,就是给最新的windows11系统增加各种强劲......
  • score 开源工作负载指南
    score是基于容器的,开源,平台无关的,工作负载指南,基于一套命令可以解决k8s。docker-compose等各种环境的问题说明score是一个很不错的工具,我们以前包含了terraform,或者基......
  • 适合编程初学者的开源项目:小游戏2048(Go语言版)
    目标为编程初学者打造入门学习项目,使用各种主流编程语言来实现。2048游戏规则一共16个单元格,初始时由2或者4构成。1、手指向一个方向滑动,所有格子会向那个方向运动。2......