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

记录首次使用yolov8-obb

1.数据格式

之前使用的数据格式是yolov5_obb的数据格式,然后需要转数据格式:

目前的数据只支持四个坐标点标注的数据,参考:If a corner of the rotate rectangle is out of the image range, How to annotate the image? · Issue #7581 · ultralytics/ultralytics · GitHub

. YOLOv8 does not accept more than four points for a single object's annotation 

数据格式转换为:

label_index x0 y0 x1 y1 x2 y2 x3 y3 

数据不完整怎样进行数据标注:

If a corner of the rotate rectangle is out of the image range, How to annotate the image? · Issue #7581 · ultralytics/ultralytics · GitHub

 2.训练环境的配置遇到的问题

1)

subprocess.CalledProcessError: Command '['/opt/conda/bin/python', '-m', 'torch.distributed.launch', '--nproc_per_node', '2', '--master_port', '44569', '/root/.config/Ultralytics/DDP/_temp_dutx5q5j140559331981920.py']' returned non-zero exit status 1.

解决办法:

终端输入:

export MKL_THREADING_LAYER=GNU

2)

ModuleNotFoundError: No module named 'ultralytics'

解决办法,安装依赖库:

pip install ultralytics

3)

ile "/opt/conda/lib/python3.8/importlib/__init__.py", line 127, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level)
ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory

解决办法:

apt-get install
apt-get install libglib2.0-dev

3.训练代码:

from ultralytics import YOLO# Load a model
model = YOLO('yolov8n-obb.yaml')  # build a new model from YAML
model = YOLO('./yolov8n-obb.pt')
# results = model.train(data='carddet.yaml', epochs=100, imgsz=640)
results = model.train(data='carddet.yaml', epochs=400, imgsz=640)

http://www.lryc.cn/news/294155.html

相关文章:

  • 深度学习环境配置:Anaconda 安装和 pip 源
  • 100 个 NLP 面试问题
  • C# OMRON PLC FINS TCP协议简单测试
  • MQTT在linux下服务端和客户端的应用
  • 韦达定理用处多
  • Kotlin-类
  • redis基本数据结构介绍
  • 云数据库RDS云监控
  • 全自动网页生成系统重构版源码
  • Leetcode—33. 搜索旋转排序数组【中等】
  • vulhub中Apache APISIX Dashboard API权限绕过导致RCE(CVE-2021-45232)
  • JavaSE习题 使用函数求最大值、求最大值方法的重载和求和方法的重载
  • 英码科技携手昇腾共建算力底座:推出EA500I超强AI处理能力边缘计算盒子!
  • 蓝桥杯每日一题-----数位dp练习
  • JS(react)图片压缩+图片上传
  • WPF DispatcherTimer用法
  • 【网络安全实验】snort实现高级IDS
  • 19.HarmonyOS App(JAVA)依赖布局DependentLayout使用方法
  • 玩家笔记:幻兽帕鲁搭建服务器开服教程
  • Liunx基本指令
  • 面试题:Redis 分布式锁存在什么问题 ?如何解决 ?
  • Container 命令ctr、crictl 命令
  • 设计模式——七大原则
  • 笔记本电脑的WIFI模块,突然不显示了,网络也连接不上
  • Pytest 与allure测试报告集成
  • MySQL 表的增删改查(基础)
  • 【PDF.js】发票PDF不显示文本的问题
  • C#中检查空值的最佳实践
  • 三层交换组网实验(华为)
  • Android配置GitLab CI/CD持续集成,Shell版本的gitlab-runner,FastLane执行,上传蒲公英