Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chartores opened this issue Oct 29, 2020 · 1 comment

Comments

@chartores
Copy link

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.

@chartores
Copy link
Author

chartores commented Oct 29, 2020

And can anyone please help me with the rules of exactly how to make this variable?

And there is no "ImageClassifierFloatInception.kt" file in the "android_demo/app/src/main/assets" folder.
How do I apply the newly created "xxx.tflite" file to Android?

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

No branches or pull requests

1 participant