Skip to content

Conversation

@ctakigawa
Copy link

@ctakigawa ctakigawa commented Sep 25, 2024

背景

https://github.com/fastlabel/fastlabel-application/issues/7597 の対応

リンク

対応内容

  • coco形式変換時のnum_keypointsの算出ロジックを修正
    • 参考URL: https://cocodataset.org/#format-data

      Each keypoint has a 0-indexed location x,y and a visibility flag v defined as v=0: not labeled (in which case x=y=0), v=1: labeled but not visible, and v=2: labeled and visible. A keypoint is considered visible if it falls inside the object segment. "num_keypoints" indicates the number of labeled keypoints (v>0) for a given object (many objects, e.g. crowds and small objects, will have num_keypoints=0).

    • 修正前はkeypointsのvisibility flagに関わらず、keypointsの合計数を出力していた
    • 削除されたキーポイントは除外し、非表示・表示されているキーポイントのみをカウントするよう修正

妥協点

UI before / after

before
sdk_coco_annotations_修正前.json

after
sdk_coco_annotations_修正後.json

テスト

  • num_keypointsのカウント対象が非表示・表示のキーポイントであること
    • 削除されたキーポイントは除外されていること

補足

PF側は下記PRで対応
https://github.com/fastlabel/fastlabel-application/pull/7599

@ctakigawa ctakigawa force-pushed the feature/7597-fix-coco-keypoints branch from 3304a0d to 613c9af Compare September 25, 2024 11:21
@takahiro-tamenishi takahiro-tamenishi merged commit d8ea95c into main Sep 25, 2024
@ctakigawa ctakigawa self-assigned this Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants