Skip to content

Commit

Permalink
build: include blaze_face_short_range.tflite
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler committed Jul 29, 2023
1 parent 216a453 commit 20d4527
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions mediapipe_api/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ load("@bazel_skylib//lib:selects.bzl", "selects")
load("@bazel_skylib//rules:common_settings.bzl", "bool_flag", "string_list_flag")
load("@rules_pkg//:pkg.bzl", "pkg_zip")
load("@build_bazel_apple_support//rules:universal_binary.bzl", "universal_binary")
load("@com_google_mediapipe//mediapipe/framework/tool:mediapipe_files.bzl", "mediapipe_files")

bool_flag(
name = "macos_universal",
Expand Down Expand Up @@ -427,6 +428,10 @@ pkg_zip(
],
)

mediapipe_files(srcs = [
"blaze_face_short_range.tflite",
])

pkg_asset(
name = "mediapipe_assets",
srcs = select({
Expand Down Expand Up @@ -466,6 +471,7 @@ pkg_asset(
filegroup(
name = "face_detection_assets",
srcs = [
":blaze_face_short_range.tflite",
"@com_google_mediapipe//mediapipe/modules/face_detection:face_detection_full_range_sparse.tflite",
"@com_google_mediapipe//mediapipe/modules/face_detection:face_detection_full_range.tflite",
"@com_google_mediapipe//mediapipe/modules/face_detection:face_detection_short_range.tflite",
Expand Down
17 changes: 17 additions & 0 deletions third_party/mediapipe_model_path.diff
Original file line number Diff line number Diff line change
Expand Up @@ -487,3 +487,20 @@ index 00000000..946be0d4
+
+} // namespace internal
+} // namespace mediapipe
diff --git a/third_party/external_files.bzl b/third_party/external_files.bzl
index 652a2947..c8e1a1ea 100644
--- a/third_party/external_files.bzl
+++ b/third_party/external_files.bzl
@@ -370,6 +370,12 @@ def external_files():
urls = ["https://storage.googleapis.com/mediapipe-assets/face_detection_short_range.tflite?generation=1677044301978921"],
)

+ http_file(
+ name = "com_google_mediapipe_blaze_face_short_range_tflite",
+ sha256 = "b4578f35940bf5a1a655214a1cce5cab13eba73c1297cd78e1a04c2380b0152f",
+ urls = ["https://storage.googleapis.com/mediapipe-models/face_detector/blaze_face_short_range/float16/1/blaze_face_short_range.tflite?generation=1682480001338381"],
+ )
+
http_file(
name = "com_google_mediapipe_face_geometry_expected_out_pbtxt",
sha256 = "4a4ed08055a5bc9281472dd60180d11f0cdc9a15fa1788d87a58af3d06b2c6e4",

0 comments on commit 20d4527

Please sign in to comment.