X-AnyLabeling icon indicating copy to clipboard operation
X-AnyLabeling copied to clipboard

能否增加单目标关键点检测

Open ljh725 opened this issue 1 year ago • 6 comments

Search before asking

  • [X] I have searched the X-AnyLabeling Docs and issues and found no similar questions.

Question

感谢分享,现有yolo11x-pose、yolov8n-pose模型在多目标图片中会预估所有目标,能否支持增加框选机制实现对单目标的关键点检测,再次感谢。

Additional

No response

ljh725 avatar Dec 16 '24 10:12 ljh725

You only need to define a single goal.

has_visible: true
classes:
  person:
    - nose
    - left_eye
    - right_eye
    - left_ear
    - right_ear
    - left_shoulder
    - right_shoulder
    - left_elbow
    - right_elbow
    - left_wrist
    - right_wrist
    - left_hip
    - right_hip
    - left_knee
    - right_knee
    - left_ankle
    - right_ankle

CVHub520 avatar Dec 16 '24 16:12 CVHub520

您只需定义一个目标。

has_visible: true
classes:
  person:
    - nose
    - left_eye
    - right_eye
    - left_ear
    - right_ear
    - left_shoulder
    - right_shoulder
    - left_elbow
    - right_elbow
    - left_wrist
    - right_wrist
    - left_hip
    - right_hip
    - left_knee
    - right_knee
    - left_ankle
    - right_ankle

关键点名称能否相同,就是一张图片里面的关键点名称都设置为一个,然后标注的数量也不固定。yaml文件应该怎么写

RGB111Crop avatar Jan 10 '25 01:01 RGB111Crop

Hey there! @RGB111Crop, You can set the same name for all key points, or label them with different quantities. However, before doing all of this, please make sure these operations are what you actually need. For example, the above rules are not defined for YOLO-Pose, so if you are certain you want to do this, please write your own script to parse the original JSON label files to meet the data definition requirements of the training framework you are actually using.

CVHub520 avatar Jan 10 '25 01:01 CVHub520

所以需要自己编写脚本转换标签格式,不可以用labeling导出yolo关键点的功能是吗

---- 回复的原邮件 ---- | 发件人 | @.> | | 发送日期 | 2025年01月10日 09:34 | | 收件人 | CVHub520/X-AnyLabeling @.> | | 抄送人 | RGB111Crop @.>, Mention @.> | | 主题 | Re: [CVHub520/X-AnyLabeling] 能否增加单目标关键点检测 (Issue #744) |

Hey there! @RGB111Crop, You can set the same name for all key points, or label them with different quantities. However, before doing all of this, please make sure these operations are what you actually need. For example, the above rules are not defined for YOLO-Pose, so if you are certain you want to do this, please write your own script to parse the original JSON label files to meet the data definition requirements of the training framework you are actually using.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

RGB111Crop avatar Jan 10 '25 01:01 RGB111Crop

This isn't related to X-AnyLabeling. Please refer to the official documentation to learn about YOLO-Pose and how to implement it properly. You can find the details at the official docs: https://docs.ultralytics.com/zh/datasets/pose/#ultralytics-yolo-format

CVHub520 avatar Jan 10 '25 01:01 CVHub520

I understand you want to expedite the data labeling process, but to ensure your dataset can be properly recognized and used by YOLO-Pose, I strongly recommend following the standard workflow:

  1. The keypoint annotation feature in X-AnyLabeling is specifically designed according to YOLO-Pose's data format specifications. Even if you manage to export label files using non-standard methods, they likely won't be properly loaded and trained by YOLO-Pose.

  2. I really suggest first reviewing the YOLO-Pose official documentation (https://docs.ultralytics.com/zh/datasets/pose/) to understand the specific requirements for keypoint data, including keypoint definitions, quantities, and annotation rules.

  3. Then proceed with annotation following the standard workflow provided by X-AnyLabeling. This not only ensures data correctness but also saves time you might spend fixing data issues later.

If you have special annotation requirements, I recommend testing with a small batch of data first to verify that the exported labels can be correctly recognized by your training framework before proceeding with large-scale annotation.

CVHub520 avatar Jan 10 '25 01:01 CVHub520