diff --git a/mediapipe/calculators/core/BUILD b/mediapipe/calculators/core/BUILD index 827727056..865118d00 100644 --- a/mediapipe/calculators/core/BUILD +++ b/mediapipe/calculators/core/BUILD @@ -282,6 +282,7 @@ cc_library( }), deps = [ ":concatenate_vector_calculator_cc_proto", + "//mediapipe/framework:calculator_framework", "//mediapipe/framework/api2:node", "//mediapipe/framework/api2:port", "//mediapipe/framework/formats:classification_cc_proto", @@ -290,7 +291,6 @@ cc_library( "//mediapipe/framework/port:integral_types", "//mediapipe/framework/port:ret_check", "//mediapipe/framework/port:status", - "//mediapipe/framework:calculator_framework", "//mediapipe/util:render_data_cc_proto", "@org_tensorflow//tensorflow/lite:framework", ] + select({ @@ -900,12 +900,12 @@ cc_library( }), deps = [ ":split_vector_calculator_cc_proto", - "//mediapipe/framework/formats:detection_cc_proto", - "//mediapipe/framework/formats:classification_cc_proto", - "//mediapipe/framework/formats:landmark_cc_proto", - "//mediapipe/framework/formats:rect_cc_proto", "//mediapipe/framework:calculator_framework", + "//mediapipe/framework/formats:classification_cc_proto", + "//mediapipe/framework/formats:detection_cc_proto", + "//mediapipe/framework/formats:landmark_cc_proto", "//mediapipe/framework/formats:matrix", + "//mediapipe/framework/formats:rect_cc_proto", "//mediapipe/framework/formats:tensor", "//mediapipe/framework/port:ret_check", "//mediapipe/framework/port:status", diff --git a/mediapipe/calculators/image/BUILD b/mediapipe/calculators/image/BUILD index 7b94a031f..172138d9e 100644 --- a/mediapipe/calculators/image/BUILD +++ b/mediapipe/calculators/image/BUILD @@ -147,9 +147,9 @@ cc_library( srcs = ["set_alpha_calculator.cc"], deps = [ ":set_alpha_calculator_cc_proto", - "//mediapipe/framework/formats:image_format_cc_proto", - "//mediapipe/framework:calculator_options_cc_proto", "//mediapipe/framework:calculator_framework", + "//mediapipe/framework:calculator_options_cc_proto", + "//mediapipe/framework/formats:image_format_cc_proto", "//mediapipe/framework/formats:image_frame", "//mediapipe/framework/formats:image_frame_opencv", "//mediapipe/framework/port:logging", @@ -161,8 +161,8 @@ cc_library( "//mediapipe/gpu:disable_gpu": [], "//conditions:default": [ "//mediapipe/gpu:gl_calculator_helper", - "//mediapipe/gpu:gl_simple_shaders", "//mediapipe/gpu:gl_quad_renderer", + "//mediapipe/gpu:gl_simple_shaders", "//mediapipe/gpu:shader_util", ], }), @@ -193,10 +193,10 @@ cc_library( srcs = ["bilateral_filter_calculator.cc"], deps = [ ":bilateral_filter_calculator_cc_proto", - "//mediapipe/framework/formats:image_format_cc_proto", - "//mediapipe/framework:calculator_options_cc_proto", "@com_google_absl//absl/strings", "//mediapipe/framework:calculator_framework", + "//mediapipe/framework:calculator_options_cc_proto", + "//mediapipe/framework/formats:image_format_cc_proto", "//mediapipe/framework/formats:image_frame", "//mediapipe/framework/formats:image_frame_opencv", "//mediapipe/framework/port:logging", @@ -208,8 +208,8 @@ cc_library( "//mediapipe/gpu:disable_gpu": [], "//conditions:default": [ "//mediapipe/gpu:gl_calculator_helper", - "//mediapipe/gpu:gl_simple_shaders", "//mediapipe/gpu:gl_quad_renderer", + "//mediapipe/gpu:gl_simple_shaders", "//mediapipe/gpu:shader_util", ], }), @@ -249,12 +249,11 @@ cc_library( "//conditions:default": [], }), deps = [ - ":rotation_mode_cc_proto", ":image_transformation_calculator_cc_proto", + ":rotation_mode_cc_proto", + "//mediapipe/framework:calculator_framework", "//mediapipe/framework:packet", "//mediapipe/framework:timestamp", - "//mediapipe/gpu:scale_mode_cc_proto", - "//mediapipe/framework:calculator_framework", "//mediapipe/framework/formats:image_frame", "//mediapipe/framework/formats:image_frame_opencv", "//mediapipe/framework/formats:video_stream_header", @@ -262,12 +261,13 @@ cc_library( "//mediapipe/framework/port:opencv_imgproc", "//mediapipe/framework/port:ret_check", "//mediapipe/framework/port:status", + "//mediapipe/gpu:scale_mode_cc_proto", ] + select({ "//mediapipe/gpu:disable_gpu": [], "//conditions:default": [ "//mediapipe/gpu:gl_calculator_helper", - "//mediapipe/gpu:gl_simple_shaders", "//mediapipe/gpu:gl_quad_renderer", + "//mediapipe/gpu:gl_simple_shaders", "//mediapipe/gpu:shader_util", ], }), @@ -293,10 +293,10 @@ cc_library( }), deps = [ ":image_cropping_calculator_cc_proto", - "//mediapipe/framework/formats:rect_cc_proto", "//mediapipe/framework:calculator_framework", "//mediapipe/framework/formats:image_frame", "//mediapipe/framework/formats:image_frame_opencv", + "//mediapipe/framework/formats:rect_cc_proto", "//mediapipe/framework/port:opencv_core", "//mediapipe/framework/port:opencv_imgproc", "//mediapipe/framework/port:ret_check", @@ -305,8 +305,8 @@ cc_library( "//mediapipe/gpu:disable_gpu": [], "//conditions:default": [ "//mediapipe/gpu:gl_calculator_helper", - "//mediapipe/gpu:gl_simple_shaders", "//mediapipe/gpu:gl_quad_renderer", + "//mediapipe/gpu:gl_simple_shaders", "//mediapipe/gpu:gpu_buffer", "//mediapipe/gpu:shader_util", ], @@ -367,20 +367,20 @@ cc_library( srcs = ["recolor_calculator.cc"], deps = [ ":recolor_calculator_cc_proto", - "//mediapipe/util:color_cc_proto", "//mediapipe/framework:calculator_framework", "//mediapipe/framework/formats:image_frame", "//mediapipe/framework/formats:image_frame_opencv", - "//mediapipe/framework/port:status", - "//mediapipe/framework/port:ret_check", "//mediapipe/framework/port:opencv_core", "//mediapipe/framework/port:opencv_imgproc", + "//mediapipe/framework/port:ret_check", + "//mediapipe/framework/port:status", + "//mediapipe/util:color_cc_proto", ] + select({ "//mediapipe/gpu:disable_gpu": [], "//conditions:default": [ "//mediapipe/gpu:gl_calculator_helper", - "//mediapipe/gpu:gl_simple_shaders", "//mediapipe/gpu:gl_quad_renderer", + "//mediapipe/gpu:gl_simple_shaders", "//mediapipe/gpu:shader_util", ], }), @@ -440,8 +440,8 @@ cc_library( srcs = ["image_clone_calculator.cc"], deps = [ ":image_clone_calculator_cc_proto", - "//mediapipe/framework/api2:node", "//mediapipe/framework:calculator_framework", + "//mediapipe/framework/api2:node", "//mediapipe/framework/formats:image", "//mediapipe/framework/port:ret_check", "//mediapipe/framework/port:status", @@ -458,8 +458,8 @@ cc_library( name = "image_properties_calculator", srcs = ["image_properties_calculator.cc"], deps = [ - "//mediapipe/framework/api2:node", "//mediapipe/framework:calculator_framework", + "//mediapipe/framework/api2:node", "//mediapipe/framework/formats:image", "//mediapipe/framework/formats:image_frame", "//mediapipe/framework/port:ret_check", @@ -620,11 +620,11 @@ cc_library( srcs = ["segmentation_smoothing_calculator.cc"], deps = [ ":segmentation_smoothing_calculator_cc_proto", - "//mediapipe/framework/formats:image_format_cc_proto", - "//mediapipe/framework:calculator_options_cc_proto", "//mediapipe/framework:calculator_framework", - "//mediapipe/framework/formats:image_frame", + "//mediapipe/framework:calculator_options_cc_proto", "//mediapipe/framework/formats:image", + "//mediapipe/framework/formats:image_format_cc_proto", + "//mediapipe/framework/formats:image_frame", "//mediapipe/framework/port:logging", "//mediapipe/framework/port:status", "//mediapipe/framework/port:vector", @@ -632,8 +632,8 @@ cc_library( "//mediapipe/gpu:disable_gpu": [], "//conditions:default": [ "//mediapipe/gpu:gl_calculator_helper", - "//mediapipe/gpu:gl_simple_shaders", "//mediapipe/gpu:gl_quad_renderer", + "//mediapipe/gpu:gl_simple_shaders", "//mediapipe/gpu:shader_util", ], }) + select({ @@ -740,9 +740,9 @@ cc_library( ] + select({ "//mediapipe/gpu:disable_gpu": [], "//conditions:default": [ + ":affine_transformation_runner_gl", "//mediapipe/gpu:gl_calculator_helper", "//mediapipe/gpu:gpu_buffer", - ":affine_transformation_runner_gl", ], }) + select({ "//mediapipe/framework/port:disable_opencv": [], diff --git a/mediapipe/calculators/tensor/BUILD b/mediapipe/calculators/tensor/BUILD index a76b75494..ec49c0de5 100644 --- a/mediapipe/calculators/tensor/BUILD +++ b/mediapipe/calculators/tensor/BUILD @@ -603,8 +603,8 @@ cc_library( cc_library( name = "inference_calculator", deps = [ - ":inference_calculator_interface", ":inference_calculator_cpu", + ":inference_calculator_interface", ] + select({ "//conditions:default": [":inference_calculator_gl_if_compute_shader_available"], ":platform_ios_with_gpu": [":inference_calculator_metal"], @@ -642,11 +642,11 @@ cc_library( deps = [ ":tensor_converter_calculator_cc_proto", "//mediapipe/framework:calculator_framework", + "//mediapipe/framework:port", "//mediapipe/framework/formats:image_frame", "//mediapipe/framework/formats:matrix", "//mediapipe/framework/formats:tensor", "//mediapipe/framework/port:ret_check", - "//mediapipe/framework:port", "//mediapipe/util:resource_util", ] + select({ "//mediapipe/gpu:disable_gpu": [], @@ -664,16 +664,16 @@ cc_library( "//mediapipe/gpu:gpu_buffer", ], "//mediapipe:ios": [ - "//mediapipe/gpu:MPPMetalUtil", "//mediapipe/gpu:MPPMetalHelper", + "//mediapipe/gpu:MPPMetalUtil", "//mediapipe/objc:mediapipe_framework_ios", ], "//mediapipe:macos": [], "//conditions:default": [ "//mediapipe/gpu:gl_calculator_helper", "//mediapipe/gpu:gl_simple_shaders", - "//mediapipe/gpu:shader_util", "//mediapipe/gpu:gpu_buffer", + "//mediapipe/gpu:shader_util", ], }), ) @@ -728,16 +728,16 @@ cc_library( }), deps = [ ":tensors_to_detections_calculator_cc_proto", - "//mediapipe/framework/formats:detection_cc_proto", "@com_google_absl//absl/strings:str_format", "@com_google_absl//absl/types:span", - "//mediapipe/framework/api2:node", - "//mediapipe/framework/formats/object_detection:anchor_cc_proto", "//mediapipe/framework:calculator_framework", "//mediapipe/framework:port", + "//mediapipe/framework/api2:node", "//mediapipe/framework/deps:file_path", + "//mediapipe/framework/formats:detection_cc_proto", "//mediapipe/framework/formats:location", "//mediapipe/framework/formats:tensor", + "//mediapipe/framework/formats/object_detection:anchor_cc_proto", "//mediapipe/framework/port:ret_check", ] + selects.with_or({ ":compute_shader_unavailable": [], @@ -751,8 +751,8 @@ cc_library( visibility = ["//visibility:private"], deps = select({ "//mediapipe:ios": [ - "//mediapipe/gpu:MPPMetalUtil", "//mediapipe/gpu:MPPMetalHelper", + "//mediapipe/gpu:MPPMetalUtil", ], "//mediapipe:macos": [], "//conditions:default": [ @@ -901,12 +901,12 @@ cc_library( "@com_google_absl//absl/container:node_hash_map", "@com_google_absl//absl/strings:str_format", "@com_google_absl//absl/types:span", + "//mediapipe/framework:calculator_framework", "//mediapipe/framework/api2:node", "//mediapipe/framework/formats:classification_cc_proto", - "//mediapipe/framework:calculator_framework", "//mediapipe/framework/formats:location", - "//mediapipe/framework/port:ret_check", "//mediapipe/framework/formats:tensor", + "//mediapipe/framework/port:ret_check", "//mediapipe/util:label_map_cc_proto", "//mediapipe/util:resource_util", ] + select({ @@ -968,6 +968,8 @@ cc_library( ":image_to_tensor_converter", ":image_to_tensor_utils", ":loose_headers", + "//mediapipe/framework:calculator_framework", + "//mediapipe/framework:port", "//mediapipe/framework/api2:node", "//mediapipe/framework/formats:image", "//mediapipe/framework/formats:image_frame", @@ -976,8 +978,6 @@ cc_library( "//mediapipe/framework/port:ret_check", "//mediapipe/framework/port:status", "//mediapipe/framework/port:statusor", - "//mediapipe/framework:calculator_framework", - "//mediapipe/framework:port", "//mediapipe/gpu:gpu_origin_cc_proto", ] + select({ "//mediapipe/gpu:disable_gpu": [], @@ -1165,13 +1165,13 @@ cc_library( ":image_to_tensor_utils", "@com_google_absl//absl/strings", "//mediapipe/framework:calculator_framework", + "//mediapipe/framework/formats:image", "//mediapipe/framework/formats:tensor", "//mediapipe/framework/port:ret_check", "//mediapipe/framework/port:status", "//mediapipe/framework/port:statusor", "//mediapipe/gpu:gl_calculator_helper", "//mediapipe/gpu:gl_simple_shaders", - "//mediapipe/framework/formats:image", "//mediapipe/gpu:shader_util", ], }), @@ -1185,10 +1185,10 @@ cc_library( deps = ["//mediapipe/framework:port"] + select({ "//mediapipe/gpu:disable_gpu": [], "//conditions:default": [ - "//mediapipe/gpu:gl_base", - "//mediapipe/gpu:gl_context", "//mediapipe/framework/port:status", "//mediapipe/framework/port:statusor", + "//mediapipe/gpu:gl_base", + "//mediapipe/gpu:gl_context", ], }), ) @@ -1219,11 +1219,11 @@ cc_library( "//mediapipe/gpu:MPPMetalHelper", "@com_google_absl//absl/strings", "//mediapipe/framework:calculator_framework", + "//mediapipe/framework/formats:image", "//mediapipe/framework/formats:tensor", "//mediapipe/framework/port:ret_check", "//mediapipe/framework/port:status", "//mediapipe/framework/port:statusor", - "//mediapipe/framework/formats:image", "//mediapipe/gpu:gpu_buffer_format", "@org_tensorflow//tensorflow/lite/delegates/gpu/common:shape", "@org_tensorflow//tensorflow/lite/delegates/gpu/common:types", @@ -1304,20 +1304,20 @@ cc_library( }), deps = [ ":tensors_to_segmentation_calculator_cc_proto", - "@com_google_absl//absl/strings:str_format", "@com_google_absl//absl/strings", + "@com_google_absl//absl/strings:str_format", "@com_google_absl//absl/types:span", + "//mediapipe/framework:calculator_context", + "//mediapipe/framework:calculator_framework", + "//mediapipe/framework:port", "//mediapipe/framework/formats:image", "//mediapipe/framework/formats:image_frame", "//mediapipe/framework/formats:tensor", "//mediapipe/framework/port:ret_check", - "//mediapipe/framework:calculator_context", - "//mediapipe/framework:calculator_framework", - "//mediapipe/framework:port", + "//mediapipe/framework/port:statusor", "//mediapipe/gpu:gpu_origin_cc_proto", "//mediapipe/util:resource_util", "@org_tensorflow//tensorflow/lite:framework", - "//mediapipe/framework/port:statusor", ] + selects.with_or({ "//mediapipe/gpu:disable_gpu": [], "//conditions:default": [ diff --git a/mediapipe/calculators/tensorflow/BUILD b/mediapipe/calculators/tensorflow/BUILD index 4aec15dcb..3e0017fec 100644 --- a/mediapipe/calculators/tensorflow/BUILD +++ b/mediapipe/calculators/tensorflow/BUILD @@ -309,11 +309,11 @@ cc_library( srcs = ["matrix_to_tensor_calculator.cc"], deps = [ ":matrix_to_tensor_calculator_options_cc_proto", - "//mediapipe/framework/formats:time_series_header_cc_proto", "//mediapipe/framework:calculator_framework", "//mediapipe/framework/formats:matrix", - "//mediapipe/framework/port:status", + "//mediapipe/framework/formats:time_series_header_cc_proto", "//mediapipe/framework/port:ret_check", + "//mediapipe/framework/port:status", ] + select({ "//conditions:default": [ "@org_tensorflow//tensorflow/core:framework", @@ -404,20 +404,20 @@ cc_library( deps = [ ":tensorflow_inference_calculator_cc_proto", ":tensorflow_session", - "@com_google_absl//absl/log:check", - "//mediapipe/framework:timestamp", "@com_google_absl//absl/base:core_headers", + "@com_google_absl//absl/log:check", "@com_google_absl//absl/memory", - "//mediapipe/framework:calculator_context", - "//mediapipe/framework:calculator_framework", - "//mediapipe/framework/tool:status_util", "@com_google_absl//absl/strings", "@com_google_absl//absl/synchronization", - "//mediapipe/framework/deps:clock", - "//mediapipe/framework/port:status", - "//mediapipe/framework/port:ret_check", - "//mediapipe/framework/port:map_util", + "//mediapipe/framework:calculator_context", + "//mediapipe/framework:calculator_framework", "//mediapipe/framework:packet", + "//mediapipe/framework:timestamp", + "//mediapipe/framework/deps:clock", + "//mediapipe/framework/port:map_util", + "//mediapipe/framework/port:ret_check", + "//mediapipe/framework/port:status", + "//mediapipe/framework/tool:status_util", ] + select({ "//conditions:default": [ "@org_tensorflow//tensorflow/core:framework", @@ -440,7 +440,7 @@ cc_library( features = ["no_layering_check"], deps = select({ "//conditions:default": [ - "@org_tensorflow//tensorflow/core:core", + "@org_tensorflow//tensorflow/core", ], "//mediapipe:android": [ "@org_tensorflow//tensorflow/core:portable_tensorflow_lib_lite", @@ -459,24 +459,24 @@ cc_library( ":tensorflow_session", "//mediapipe/calculators/tensorflow:tensorflow_session_from_frozen_graph_calculator_cc_proto", "//mediapipe/framework:calculator_framework", - "//mediapipe/framework/tool:status_util", "//mediapipe/framework/deps:clock", "//mediapipe/framework/port:logging", - "//mediapipe/framework/port:status", "//mediapipe/framework/port:ret_check", + "//mediapipe/framework/port:status", + "//mediapipe/framework/tool:status_util", "@org_tensorflow//tensorflow/core:protos_all_cc", ] + select({ "//conditions:default": [ "//mediapipe/framework/port:file_helpers", - "@org_tensorflow//tensorflow/core:core", + "@org_tensorflow//tensorflow/core", ], "//mediapipe:android": [ - "@org_tensorflow//tensorflow/core:portable_tensorflow_lib_lite", "//mediapipe/android/file/base", + "@org_tensorflow//tensorflow/core:portable_tensorflow_lib_lite", ], "//mediapipe:ios": [ - "@org_tensorflow//tensorflow/core:portable_tensorflow_lib", "//mediapipe/android/file/base", + "@org_tensorflow//tensorflow/core:portable_tensorflow_lib", ], }), alwayslink = 1, @@ -490,24 +490,24 @@ cc_library( ":tensorflow_session", ":tensorflow_session_from_frozen_graph_generator_cc_proto", "//mediapipe/framework:calculator_framework", - "//mediapipe/framework/tool:status_util", - "//mediapipe/framework/port:status", "//mediapipe/framework/deps:clock", "//mediapipe/framework/port:logging", "//mediapipe/framework/port:ret_check", + "//mediapipe/framework/port:status", + "//mediapipe/framework/tool:status_util", "@org_tensorflow//tensorflow/core:protos_all_cc", ] + select({ "//conditions:default": [ "//mediapipe/framework/port:file_helpers", - "@org_tensorflow//tensorflow/core:core", + "@org_tensorflow//tensorflow/core", ], "//mediapipe:android": [ - "@org_tensorflow//tensorflow/core:portable_tensorflow_lib_lite", "//mediapipe/android/file/base", + "@org_tensorflow//tensorflow/core:portable_tensorflow_lib_lite", ], "//mediapipe:ios": [ - "@org_tensorflow//tensorflow/core:portable_tensorflow_lib", "//mediapipe/android/file/base", + "@org_tensorflow//tensorflow/core:portable_tensorflow_lib", ], }), alwayslink = 1, @@ -523,14 +523,14 @@ cc_library( deps = [ ":tensorflow_session", ":tensorflow_session_from_saved_model_calculator_cc_proto", - "//mediapipe/framework:calculator_framework", "@com_google_absl//absl/strings", + "//mediapipe/framework:calculator_framework", + "//mediapipe/framework/deps:file_path", + "//mediapipe/framework/port:ret_check", + "//mediapipe/framework/port:status", "@org_tensorflow//tensorflow/cc/saved_model:constants", "@org_tensorflow//tensorflow/cc/saved_model:loader_lite", "@org_tensorflow//tensorflow/cc/saved_model:tag_constants", - "//mediapipe/framework/deps:file_path", - "//mediapipe/framework/port:status", - "//mediapipe/framework/port:ret_check", ] + select({ "//conditions:default": [ ], @@ -562,16 +562,16 @@ cc_library( ":tensorflow_session", ":tensorflow_session_from_saved_model_generator_cc_proto", "@com_google_absl//absl/status", + "@com_google_absl//absl/strings", "//mediapipe/framework:packet_generator", "//mediapipe/framework:packet_type", + "//mediapipe/framework/deps:file_path", + "//mediapipe/framework/port:ret_check", + "//mediapipe/framework/port:status", "//mediapipe/framework/tool:status_util", - "@com_google_absl//absl/strings", "@org_tensorflow//tensorflow/cc/saved_model:constants", "@org_tensorflow//tensorflow/cc/saved_model:loader_lite", "@org_tensorflow//tensorflow/cc/saved_model:tag_constants", - "//mediapipe/framework/deps:file_path", - "//mediapipe/framework/port:status", - "//mediapipe/framework/port:ret_check", ] + select({ "//conditions:default": [ "//mediapipe/framework/port:file_helpers", @@ -612,11 +612,11 @@ cc_library( srcs = ["tensor_to_matrix_calculator.cc"], deps = [ ":tensor_to_matrix_calculator_cc_proto", - "//mediapipe/framework/formats:time_series_header_cc_proto", "//mediapipe/framework:calculator_framework", "//mediapipe/framework/formats:matrix", - "//mediapipe/framework/port:status", + "//mediapipe/framework/formats:time_series_header_cc_proto", "//mediapipe/framework/port:ret_check", + "//mediapipe/framework/port:status", ] + select({ "//conditions:default": [ "@org_tensorflow//tensorflow/core:framework", @@ -649,8 +649,8 @@ cc_library( deps = [ ":tensor_to_vector_float_calculator_options_cc_proto", "//mediapipe/framework:calculator_framework", - "//mediapipe/framework/port:status", "//mediapipe/framework/port:ret_check", + "//mediapipe/framework/port:status", ] + select({ "//conditions:default": [ "@org_tensorflow//tensorflow/core:framework", @@ -668,10 +668,10 @@ cc_library( deps = [ ":tensor_to_vector_int_calculator_options_cc_proto", "@com_google_absl//absl/base:core_headers", - "//mediapipe/framework/port:integral_types", "//mediapipe/framework:calculator_framework", - "//mediapipe/framework/port:status", + "//mediapipe/framework/port:integral_types", "//mediapipe/framework/port:ret_check", + "//mediapipe/framework/port:status", ] + select({ "//conditions:default": [ "@org_tensorflow//tensorflow/core:framework", @@ -687,10 +687,10 @@ cc_library( name = "tensor_to_vector_string_calculator", srcs = ["tensor_to_vector_string_calculator.cc"], deps = [ - "//mediapipe/framework:calculator_framework", - "//mediapipe/framework/port:status", - "//mediapipe/framework/port:ret_check", ":tensor_to_vector_string_calculator_options_cc_proto", + "//mediapipe/framework:calculator_framework", + "//mediapipe/framework/port:ret_check", + "//mediapipe/framework/port:status", ] + select({ "//conditions:default": [ "@org_tensorflow//tensorflow/core:framework", @@ -1170,25 +1170,25 @@ cc_test( data = [":test_frozen_graph"], linkstatic = 1, deps = [ + ":tensorflow_inference_calculator", ":tensorflow_inference_calculator_cc_proto", ":tensorflow_session", - ":tensorflow_inference_calculator", ":tensorflow_session_from_frozen_graph_generator", ":tensorflow_session_from_frozen_graph_generator_cc_proto", "@com_google_absl//absl/flags:flag", - "//mediapipe/framework/deps:file_path", - "//mediapipe/framework/port:integral_types", "//mediapipe/framework:calculator_framework", "//mediapipe/framework:calculator_runner", + "//mediapipe/framework/deps:file_path", + "//mediapipe/framework/port:gtest_main", + "//mediapipe/framework/port:integral_types", "//mediapipe/framework/tool:sink", "//mediapipe/framework/tool:validate_type", - "//mediapipe/framework/port:gtest_main", ] + select({ "//conditions:default": [ - "@org_tensorflow//tensorflow/core:testlib", - "@org_tensorflow//tensorflow/core/kernels:math", - "@org_tensorflow//tensorflow/core/kernels:conv_ops", "@org_tensorflow//tensorflow/core:direct_session", + "@org_tensorflow//tensorflow/core:testlib", + "@org_tensorflow//tensorflow/core/kernels:conv_ops", + "@org_tensorflow//tensorflow/core/kernels:math", ], "//mediapipe:android": [ "@org_tensorflow//tensorflow/core:portable_tensorflow_lib", diff --git a/mediapipe/calculators/tflite/BUILD b/mediapipe/calculators/tflite/BUILD index b5b01d937..7f4b8aa60 100644 --- a/mediapipe/calculators/tflite/BUILD +++ b/mediapipe/calculators/tflite/BUILD @@ -204,13 +204,13 @@ cc_library( ":tflite_inference_calculator_cc_proto", "@com_google_absl//absl/memory", "//mediapipe/framework:calculator_framework", + "//mediapipe/framework/port:ret_check", + "//mediapipe/framework/stream_handler:fixed_size_input_stream_handler", "//mediapipe/util/tflite:config", "//mediapipe/util/tflite:tflite_model_loader", "@org_tensorflow//tensorflow/lite:framework", "@org_tensorflow//tensorflow/lite/delegates/xnnpack:xnnpack_delegate", "@org_tensorflow//tensorflow/lite/kernels:builtin_ops", - "//mediapipe/framework/stream_handler:fixed_size_input_stream_handler", - "//mediapipe/framework/port:ret_check", ] + selects.with_or({ ":gpu_inference_disabled": [], "//mediapipe:ios": [ @@ -280,13 +280,13 @@ cc_library( }), deps = [ ":tflite_converter_calculator_cc_proto", - "//mediapipe/util/tflite:config", - "//mediapipe/util:resource_util", "//mediapipe/framework:calculator_framework", "//mediapipe/framework/formats:image_frame", "//mediapipe/framework/formats:matrix", - "//mediapipe/framework/stream_handler:fixed_size_input_stream_handler", "//mediapipe/framework/port:ret_check", + "//mediapipe/framework/stream_handler:fixed_size_input_stream_handler", + "//mediapipe/util:resource_util", + "//mediapipe/util/tflite:config", "@org_tensorflow//tensorflow/lite:framework", "@org_tensorflow//tensorflow/lite/kernels:builtin_ops", ] + selects.with_or({ @@ -337,13 +337,13 @@ cc_library( ":tflite_tensors_to_segmentation_calculator_cc_proto", "@com_google_absl//absl/strings:str_format", "@com_google_absl//absl/types:span", + "//mediapipe/framework:calculator_context", + "//mediapipe/framework:calculator_framework", "//mediapipe/framework/formats:image_frame", "//mediapipe/framework/formats:image_frame_opencv", "//mediapipe/framework/port:opencv_imgcodecs", "//mediapipe/framework/port:opencv_imgproc", "//mediapipe/framework/port:ret_check", - "//mediapipe/framework:calculator_context", - "//mediapipe/framework:calculator_framework", "//mediapipe/util:resource_util", "@org_tensorflow//tensorflow/lite:framework", ] + selects.with_or({ @@ -402,15 +402,15 @@ cc_library( }), deps = [ ":tflite_tensors_to_detections_calculator_cc_proto", - "//mediapipe/framework/formats:detection_cc_proto", - "//mediapipe/framework/formats/object_detection:anchor_cc_proto", - "//mediapipe/util/tflite:config", "@com_google_absl//absl/strings:str_format", "@com_google_absl//absl/types:span", - "//mediapipe/framework/deps:file_path", "//mediapipe/framework:calculator_framework", + "//mediapipe/framework/deps:file_path", + "//mediapipe/framework/formats:detection_cc_proto", "//mediapipe/framework/formats:location", + "//mediapipe/framework/formats/object_detection:anchor_cc_proto", "//mediapipe/framework/port:ret_check", + "//mediapipe/util/tflite:config", "@org_tensorflow//tensorflow/lite:framework", ] + selects.with_or({ ":gpu_inference_disabled": [], @@ -440,8 +440,8 @@ cc_library( "@com_google_absl//absl/container:node_hash_map", "@com_google_absl//absl/strings:str_format", "@com_google_absl//absl/types:span", - "//mediapipe/framework/formats:classification_cc_proto", "//mediapipe/framework:calculator_framework", + "//mediapipe/framework/formats:classification_cc_proto", "//mediapipe/framework/formats:location", "//mediapipe/framework/port:ret_check", "//mediapipe/util:resource_util", diff --git a/mediapipe/calculators/util/BUILD b/mediapipe/calculators/util/BUILD index 710a60d8a..4293e4b37 100644 --- a/mediapipe/calculators/util/BUILD +++ b/mediapipe/calculators/util/BUILD @@ -246,11 +246,10 @@ cc_library( srcs = ["annotation_overlay_calculator.cc"], deps = [ ":annotation_overlay_calculator_cc_proto", - "//mediapipe/framework/formats:image_format_cc_proto", - "//mediapipe/framework:calculator_options_cc_proto", - "//mediapipe/util:color_cc_proto", "@com_google_absl//absl/strings", "//mediapipe/framework:calculator_framework", + "//mediapipe/framework:calculator_options_cc_proto", + "//mediapipe/framework/formats:image_format_cc_proto", "//mediapipe/framework/formats:image_frame", "//mediapipe/framework/formats:image_frame_opencv", "//mediapipe/framework/formats:video_stream_header", @@ -260,6 +259,7 @@ cc_library( "//mediapipe/framework/port:status", "//mediapipe/framework/port:vector", "//mediapipe/util:annotation_renderer", + "//mediapipe/util:color_cc_proto", "//mediapipe/util:render_data_cc_proto", ] + select({ "//mediapipe/gpu:disable_gpu": [], @@ -278,15 +278,15 @@ cc_library( srcs = ["detection_label_id_to_text_calculator.cc"], deps = [ ":detection_label_id_to_text_calculator_cc_proto", - "//mediapipe/framework/formats:detection_cc_proto", "@com_google_absl//absl/container:node_hash_map", + "//mediapipe/framework:calculator_framework", + "//mediapipe/framework:packet", + "//mediapipe/framework/formats:detection_cc_proto", "//mediapipe/framework/port:core_proto", "//mediapipe/framework/port:integral_types", "//mediapipe/framework/port:status", - "//mediapipe/framework:calculator_framework", - "//mediapipe/framework:packet", - "//mediapipe/util:resource_util", "//mediapipe/util:label_map_cc_proto", + "//mediapipe/util:resource_util", ] + select({ "//mediapipe:android": [ "//mediapipe/util/android/file/base", @@ -310,11 +310,11 @@ cc_library( deps = [ ":timed_box_list_id_to_label_calculator_cc_proto", "@com_google_absl//absl/container:node_hash_map", - "//mediapipe/framework/port:status", "//mediapipe/framework:calculator_framework", "//mediapipe/framework:packet", - "//mediapipe/util/tracking:box_tracker_cc_proto", + "//mediapipe/framework/port:status", "//mediapipe/util:resource_util", + "//mediapipe/util/tracking:box_tracker_cc_proto", ] + select({ "//mediapipe:android": [ "//mediapipe/util/android/file/base", @@ -1021,11 +1021,11 @@ cc_library( deps = [ ":top_k_scores_calculator_cc_proto", "@com_google_absl//absl/container:node_hash_map", + "//mediapipe/framework:calculator_framework", "//mediapipe/framework/formats:classification_cc_proto", "//mediapipe/framework/port:ret_check", "//mediapipe/framework/port:status", "//mediapipe/framework/port:statusor", - "//mediapipe/framework:calculator_framework", "//mediapipe/util:resource_util", ] + select({ "//mediapipe:android": [ @@ -1252,12 +1252,12 @@ cc_library( name = "to_image_calculator", srcs = ["to_image_calculator.cc"], deps = [ - "//mediapipe/framework/formats:image_format_cc_proto", - "//mediapipe/framework:calculator_options_cc_proto", "//mediapipe/framework:calculator_framework", + "//mediapipe/framework:calculator_options_cc_proto", "//mediapipe/framework/api2:node", - "//mediapipe/framework/formats:image_frame", "//mediapipe/framework/formats:image", + "//mediapipe/framework/formats:image_format_cc_proto", + "//mediapipe/framework/formats:image_frame", "//mediapipe/framework/port:logging", "//mediapipe/framework/port:status", "//mediapipe/framework/port:vector", @@ -1318,11 +1318,11 @@ cc_library( name = "from_image_calculator", srcs = ["from_image_calculator.cc"], deps = [ - "//mediapipe/framework/formats:image_format_cc_proto", - "//mediapipe/framework:calculator_options_cc_proto", "//mediapipe/framework:calculator_framework", - "//mediapipe/framework/formats:image_frame", + "//mediapipe/framework:calculator_options_cc_proto", "//mediapipe/framework/formats:image", + "//mediapipe/framework/formats:image_format_cc_proto", + "//mediapipe/framework/formats:image_frame", "//mediapipe/framework/port:logging", "//mediapipe/framework/port:status", "//mediapipe/framework/port:vector", diff --git a/mediapipe/calculators/video/BUILD b/mediapipe/calculators/video/BUILD index f2b8135f2..a4ff2f8c0 100644 --- a/mediapipe/calculators/video/BUILD +++ b/mediapipe/calculators/video/BUILD @@ -320,12 +320,12 @@ cc_library( "//mediapipe/framework/port:opencv_features2d", "//mediapipe/framework/port:ret_check", "//mediapipe/framework/port:status", - "//mediapipe/util/tracking:box_tracker_cc_proto", - "//mediapipe/util/tracking:flow_packager_cc_proto", "//mediapipe/util:resource_util", "//mediapipe/util/tracking", "//mediapipe/util/tracking:box_detector", "//mediapipe/util/tracking:box_tracker", + "//mediapipe/util/tracking:box_tracker_cc_proto", + "//mediapipe/util/tracking:flow_packager_cc_proto", "//mediapipe/util/tracking:tracking_visualization_utilities", ] + select({ "//mediapipe:android": [ diff --git a/mediapipe/framework/formats/BUILD b/mediapipe/framework/formats/BUILD index bab5ecd75..28160a332 100644 --- a/mediapipe/framework/formats/BUILD +++ b/mediapipe/framework/formats/BUILD @@ -160,8 +160,8 @@ cc_library( "//mediapipe/framework/port:aligned_malloc_and_free", "//mediapipe/framework/port:core_proto", "//mediapipe/framework/port:integral_types", - "//mediapipe/framework/port:source_location", "//mediapipe/framework/port:logging", + "//mediapipe/framework/port:source_location", "//mediapipe/framework/tool:type_util", ] + select({ "//conditions:default": [ @@ -201,15 +201,13 @@ cc_library( srcs = ["location.cc"], hdrs = ["location.h"], deps = [ - "@com_google_protobuf//:protobuf", - "//mediapipe/framework/formats/annotation:locus_cc_proto", ":location_data_cc_proto", "@com_google_absl//absl/base:core_headers", "@com_google_absl//absl/memory", "@com_google_absl//absl/strings", "//mediapipe/framework:port", "//mediapipe/framework:type_map", - "//mediapipe/framework/tool:status_util", + "//mediapipe/framework/formats/annotation:locus_cc_proto", "//mediapipe/framework/port:integral_types", "//mediapipe/framework/port:logging", "//mediapipe/framework/port:point", @@ -217,6 +215,8 @@ cc_library( "//mediapipe/framework/port:ret_check", "//mediapipe/framework/port:status", "//mediapipe/framework/port:statusor", + "//mediapipe/framework/tool:status_util", + "@com_google_protobuf//:protobuf", "//mediapipe/framework/formats/annotation:rasterization_cc_proto", ] + select({ "//conditions:default": [ @@ -362,15 +362,15 @@ cc_library( deps = [ ":image", ":image_frame_pool", - "//mediapipe/framework:port", - "//mediapipe/framework/port:logging", "@com_google_absl//absl/memory", "@com_google_absl//absl/synchronization", + "//mediapipe/framework:port", + "//mediapipe/framework/port:logging", ] + select({ "//conditions:default": [ + "//mediapipe/gpu:gl_base", "//mediapipe/gpu:gl_texture_buffer", "//mediapipe/gpu:gl_texture_buffer_pool", - "//mediapipe/gpu:gl_base", "//mediapipe/gpu:gpu_buffer", ], "//mediapipe:ios": [