google-ai-edge / mediapipe

Cross-platform, customizable ML solutions for live and streaming media.
https://ai.google.dev/edge/mediapipe
Apache License 2.0
27.71k stars 5.18k forks source link

How can i get information about tflite changes? #4149

Open dongsu90 opened 1 year ago

dongsu90 commented 1 year ago

Have I written custom code (as opposed to using a stock example script provided in MediaPipe)

None

OS Platform and Distribution

Android

MediaPipe version

0.8.9

Bazel version

No response

Solution

palm_detection, hand_landmark, face_detection, face_landmark

Programming Language and version

C++

Describe the actual behavior

Hi, I'm using hand_tracking and face_tracking solutions with mediapipe 0.8.9 version.

I have confirmed that below tflite files has been changed in 0.9.1 version.
Could you share which change is applied to new tflite files?

[Hand]
hand_landmark_lite.tflite
hand_landmark_full.tflite
palm_detection_full.tflite

[Face]
face_detection_short_range
face_landmark
face_landmark_with_attention

thanks.

Describe the expected behaviour

No response

Standalone code/steps you may have used to try to get what you need

No response

Other info / Complete Logs

No response

dongsu90 commented 1 year ago

I downloaded 0.9.1 version tflite from urls below . Please share the change history of tflite.

[external_files.bzl]

http_file(
    name = "com_google_mediapipe_hand_landmark_lite_tflite",
    sha256 = "048edd3645c9bf7397d19a9f6e3a42957d6e414c9bea6598030a2e9b624156e6",
    urls = ["https://storage.googleapis.com/mediapipe-assets/hand_landmark_lite.tflite?generation=1661875766398729"],
)

http_file(
    name = "com_google_mediapipe_hand_landmark_full_tflite",
    sha256 = "11c272b891e1a99ab034208e23937a8008388cf11ed2a9d776ed3d01d0ba00e3",
    urls = ["https://storage.googleapis.com/mediapipe-assets/hand_landmark_full.tflite?generation=1661875760968579"],
)

http_file(
    name = "com_google_mediapipe_palm_detection_full_tflite",
    sha256 = "1b14e9422c6ad006cde6581a46c8b90dd573c07ab7f3934b5589e7cea3f89a54",
    urls = ["https://storage.googleapis.com/mediapipe-assets/palm_detection_full.tflite?generation=1662745358034050"],
)

http_file(
    name = "com_google_mediapipe_face_detection_short_range_tflite",
    sha256 = "bbff11cebd1eb27a1e004cae0b0e63ec8c551cbf34a4451148b4908b8db3eca8",
    urls = ["https://storage.googleapis.com/mediapipe-assets/face_detection_short_range.tflite?generation=1677044301978921"],
)

http_file(
    name = "com_google_mediapipe_face_landmark_tflite",
    sha256 = "1055cb9d4a9ca8b8c688902a3a5194311138ba256bcc94e336d8373a5f30c814",
    urls = ["https://storage.googleapis.com/mediapipe-assets/face_landmark.tflite?generation=1676316347980492"],
)

http_file(
    name = "com_google_mediapipe_face_landmark_with_attention_tflite",
    sha256 = "e06a804e0144f9929eda782122916b35d60c697c3c9344013ca2bbe76a6ce2b4",
    urls = ["https://storage.googleapis.com/mediapipe-assets/face_landmark_with_attention.tflite?generation=1676415468821650"],
)
google-ml-butler[bot] commented 1 year ago

Are you satisfied with the resolution of your issue? Yes No

kuaashish commented 1 year ago

@dongsu90, Could you please elaborate your query with complete details. Thank you!

dongsu90 commented 1 year ago

@kuaashish, I'm using the mediapipe 0.8.9 version for hand_tracking and face_tracking solutions, And I confirmed that tflite files changed in mediapipe 0.9.1 version.

[mediapipe v0.8.9] md5sum hand_landmark_lite.tflite a43041e1846380ac5ade1bf3ab236187 md5sum hand_landmark_full.tflite c2e81c33114c0fd7451e7cd922baff8c md5sum palm_detection_full.tflite ec339ca72e89c716088824847c506e97 md5sum face_detection_short_range.tflite fc0e8679f646a62f51cad3edd143bcc2 md5sum face_landmark.tflite 653ac5812e607aa5f1c4b7161458e148 md5sum face_landmark_with_attention.tflite d726d2d42d4d38f08ee0835373feddff

[mediapipe v0.9.1] md5sum hand_landmark_lite.tflite 3bf022911d8bbb773379242119d5ec48 md5sum hand_landmark_full.tflite 5f918ba6a0834fd45bc130c1803ca339 md5sum palm_detection_full.tflite 8a1357a938f32a0e4708eb495cbac0da md5sum face_detection_short_range.tflite c21001d6003fe98ed674c5f6c13ca652 md5sum face_landmark.tflite a2f063148e9ea5ac92e01c4734181a5e md5sum face_landmark_with_attention.tflite f89136fd9943b16a13a7c37e0705a92f

I want to know what is applied to 0.9.1 tflite files.

I'm using 0.8.9 tflite files from the following path. And downloaded 0.9.1 tflite files from external_files.

[v0.8.9] \mediapipe\modules\hand_landmark \mediapipe\modules\palm_detection \mediapipe\modules\face_detection \mediapipe\modules\face_landmark

[v0.9.1] external_files.bzl

http_file(
    name = "com_google_mediapipe_hand_landmark_lite_tflite",
    sha256 = "048edd3645c9bf7397d19a9f6e3a42957d6e414c9bea6598030a2e9b624156e6",
    urls = ["https://storage.googleapis.com/mediapipe-assets/hand_landmark_lite.tflite?generation=1661875766398729"],
)

http_file(
    name = "com_google_mediapipe_hand_landmark_full_tflite",
    sha256 = "11c272b891e1a99ab034208e23937a8008388cf11ed2a9d776ed3d01d0ba00e3",
    urls = ["https://storage.googleapis.com/mediapipe-assets/hand_landmark_full.tflite?generation=1661875760968579"],
)

http_file(
    name = "com_google_mediapipe_palm_detection_full_tflite",
    sha256 = "1b14e9422c6ad006cde6581a46c8b90dd573c07ab7f3934b5589e7cea3f89a54",
    urls = ["https://storage.googleapis.com/mediapipe-assets/palm_detection_full.tflite?generation=1662745358034050"],
)

http_file(
    name = "com_google_mediapipe_face_detection_short_range_tflite",
    sha256 = "bbff11cebd1eb27a1e004cae0b0e63ec8c551cbf34a4451148b4908b8db3eca8",
    urls = ["https://storage.googleapis.com/mediapipe-assets/face_detection_short_range.tflite?generation=1677044301978921"],
)

http_file(
    name = "com_google_mediapipe_face_landmark_tflite",
    sha256 = "1055cb9d4a9ca8b8c688902a3a5194311138ba256bcc94e336d8373a5f30c814",
    urls = ["https://storage.googleapis.com/mediapipe-assets/face_landmark.tflite?generation=1676316347980492"],
)

http_file(
    name = "com_google_mediapipe_face_landmark_with_attention_tflite",
    sha256 = "e06a804e0144f9929eda782122916b35d60c697c3c9344013ca2bbe76a6ce2b4",
    urls = ["https://storage.googleapis.com/mediapipe-assets/face_landmark_with_attention.tflite?generation=1676415468821650"],
)

Please share the changes applied to v0.9.1 tflite files.

Thank you.

kuaashish commented 1 year ago

Hi @chuoling, Could you please look into this issue. Thank you!