yolo8实战检测人脸关键点



前言

yolo8可以实现人体姿态估计,如何迁移到人脸关键点检测的任务上呢?本篇基于yolo8pose实现yoloFace Landmark的检测.

一、yolo8特性

yolo5和yolo8的差别还是挺大的,最大的差别是yolo8的集成度.它将detection, pose和segmentation都进行了整合.并且将v5, v7和v8都进行来整合.

二、使用步骤

1.修改数据集的入口

代码如下(示例):

# parent
# ├── ultralytics
# └── datasets
#     └── coco8-pose  ← downloads here (1 MB)

#########################################ori##########################################################################
# # Train/val/test sets as 1) dir: path/to/imgs, 2) file: path/to/imgs.txt, or 3) list: [path/to/imgs1, path/to/imgs2, ..]
# path: ../datasets/coco8-pose  # dataset root dir
# train: images/train  # train images (relative to 'path') 4 images
# val: images/val  # val images (relative to 'path') 4 images
# test:  # test images (optional)
#########################################wqt##########################################################################
# Train/val/test sets as 1) dir: path/to/imgs, 2) file: path/to/imgs.txt, or 3) list: [path/to/imgs1, path/to/imgs2, ..]
path: 
  /home/wqt/Datasets/300W
  # ../datasets/coco8-pose  # dataset root dir
train: 
  train2yolo.txt
  # images/train  # train images (relative to 'path') 4 images
val: 
  test2yolo.txt
  # images/val  # val images (relative to 'path') 4 images
test:  # test images (optional)

#########################################ori##########################################################################
# # Keypoints
# kpt_shape: [17, 3]  # number of keypoints, number of dims (2 for x,y or 3 for x,y,visible)
# flip_idx: [0, 2, 1, 4, 3, 6, 5, 8, 7, 10, 9, 12, 11, 14, 13, 16, 15]
#########################################wqt##########################################################################
# Keypoints
kpt_shape: [68, 3]  # number of keypoints, number of 
  • 0
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

烧技湾

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值