From 370efbd4f094920e002ead151f9d1593f9a05ee9 Mon Sep 17 00:00:00 2001 From: Joe Zou Date: Fri, 4 Oct 2024 13:30:02 -0700 Subject: [PATCH] Fix pip_deps targets. PiperOrigin-RevId: 682431974 --- mediapipe/model_maker/python/core/BUILD | 4 +- mediapipe/model_maker/python/core/data/BUILD | 24 ++++---- mediapipe/model_maker/python/core/tasks/BUILD | 8 +-- mediapipe/model_maker/python/core/utils/BUILD | 44 +++++++------- .../python/text/text_classifier/BUILD | 50 ++++++++-------- .../model_maker/python/vision/core/BUILD | 14 ++--- .../python/vision/face_stylizer/BUILD | 8 +-- .../python/vision/gesture_recognizer/BUILD | 18 +++--- .../python/vision/image_classifier/BUILD | 26 ++++---- .../python/vision/object_detector/BUILD | 59 +++++++------------ mediapipe/tasks/python/audio/core/BUILD | 2 +- .../tasks/python/components/containers/BUILD | 4 +- mediapipe/tasks/python/components/utils/BUILD | 2 +- mediapipe/tasks/python/genai/bundler/BUILD | 2 +- mediapipe/tasks/python/genai/converter/BUILD | 2 +- mediapipe/tasks/python/metadata/BUILD | 5 +- mediapipe/tasks/python/test/BUILD | 4 +- mediapipe/tasks/python/test/audio/BUILD | 10 ++-- mediapipe/tasks/python/test/audio/core/BUILD | 5 +- mediapipe/tasks/python/test/metadata/BUILD | 8 +-- .../test/metadata/metadata_writers/BUILD | 20 +++---- mediapipe/tasks/python/test/text/BUILD | 3 +- mediapipe/tasks/python/test/vision/BUILD | 49 ++++++--------- mediapipe/tasks/python/vision/BUILD | 4 +- 24 files changed, 166 insertions(+), 209 deletions(-) diff --git a/mediapipe/model_maker/python/core/BUILD b/mediapipe/model_maker/python/core/BUILD index d0ef8dcecb..42b9f34ac3 100644 --- a/mediapipe/model_maker/python/core/BUILD +++ b/mediapipe/model_maker/python/core/BUILD @@ -25,7 +25,7 @@ py_library( name = "hyperparameters", srcs = ["hyperparameters.py"], deps = [ - "@model_maker_pip_deps//tensorflow", - "@model_maker_pip_deps//tensorflow_models/official/common:distribute_utils", + "@model_maker_pip_deps_tensorflow//:pkg", + "@model_maker_pip_deps_tf_models_official//:pkg", ], ) diff --git a/mediapipe/model_maker/python/core/data/BUILD b/mediapipe/model_maker/python/core/data/BUILD index a5ea2e1099..9f8eeb9cac 100644 --- a/mediapipe/model_maker/python/core/data/BUILD +++ b/mediapipe/model_maker/python/core/data/BUILD @@ -23,9 +23,9 @@ py_library( name = "data_util", srcs = ["data_util.py"], deps = [ - "@model_maker_pip_deps//cv2", - "@model_maker_pip_deps//numpy", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_numpy//:pkg", + "@model_maker_pip_deps_opencv_python//:pkg", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -35,8 +35,8 @@ py_test( data = ["//mediapipe/model_maker/python/core/data/testdata"], deps = [ ":data_util", - "@model_maker_pip_deps//absl/flags", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_absl_py//:pkg", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -44,7 +44,7 @@ py_library( name = "dataset", srcs = ["dataset.py"], srcs_version = "PY3", - deps = ["@model_maker_pip_deps//tensorflow"], + deps = ["@model_maker_pip_deps_tensorflow//:pkg"], ) py_test( @@ -53,8 +53,8 @@ py_test( deps = [ ":dataset", "//mediapipe/model_maker/python/core/utils:test_util", - "@model_maker_pip_deps//numpy", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_numpy//:pkg", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -63,7 +63,7 @@ py_library( srcs = ["classification_dataset.py"], deps = [ ":dataset", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -72,14 +72,14 @@ py_test( srcs = ["classification_dataset_test.py"], deps = [ ":classification_dataset", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) py_library( name = "cache_files", srcs = ["cache_files.py"], - deps = ["@model_maker_pip_deps//tensorflow"], + deps = ["@model_maker_pip_deps_tensorflow//:pkg"], ) py_test( @@ -87,6 +87,6 @@ py_test( srcs = ["cache_files_test.py"], deps = [ ":cache_files", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) diff --git a/mediapipe/model_maker/python/core/tasks/BUILD b/mediapipe/model_maker/python/core/tasks/BUILD index af3eaf5f7a..87566afe43 100644 --- a/mediapipe/model_maker/python/core/tasks/BUILD +++ b/mediapipe/model_maker/python/core/tasks/BUILD @@ -26,7 +26,7 @@ py_library( "//mediapipe/model_maker/python/core/data:dataset", "//mediapipe/model_maker/python/core/utils:model_util", "//mediapipe/model_maker/python/core/utils:quantization", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -36,7 +36,7 @@ py_test( deps = [ ":custom_model", "//mediapipe/model_maker/python/core/utils:test_util", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -49,7 +49,7 @@ py_library( "//mediapipe/model_maker/python/core/data:classification_dataset", "//mediapipe/model_maker/python/core/data:dataset", "//mediapipe/model_maker/python/core/utils:model_util", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -59,6 +59,6 @@ py_test( deps = [ ":classifier", "//mediapipe/model_maker/python/core/utils:test_util", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) diff --git a/mediapipe/model_maker/python/core/utils/BUILD b/mediapipe/model_maker/python/core/utils/BUILD index f71fa73701..6baaff88e9 100644 --- a/mediapipe/model_maker/python/core/utils/BUILD +++ b/mediapipe/model_maker/python/core/utils/BUILD @@ -33,8 +33,8 @@ py_library( deps = [ ":model_util", "//mediapipe/model_maker/python/core/data:dataset", - "@model_maker_pip_deps//numpy", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_numpy//:pkg", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -44,8 +44,8 @@ py_library( deps = [ ":quantization", "//mediapipe/model_maker/python/core/data:dataset", - "@model_maker_pip_deps//numpy", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_numpy//:pkg", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -56,8 +56,8 @@ py_test( ":model_util", ":quantization", ":test_util", - "@model_maker_pip_deps//absl/testing:parameterized", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_absl_py//:pkg", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -73,7 +73,7 @@ py_test( tags = ["requires-net:external"], deps = [ ":file_util", - "@model_maker_pip_deps//absl/testing:absltest", + "@model_maker_pip_deps_absl_py//:pkg", ], ) @@ -81,7 +81,7 @@ py_library( name = "hub_loader", srcs = ["hub_loader.py"], deps = [ - "@model_maker_pip_deps//tensorflow_hub", + "@model_maker_pip_deps_tensorflow_hub//:pkg", ], ) @@ -92,8 +92,8 @@ py_test( deps = [ ":hub_loader", "//mediapipe/tasks/python/test:test_utils", - "@model_maker_pip_deps//absl/testing:parameterized", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_absl_py//:pkg", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -104,9 +104,9 @@ py_library( deps = [ ":file_util", ":model_util", - "@model_maker_pip_deps//numpy", - "@model_maker_pip_deps//tensorflow", - "@model_maker_pip_deps//tensorflow_models/official/modeling:tf_utils", + "@model_maker_pip_deps_numpy//:pkg", + "@model_maker_pip_deps_tensorflow//:pkg", + "@model_maker_pip_deps_tf_models_official//:pkg", ], ) @@ -118,8 +118,8 @@ py_test( ], deps = [ ":loss_functions", - "@model_maker_pip_deps//absl/testing:parameterized", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_absl_py//:pkg", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -135,7 +135,7 @@ py_library( name = "metrics", srcs = ["metrics.py"], deps = [ - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -144,9 +144,9 @@ py_test( srcs = ["metrics_test.py"], deps = [ ":metrics", - "@model_maker_pip_deps//absl/testing:parameterized", - "@model_maker_pip_deps//numpy", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_absl_py//:pkg", + "@model_maker_pip_deps_numpy//:pkg", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -157,7 +157,7 @@ py_library( visibility = ["//visibility:public"], deps = [ "//mediapipe/model_maker/python/core/data:dataset", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -167,7 +167,7 @@ py_test( deps = [ ":quantization", ":test_util", - "@model_maker_pip_deps//absl/testing:parameterized", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_absl_py//:pkg", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) diff --git a/mediapipe/model_maker/python/text/text_classifier/BUILD b/mediapipe/model_maker/python/text/text_classifier/BUILD index 3ee1261100..03be858cfb 100644 --- a/mediapipe/model_maker/python/text/text_classifier/BUILD +++ b/mediapipe/model_maker/python/text/text_classifier/BUILD @@ -78,7 +78,7 @@ py_test( ":hyperparameters", ":model_options", ":model_spec", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -88,7 +88,7 @@ py_library( deps = [ "//mediapipe/model_maker/python/core/data:cache_files", "//mediapipe/model_maker/python/core/data:classification_dataset", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -97,7 +97,7 @@ py_test( srcs = ["dataset_test.py"], deps = [ ":dataset", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -105,7 +105,7 @@ py_library( name = "model_with_tokenizer", srcs = ["model_with_tokenizer.py"], deps = [ - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -118,8 +118,8 @@ py_test( ":model_spec", ":model_with_tokenizer", "//mediapipe/model_maker/python/core/utils:hub_loader", - "@model_maker_pip_deps//tensorflow", - "@model_maker_pip_deps//tensorflow_hub", + "@model_maker_pip_deps_tensorflow//:pkg", + "@model_maker_pip_deps_tensorflow_hub//:pkg", ], ) @@ -127,9 +127,9 @@ py_library( name = "bert_tokenizer", srcs = ["bert_tokenizer.py"], deps = [ - "@model_maker_pip_deps//tensorflow", - "@model_maker_pip_deps//tensorflow_models/official/nlp/tools:tokenization", - "@model_maker_pip_deps//tensorflow_text", + "@model_maker_pip_deps_tensorflow//:pkg", + "@model_maker_pip_deps_tensorflow_text//:pkg", + "@model_maker_pip_deps_tf_models_official//:pkg", ], ) @@ -140,9 +140,9 @@ py_test( deps = [ ":bert_tokenizer", ":model_spec", - "@model_maker_pip_deps//absl/testing:parameterized", - "@model_maker_pip_deps//tensorflow", - "@model_maker_pip_deps//tensorflow_hub", + "@model_maker_pip_deps_absl_py//:pkg", + "@model_maker_pip_deps_tensorflow//:pkg", + "@model_maker_pip_deps_tensorflow_hub//:pkg", ], ) @@ -153,8 +153,8 @@ py_library( ":bert_tokenizer", ":dataset", "//mediapipe/model_maker/python/core/data:cache_files", - "@model_maker_pip_deps//tensorflow", - "@model_maker_pip_deps//tensorflow_hub", + "@model_maker_pip_deps_tensorflow//:pkg", + "@model_maker_pip_deps_tensorflow_hub//:pkg", ], ) @@ -168,9 +168,9 @@ py_test( ":model_spec", ":preprocessor", "//mediapipe/model_maker/python/core/data:cache_files", - "@model_maker_pip_deps//absl/testing:parameterized", - "@model_maker_pip_deps//numpy", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_absl_py//:pkg", + "@model_maker_pip_deps_numpy//:pkg", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -205,9 +205,9 @@ py_library( "//mediapipe/model_maker/python/core/utils:quantization", "//mediapipe/tasks/python/metadata/metadata_writers:metadata_writer", "//mediapipe/tasks/python/metadata/metadata_writers:text_classifier", - "@model_maker_pip_deps//tensorflow", - "@model_maker_pip_deps//tensorflow_addons", - "@model_maker_pip_deps//tensorflow_hub", + "@model_maker_pip_deps_tensorflow//:pkg", + "@model_maker_pip_deps_tensorflow_addons//:pkg", + "@model_maker_pip_deps_tensorflow_hub//:pkg", ], ) @@ -228,8 +228,8 @@ py_test( ":text_classifier_import", "//mediapipe/model_maker/python/core/utils:loss_functions", "//mediapipe/tasks/python/test:test_utils", - "@model_maker_pip_deps//absl/testing:parameterized", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_absl_py//:pkg", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -239,10 +239,8 @@ py_library( deps = [ ":text_classifier_import", "//mediapipe/model_maker/python/core/utils:quantization", - "@model_maker_pip_deps//absl:app", - "@model_maker_pip_deps//absl/flags", - "@model_maker_pip_deps//absl/logging", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_absl_py//:pkg", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) diff --git a/mediapipe/model_maker/python/vision/core/BUILD b/mediapipe/model_maker/python/vision/core/BUILD index 4a7968eb7c..1cf339ecdf 100644 --- a/mediapipe/model_maker/python/vision/core/BUILD +++ b/mediapipe/model_maker/python/vision/core/BUILD @@ -25,7 +25,7 @@ py_library( name = "image_preprocessing", srcs = ["image_preprocessing.py"], deps = [ - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -34,8 +34,8 @@ py_test( srcs = ["image_preprocessing_test.py"], deps = [ ":image_preprocessing", - "@model_maker_pip_deps//numpy", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_numpy//:pkg", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -43,7 +43,7 @@ py_library( name = "image_utils", srcs = ["image_utils.py"], deps = [ - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -53,7 +53,7 @@ py_test( deps = [ ":image_utils", ":test_utils", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -61,7 +61,7 @@ py_library( name = "test_utils", srcs = ["test_utils.py"], deps = [ - "@model_maker_pip_deps//numpy", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_numpy//:pkg", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) diff --git a/mediapipe/model_maker/python/vision/face_stylizer/BUILD b/mediapipe/model_maker/python/vision/face_stylizer/BUILD index 207a2f3432..36dd4f2e3b 100644 --- a/mediapipe/model_maker/python/vision/face_stylizer/BUILD +++ b/mediapipe/model_maker/python/vision/face_stylizer/BUILD @@ -50,7 +50,7 @@ py_test( srcs = ["model_spec_test.py"], deps = [ ":model_spec", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -73,7 +73,7 @@ py_library( "//mediapipe/python:_framework_bindings", "//mediapipe/tasks/python/core:base_options", "//mediapipe/tasks/python/vision:face_aligner", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -91,8 +91,8 @@ py_library( "//mediapipe/model_maker/python/core/utils:model_util", "//mediapipe/model_maker/python/vision/core:image_preprocessing", "//mediapipe/tasks/python/metadata/metadata_writers:face_stylizer", - "@model_maker_pip_deps//numpy", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_numpy//:pkg", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) diff --git a/mediapipe/model_maker/python/vision/gesture_recognizer/BUILD b/mediapipe/model_maker/python/vision/gesture_recognizer/BUILD index 5b06e82c8e..ec72e8bb2b 100644 --- a/mediapipe/model_maker/python/vision/gesture_recognizer/BUILD +++ b/mediapipe/model_maker/python/vision/gesture_recognizer/BUILD @@ -47,7 +47,7 @@ py_library( "//mediapipe/python:_framework_bindings", "//mediapipe/tasks/python/core:base_options", "//mediapipe/tasks/python/vision:hand_landmarker", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -65,8 +65,8 @@ py_test( ":dataset", "//mediapipe/tasks/python/test:test_utils", "//mediapipe/tasks/python/vision:hand_landmarker", - "@model_maker_pip_deps//absl/testing:parameterized", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_absl_py//:pkg", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -106,7 +106,7 @@ py_library( "//mediapipe/model_maker/python/core/utils:loss_functions", "//mediapipe/model_maker/python/core/utils:model_util", "//mediapipe/tasks/python/metadata/metadata_writers:metadata_writer", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -135,7 +135,7 @@ py_library( deps = [ "//mediapipe/tasks/python/metadata/metadata_writers:metadata_writer", "//mediapipe/tasks/python/metadata/metadata_writers:model_asset_bundle_utils", - "@model_maker_pip_deps//tensorflow:tensorflow_no_contrib", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -157,7 +157,7 @@ py_test( ":model_options", "//mediapipe/model_maker/python/core/utils:test_util", "//mediapipe/tasks/python/test:test_utils", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -169,7 +169,7 @@ py_test( ":metadata_writer", "//mediapipe/tasks/python/metadata/metadata_writers:metadata_writer", "//mediapipe/tasks/python/test:test_utils", - "@model_maker_pip_deps//tensorflow:tensorflow_no_contrib", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -181,8 +181,6 @@ py_binary( tags = ["requires-net:external"], deps = [ ":gesture_recognizer_import", - "@model_maker_pip_deps//absl:app", - "@model_maker_pip_deps//absl/flags", - "@model_maker_pip_deps//absl/logging", + "@model_maker_pip_deps_absl_py//:pkg", ], ) diff --git a/mediapipe/model_maker/python/vision/image_classifier/BUILD b/mediapipe/model_maker/python/vision/image_classifier/BUILD index e328d82ed3..8126b2c556 100644 --- a/mediapipe/model_maker/python/vision/image_classifier/BUILD +++ b/mediapipe/model_maker/python/vision/image_classifier/BUILD @@ -49,8 +49,8 @@ py_test( srcs = ["model_spec_test.py"], deps = [ ":model_spec", - "@model_maker_pip_deps//absl/testing:parameterized", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_absl_py//:pkg", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -60,7 +60,7 @@ py_library( deps = [ "//mediapipe/model_maker/python/core/data:classification_dataset", "//mediapipe/model_maker/python/vision/core:image_utils", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -71,8 +71,8 @@ py_test( ":dataset", "//mediapipe/model_maker/python/vision/core:image_utils", "//mediapipe/model_maker/python/vision/core:test_utils", - "@model_maker_pip_deps//numpy", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_numpy//:pkg", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -115,8 +115,8 @@ py_library( "//mediapipe/model_maker/python/vision/core:image_preprocessing", "//mediapipe/tasks/python/metadata/metadata_writers:image_classifier", "//mediapipe/tasks/python/metadata/metadata_writers:metadata_writer", - "@model_maker_pip_deps//tensorflow", - "@model_maker_pip_deps//tensorflow_hub", + "@model_maker_pip_deps_tensorflow//:pkg", + "@model_maker_pip_deps_tensorflow_hub//:pkg", ], ) @@ -130,9 +130,9 @@ py_library( ":image_classifier_import", ":model_options", "//mediapipe/tasks/python/test:test_utils", - "@model_maker_pip_deps//absl/testing:parameterized", - "@model_maker_pip_deps//numpy", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_absl_py//:pkg", + "@model_maker_pip_deps_numpy//:pkg", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -156,9 +156,7 @@ py_binary( deps = [ ":image_classifier_import", "//mediapipe/model_maker/python/core/utils:quantization", - "@model_maker_pip_deps//absl:app", - "@model_maker_pip_deps//absl/flags", - "@model_maker_pip_deps//absl/logging", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_absl_py//:pkg", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) diff --git a/mediapipe/model_maker/python/vision/object_detector/BUILD b/mediapipe/model_maker/python/vision/object_detector/BUILD index e8150e849a..6eaebfdc8a 100644 --- a/mediapipe/model_maker/python/vision/object_detector/BUILD +++ b/mediapipe/model_maker/python/vision/object_detector/BUILD @@ -41,9 +41,7 @@ py_binary( tags = ["requires-net:external"], deps = [ ":object_detector_import", - "@model_maker_pip_deps//absl:app", - "@model_maker_pip_deps//absl/flags", - "@model_maker_pip_deps//absl/logging", + "@model_maker_pip_deps_absl_py//:pkg", ], ) @@ -61,8 +59,8 @@ py_library( ":dataset_util", "//mediapipe/model_maker/python/core/data:cache_files", "//mediapipe/model_maker/python/core/data:classification_dataset", - "@model_maker_pip_deps//tensorflow", - "@model_maker_pip_deps//tensorflow_models/official/vision/dataloaders:tf_example_decoder", + "@model_maker_pip_deps_tensorflow//:pkg", + "@model_maker_pip_deps_tf_models_official//:pkg", ], ) @@ -75,7 +73,7 @@ py_test( "//mediapipe/model_maker/python/vision/core:image_utils", "//mediapipe/model_maker/python/vision/core:test_utils", "//mediapipe/tasks/python/test:test_utils", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -84,8 +82,8 @@ py_library( srcs = ["dataset_util.py"], deps = [ "//mediapipe/model_maker/python/core/data:cache_files", - "@model_maker_pip_deps//tensorflow", - "@model_maker_pip_deps//tensorflow_models/official/vision/data:tfrecord_lib", + "@model_maker_pip_deps_tensorflow//:pkg", + "@model_maker_pip_deps_tf_models_official//:pkg", ], ) @@ -97,7 +95,7 @@ py_test( ":dataset_util", "//mediapipe/model_maker/python/vision/core:test_utils", "//mediapipe/tasks/python/test:test_utils", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -105,7 +103,7 @@ py_library( name = "detection", srcs = ["detection.py"], deps = [ - "@model_maker_pip_deps//tensorflow_models/official/vision/serving:detection", + "@model_maker_pip_deps_tf_models_official//:pkg", ], ) @@ -114,10 +112,8 @@ py_test( srcs = ["detection_test.py"], deps = [ ":detection", - "@model_maker_pip_deps//tensorflow", - "@model_maker_pip_deps//tensorflow_models/official/core:config_definitions", - "@model_maker_pip_deps//tensorflow_models/official/vision/configs", - "@model_maker_pip_deps//tensorflow_models/official/vision/serving:detection", + "@model_maker_pip_deps_tensorflow//:pkg", + "@model_maker_pip_deps_tf_models_official//:pkg", ], ) @@ -134,11 +130,8 @@ py_library( srcs = ["preprocessor.py"], deps = [ ":model_spec", - "@model_maker_pip_deps//tensorflow", - "@model_maker_pip_deps//tensorflow_models/official/vision/dataloaders:utils", - "@model_maker_pip_deps//tensorflow_models/official/vision/ops:anchor", - "@model_maker_pip_deps//tensorflow_models/official/vision/ops:box_ops", - "@model_maker_pip_deps//tensorflow_models/official/vision/ops:preprocess_ops", + "@model_maker_pip_deps_tensorflow//:pkg", + "@model_maker_pip_deps_tf_models_official//:pkg", ], ) @@ -149,8 +142,8 @@ py_test( ":model_spec", ":preprocessor", "//mediapipe/model_maker/python/vision/core:test_utils", - "@model_maker_pip_deps//absl/testing:parameterized", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_absl_py//:pkg", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -161,16 +154,8 @@ py_library( ":detection", ":model_options", ":model_spec", - "@model_maker_pip_deps//tensorflow", - "@model_maker_pip_deps//tensorflow_models/official/core:config_definitions", - "@model_maker_pip_deps//tensorflow_models/official/projects/qat/vision/configs:common", - "@model_maker_pip_deps//tensorflow_models/official/projects/qat/vision/modeling:factory", - "@model_maker_pip_deps//tensorflow_models/official/vision/configs", - "@model_maker_pip_deps//tensorflow_models/official/vision/losses:focal_loss", - "@model_maker_pip_deps//tensorflow_models/official/vision/losses:loss_utils", - "@model_maker_pip_deps//tensorflow_models/official/vision/modeling:factory", - "@model_maker_pip_deps//tensorflow_models/official/vision/modeling:retinanet_model", - "@model_maker_pip_deps//tensorflow_models/official/vision/modeling/layers:detection_generator", + "@model_maker_pip_deps_tensorflow//:pkg", + "@model_maker_pip_deps_tf_models_official//:pkg", ], ) @@ -193,8 +178,8 @@ py_test( ":model_spec", ":preprocessor", "//mediapipe/tasks/python/test:test_utils", - "@model_maker_pip_deps//numpy", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_numpy//:pkg", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) @@ -226,8 +211,8 @@ py_library( "//mediapipe/tasks/python/metadata/metadata_writers:metadata_info", "//mediapipe/tasks/python/metadata/metadata_writers:metadata_writer", "//mediapipe/tasks/python/metadata/metadata_writers:object_detector", - "@model_maker_pip_deps//tensorflow", - "@model_maker_pip_deps//tensorflow_models/official/vision/evaluation:coco_evaluator", + "@model_maker_pip_deps_tensorflow//:pkg", + "@model_maker_pip_deps_tf_models_official//:pkg", ], ) @@ -240,8 +225,8 @@ py_test( deps = [ ":object_detector_import", "//mediapipe/tasks/python/test:test_utils", - "@model_maker_pip_deps//absl/testing:parameterized", - "@model_maker_pip_deps//tensorflow", + "@model_maker_pip_deps_absl_py//:pkg", + "@model_maker_pip_deps_tensorflow//:pkg", ], ) diff --git a/mediapipe/tasks/python/audio/core/BUILD b/mediapipe/tasks/python/audio/core/BUILD index aaa15274ff..2baa1812c7 100644 --- a/mediapipe/tasks/python/audio/core/BUILD +++ b/mediapipe/tasks/python/audio/core/BUILD @@ -27,7 +27,7 @@ py_library( name = "audio_record", srcs = ["audio_record.py"], deps = [ - "@mediapipe_pip_deps//numpy", + "@mediapipe_pip_deps_numpy//:pkg", ], ) diff --git a/mediapipe/tasks/python/components/containers/BUILD b/mediapipe/tasks/python/components/containers/BUILD index c6da3dc8e1..978eb86a66 100644 --- a/mediapipe/tasks/python/components/containers/BUILD +++ b/mediapipe/tasks/python/components/containers/BUILD @@ -21,7 +21,7 @@ licenses(["notice"]) py_library( name = "audio_data", srcs = ["audio_data.py"], - deps = ["@mediapipe_pip_deps//numpy"], + deps = ["@mediapipe_pip_deps_numpy//:pkg"], ) py_library( @@ -113,6 +113,6 @@ py_library( deps = [ "//mediapipe/tasks/cc/components/containers/proto:embeddings_py_pb2", "//mediapipe/tasks/python/core:optional_dependencies", - "@mediapipe_pip_deps//numpy", + "@mediapipe_pip_deps_numpy//:pkg", ], ) diff --git a/mediapipe/tasks/python/components/utils/BUILD b/mediapipe/tasks/python/components/utils/BUILD index b7ba04a53e..dcdc695491 100644 --- a/mediapipe/tasks/python/components/utils/BUILD +++ b/mediapipe/tasks/python/components/utils/BUILD @@ -25,6 +25,6 @@ py_library( srcs = ["cosine_similarity.py"], deps = [ "//mediapipe/tasks/python/components/containers:embedding_result", - "@mediapipe_pip_deps//numpy", + "@mediapipe_pip_deps_numpy//:pkg", ], ) diff --git a/mediapipe/tasks/python/genai/bundler/BUILD b/mediapipe/tasks/python/genai/bundler/BUILD index 982c887c19..6d2713163b 100644 --- a/mediapipe/tasks/python/genai/bundler/BUILD +++ b/mediapipe/tasks/python/genai/bundler/BUILD @@ -35,6 +35,6 @@ py_test( srcs_version = "PY3", deps = [ ":llm_bundler", - "@mediapipe_pip_deps//absl/testing:absltest", + "@mediapipe_pip_deps_absl_py//:pkg", ], ) diff --git a/mediapipe/tasks/python/genai/converter/BUILD b/mediapipe/tasks/python/genai/converter/BUILD index 2913bbffad..e9b196f878 100644 --- a/mediapipe/tasks/python/genai/converter/BUILD +++ b/mediapipe/tasks/python/genai/converter/BUILD @@ -44,7 +44,7 @@ py_library( ":converter_factory", ":quantization_util", "//mediapipe/python:_framework_bindings", - "@mediapipe_pip_deps//numpy", + "@mediapipe_pip_deps_numpy//:pkg", ], ) diff --git a/mediapipe/tasks/python/metadata/BUILD b/mediapipe/tasks/python/metadata/BUILD index 6f772cc223..2f86b7ad63 100644 --- a/mediapipe/tasks/python/metadata/BUILD +++ b/mediapipe/tasks/python/metadata/BUILD @@ -27,7 +27,7 @@ py_library( "//mediapipe/tasks/metadata:schema_py", "//mediapipe/tasks/python/metadata/flatbuffers_lib:_pywrap_flatbuffers", "@flatbuffers//:runtime_py", - "@mediapipe_pip_deps//numpy", + "@mediapipe_pip_deps_numpy//:pkg", ], ) @@ -39,7 +39,6 @@ py_binary( ], deps = [ ":metadata", - "@mediapipe_pip_deps//absl:app", - "@mediapipe_pip_deps//absl/flags", + "@mediapipe_pip_deps_absl_py//:pkg", ], ) diff --git a/mediapipe/tasks/python/test/BUILD b/mediapipe/tasks/python/test/BUILD index 19f419022b..c5cf9d74c4 100644 --- a/mediapipe/tasks/python/test/BUILD +++ b/mediapipe/tasks/python/test/BUILD @@ -30,7 +30,7 @@ py_library( deps = [ "//mediapipe/python:_framework_bindings", "@com_google_protobuf//:protobuf_python", - "@mediapipe_pip_deps//absl/flags", - "@mediapipe_pip_deps//six", + "@mediapipe_pip_deps_absl_py//:pkg", + "@mediapipe_pip_deps_six//:pkg", ], ) diff --git a/mediapipe/tasks/python/test/audio/BUILD b/mediapipe/tasks/python/test/audio/BUILD index 64e81761a0..b34b16e600 100644 --- a/mediapipe/tasks/python/test/audio/BUILD +++ b/mediapipe/tasks/python/test/audio/BUILD @@ -33,9 +33,8 @@ py_test( "//mediapipe/tasks/python/components/containers:classification_result", "//mediapipe/tasks/python/core:base_options", "//mediapipe/tasks/python/test:test_utils", - "@mediapipe_pip_deps//absl/testing:absltest", - "@mediapipe_pip_deps//absl/testing:parameterized", - "@mediapipe_pip_deps//numpy", + "@mediapipe_pip_deps_absl_py//:pkg", + "@mediapipe_pip_deps_numpy//:pkg", ], ) @@ -53,8 +52,7 @@ py_test( "//mediapipe/tasks/python/components/containers:audio_data", "//mediapipe/tasks/python/core:base_options", "//mediapipe/tasks/python/test:test_utils", - "@mediapipe_pip_deps//absl/testing:absltest", - "@mediapipe_pip_deps//absl/testing:parameterized", - "@mediapipe_pip_deps//numpy", + "@mediapipe_pip_deps_absl_py//:pkg", + "@mediapipe_pip_deps_numpy//:pkg", ], ) diff --git a/mediapipe/tasks/python/test/audio/core/BUILD b/mediapipe/tasks/python/test/audio/core/BUILD index 88148f4a27..d4b127d96e 100644 --- a/mediapipe/tasks/python/test/audio/core/BUILD +++ b/mediapipe/tasks/python/test/audio/core/BUILD @@ -23,8 +23,7 @@ py_test( srcs = ["audio_record_test.py"], deps = [ "//mediapipe/tasks/python/audio/core:audio_record", - "@mediapipe_pip_deps//absl/testing:absltest", - "@mediapipe_pip_deps//absl/testing:parameterized", - "@mediapipe_pip_deps//numpy", + "@mediapipe_pip_deps_absl_py//:pkg", + "@mediapipe_pip_deps_numpy//:pkg", ], ) diff --git a/mediapipe/tasks/python/test/metadata/BUILD b/mediapipe/tasks/python/test/metadata/BUILD index 01ad7f1af3..dace5f1ca9 100644 --- a/mediapipe/tasks/python/test/metadata/BUILD +++ b/mediapipe/tasks/python/test/metadata/BUILD @@ -19,9 +19,8 @@ py_test( "//mediapipe/tasks/python/metadata", "//mediapipe/tasks/python/test:test_utils", "@flatbuffers//:runtime_py", - "@mediapipe_pip_deps//absl/testing:absltest", - "@mediapipe_pip_deps//absl/testing:parameterized", - "@mediapipe_pip_deps//six", + "@mediapipe_pip_deps_absl_py//:pkg", + "@mediapipe_pip_deps_six//:pkg", ], ) @@ -32,7 +31,6 @@ py_test( srcs_version = "PY2AND3", deps = [ "//mediapipe/tasks/python/metadata", - "@mediapipe_pip_deps//absl/testing:absltest", - "@mediapipe_pip_deps//absl/testing:parameterized", + "@mediapipe_pip_deps_absl_py//:pkg", ], ) diff --git a/mediapipe/tasks/python/test/metadata/metadata_writers/BUILD b/mediapipe/tasks/python/test/metadata/metadata_writers/BUILD index 71bba3b978..8e5d1ed250 100644 --- a/mediapipe/tasks/python/test/metadata/metadata_writers/BUILD +++ b/mediapipe/tasks/python/test/metadata/metadata_writers/BUILD @@ -22,8 +22,7 @@ py_test( "//mediapipe/tasks/python/metadata/metadata_writers:metadata_info", "//mediapipe/tasks/python/test:test_utils", "@flatbuffers//:runtime_py", - "@mediapipe_pip_deps//absl/testing:absltest", - "@mediapipe_pip_deps//absl/testing:parameterized", + "@mediapipe_pip_deps_absl_py//:pkg", ], ) @@ -39,7 +38,7 @@ py_test( "//mediapipe/tasks/python/metadata/metadata_writers:metadata_info", "//mediapipe/tasks/python/metadata/metadata_writers:metadata_writer", "//mediapipe/tasks/python/test:test_utils", - "@mediapipe_pip_deps//absl/testing:absltest", + "@mediapipe_pip_deps_absl_py//:pkg", ], ) @@ -56,8 +55,7 @@ py_test( "//mediapipe/tasks/python/metadata/metadata_writers:image_classifier", "//mediapipe/tasks/python/metadata/metadata_writers:metadata_writer", "//mediapipe/tasks/python/test:test_utils", - "@mediapipe_pip_deps//absl/testing:absltest", - "@mediapipe_pip_deps//absl/testing:parameterized", + "@mediapipe_pip_deps_absl_py//:pkg", ], ) @@ -72,7 +70,7 @@ py_test( "//mediapipe/tasks/python/metadata/metadata_writers:metadata_writer", "//mediapipe/tasks/python/metadata/metadata_writers:text_classifier", "//mediapipe/tasks/python/test:test_utils", - "@mediapipe_pip_deps//absl/testing:absltest", + "@mediapipe_pip_deps_absl_py//:pkg", ], ) @@ -81,7 +79,7 @@ py_test( srcs = ["model_asset_bundle_utils_test.py"], deps = [ "//mediapipe/tasks/python/metadata/metadata_writers:model_asset_bundle_utils", - "@mediapipe_pip_deps//absl/testing:absltest", + "@mediapipe_pip_deps_absl_py//:pkg", ], ) @@ -99,8 +97,7 @@ py_test( "//mediapipe/tasks/python/metadata/metadata_writers:metadata_writer", "//mediapipe/tasks/python/metadata/metadata_writers:object_detector", "//mediapipe/tasks/python/test:test_utils", - "@mediapipe_pip_deps//absl/testing:absltest", - "@mediapipe_pip_deps//absl/testing:parameterized", + "@mediapipe_pip_deps_absl_py//:pkg", ], ) @@ -116,7 +113,7 @@ py_test( "//mediapipe/tasks/python/metadata/metadata_writers:image_segmenter", "//mediapipe/tasks/python/metadata/metadata_writers:metadata_writer", "//mediapipe/tasks/python/test:test_utils", - "@mediapipe_pip_deps//absl/testing:absltest", + "@mediapipe_pip_deps_absl_py//:pkg", ], ) @@ -130,7 +127,6 @@ py_test( deps = [ "//mediapipe/tasks/python/metadata/metadata_writers:face_stylizer", "//mediapipe/tasks/python/test:test_utils", - "@mediapipe_pip_deps//absl/testing:absltest", - "@mediapipe_pip_deps//absl/testing:parameterized", + "@mediapipe_pip_deps_absl_py//:pkg", ], ) diff --git a/mediapipe/tasks/python/test/text/BUILD b/mediapipe/tasks/python/test/text/BUILD index cff2aa01aa..b6f9df95d3 100644 --- a/mediapipe/tasks/python/test/text/BUILD +++ b/mediapipe/tasks/python/test/text/BUILD @@ -30,7 +30,6 @@ py_test( "//mediapipe/tasks/python/core:base_options", "//mediapipe/tasks/python/test:test_utils", "//mediapipe/tasks/python/text:language_detector", - "@mediapipe_pip_deps//absl/testing:absltest", - "@mediapipe_pip_deps//absl/testing:parameterized", + "@mediapipe_pip_deps_absl_py//:pkg", ], ) diff --git a/mediapipe/tasks/python/test/vision/BUILD b/mediapipe/tasks/python/test/vision/BUILD index 062421df0b..d6ca77312e 100644 --- a/mediapipe/tasks/python/test/vision/BUILD +++ b/mediapipe/tasks/python/test/vision/BUILD @@ -36,9 +36,8 @@ py_test( "//mediapipe/tasks/python/vision:object_detector", "//mediapipe/tasks/python/vision/core:image_processing_options", "//mediapipe/tasks/python/vision/core:vision_task_running_mode", - "@mediapipe_pip_deps//absl/testing:absltest", - "@mediapipe_pip_deps//absl/testing:parameterized", - "@mediapipe_pip_deps//numpy", + "@mediapipe_pip_deps_absl_py//:pkg", + "@mediapipe_pip_deps_numpy//:pkg", ], ) @@ -60,9 +59,8 @@ py_test( "//mediapipe/tasks/python/vision:image_classifier", "//mediapipe/tasks/python/vision/core:image_processing_options", "//mediapipe/tasks/python/vision/core:vision_task_running_mode", - "@mediapipe_pip_deps//absl/testing:absltest", - "@mediapipe_pip_deps//absl/testing:parameterized", - "@mediapipe_pip_deps//numpy", + "@mediapipe_pip_deps_absl_py//:pkg", + "@mediapipe_pip_deps_numpy//:pkg", ], ) @@ -83,9 +81,8 @@ py_test( "//mediapipe/tasks/python/vision:image_embedder", "//mediapipe/tasks/python/vision/core:image_processing_options", "//mediapipe/tasks/python/vision/core:vision_task_running_mode", - "@mediapipe_pip_deps//absl/testing:absltest", - "@mediapipe_pip_deps//absl/testing:parameterized", - "@mediapipe_pip_deps//numpy", + "@mediapipe_pip_deps_absl_py//:pkg", + "@mediapipe_pip_deps_numpy//:pkg", ], ) @@ -103,9 +100,8 @@ py_test( "//mediapipe/tasks/python/test:test_utils", "//mediapipe/tasks/python/vision:image_segmenter", "//mediapipe/tasks/python/vision/core:vision_task_running_mode", - "@mediapipe_pip_deps//absl/testing:absltest", - "@mediapipe_pip_deps//absl/testing:parameterized", - "@mediapipe_pip_deps//numpy", + "@mediapipe_pip_deps_absl_py//:pkg", + "@mediapipe_pip_deps_numpy//:pkg", ], ) @@ -130,8 +126,7 @@ py_test( "//mediapipe/tasks/python/vision/core:image_processing_options", "//mediapipe/tasks/python/vision/core:vision_task_running_mode", "@com_google_protobuf//:protobuf_python", - "@mediapipe_pip_deps//absl/testing:absltest", - "@mediapipe_pip_deps//absl/testing:parameterized", + "@mediapipe_pip_deps_absl_py//:pkg", ], ) @@ -157,9 +152,8 @@ py_test( "//mediapipe/tasks/python/vision/core:image_processing_options", "//mediapipe/tasks/python/vision/core:vision_task_running_mode", "@com_google_protobuf//:protobuf_python", - "@mediapipe_pip_deps//absl/testing:absltest", - "@mediapipe_pip_deps//absl/testing:parameterized", - "@mediapipe_pip_deps//numpy", + "@mediapipe_pip_deps_absl_py//:pkg", + "@mediapipe_pip_deps_numpy//:pkg", ], ) @@ -184,9 +178,8 @@ py_test( "//mediapipe/tasks/python/vision/core:image_processing_options", "//mediapipe/tasks/python/vision/core:vision_task_running_mode", "@com_google_protobuf//:protobuf_python", - "@mediapipe_pip_deps//absl/testing:absltest", - "@mediapipe_pip_deps//absl/testing:parameterized", - "@mediapipe_pip_deps//numpy", + "@mediapipe_pip_deps_absl_py//:pkg", + "@mediapipe_pip_deps_numpy//:pkg", ], ) @@ -211,9 +204,8 @@ py_test( "//mediapipe/tasks/python/vision/core:image_processing_options", "//mediapipe/tasks/python/vision/core:vision_task_running_mode", "@com_google_protobuf//:protobuf_python", - "@mediapipe_pip_deps//absl/testing:absltest", - "@mediapipe_pip_deps//absl/testing:parameterized", - "@mediapipe_pip_deps//numpy", + "@mediapipe_pip_deps_absl_py//:pkg", + "@mediapipe_pip_deps_numpy//:pkg", ], ) @@ -235,9 +227,8 @@ py_test( "//mediapipe/tasks/python/vision/core:image_processing_options", "//mediapipe/tasks/python/vision/core:vision_task_running_mode", "@com_google_protobuf//:protobuf_python", - "@mediapipe_pip_deps//absl/testing:absltest", - "@mediapipe_pip_deps//absl/testing:parameterized", - "@mediapipe_pip_deps//numpy", + "@mediapipe_pip_deps_absl_py//:pkg", + "@mediapipe_pip_deps_numpy//:pkg", ], ) @@ -256,8 +247,7 @@ py_test( "//mediapipe/tasks/python/test:test_utils", "//mediapipe/tasks/python/vision:face_aligner", "//mediapipe/tasks/python/vision/core:image_processing_options", - "@mediapipe_pip_deps//absl/testing:absltest", - "@mediapipe_pip_deps//absl/testing:parameterized", + "@mediapipe_pip_deps_absl_py//:pkg", ], ) @@ -275,7 +265,6 @@ py_test( "//mediapipe/tasks/python/test:test_utils", "//mediapipe/tasks/python/vision:face_stylizer", "//mediapipe/tasks/python/vision/core:image_processing_options", - "@mediapipe_pip_deps//absl/testing:absltest", - "@mediapipe_pip_deps//absl/testing:parameterized", + "@mediapipe_pip_deps_absl_py//:pkg", ], ) diff --git a/mediapipe/tasks/python/vision/BUILD b/mediapipe/tasks/python/vision/BUILD index c620990794..fd38f4c3fe 100644 --- a/mediapipe/tasks/python/vision/BUILD +++ b/mediapipe/tasks/python/vision/BUILD @@ -194,7 +194,7 @@ py_library( "//mediapipe/tasks/python/vision/core:base_vision_task_api", "//mediapipe/tasks/python/vision/core:image_processing_options", "//mediapipe/tasks/python/vision/core:vision_task_running_mode", - "@mediapipe_pip_deps//numpy", + "@mediapipe_pip_deps_numpy//:pkg", ], ) @@ -240,7 +240,7 @@ py_library( "//mediapipe/tasks/python/vision/core:base_vision_task_api", "//mediapipe/tasks/python/vision/core:image_processing_options", "//mediapipe/tasks/python/vision/core:vision_task_running_mode", - "@mediapipe_pip_deps//numpy", + "@mediapipe_pip_deps_numpy//:pkg", ], )