Skip to content

This is the question of how to change the code (human body[14 point]->human hand[21point]) #146

@chartores

Description

@chartores

This is the question of how to change the code (human body[14 point]->human hand[21point])

As shown in the post below, I have changed that part.

1.dataset_augment.py

  • "class CocoPart(Enum)"
  • "def pose_flip(meta)" -> "flip_list"

2.dataset_prepare.py

  • "def init" -> "transform = list(zip())"
  • "class CocoMetadata:" -> "__coco_parts = 21"

I have a question.
The human body is 14 points. The human hand is 21 points.
So other things can be changed simply by numbers.
But what regularity should this be and change?

Below is the existing code.
transform = list(zip(
[1, 2, 4, 6, 8, 3, 5, 7, 10, 12, 14, 9, 11, 13],
[1, 2, 4, 6, 8, 3, 5, 7, 10, 12, 14, 9, 11, 13]
))
Then I changed it to new below.
transform = list(zip(
[1, 2, 4, 6, 8, 3, 5, 7, 10, 12, 14, 9, 11, 13, 15, 17, 19, 16, 18, 20, 21],
[1, 2, 4, 6, 8, 3, 5, 7, 10, 12, 14, 9, 11, 13, 15, 17, 19, 16, 18, 20, 21]
))
But I don't know if I did it correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions