Commit Graph

210 Commits

Author SHA1 Message Date
Alan Kelly
6a6786673e Do not explicitly set XNNPACK delegate flags.
XNNPACK is now enabled by default for all types so the behaviour remains identical.

PiperOrigin-RevId: 520855384
2023-03-31 00:59:29 -07:00
Sebastian Schmidt
eaa708a18d Enable TextClassifier and TextEmbedder on Windows Python
PiperOrigin-RevId: 520498308
2023-03-29 18:26:53 -07:00
Sebastian Schmidt
df67b35348 Internal change
PiperOrigin-RevId: 520486540
2023-03-29 17:27:16 -07:00
Sebastian Schmidt
6be4aedcf7 Use mediapipe_proto_library for all MediaPipe Protos
PiperOrigin-RevId: 520451054
2023-03-29 15:00:59 -07:00
MediaPipe Team
0c8f691a36 Internal changes
PiperOrigin-RevId: 520411557
2023-03-29 12:35:20 -07:00
MediaPipe Team
8e9207a7de Internal change
PiperOrigin-RevId: 520373147
2023-03-29 10:24:10 -07:00
MediaPipe Team
b4e1f0236a Add EndLoopImageCalculator
PiperOrigin-RevId: 520033132
2023-03-28 08:20:56 -07:00
MediaPipe Team
a18a62ef04 Make AnnotationOverlayCalculator compatible with GLES2/WebGL1 by using GL_RGB as internal format instead of GL_RGB8 for the texture that OpenCV renders into.
PiperOrigin-RevId: 519933934
2023-03-27 23:13:16 -07:00
MediaPipe Team
004265bbbd remove the check that data streams need to be > 0 since we have a use case of:
input_stream: "ALLOW:"
output_stream: "STATE_CHANGE"
PiperOrigin-RevId: 519891414
2023-03-27 19:14:24 -07:00
MediaPipe Team
5f8831660f Internal MediaPipe Tasks change.
PiperOrigin-RevId: 519878741
2023-03-27 17:55:28 -07:00
MediaPipe Team
1fdc82d7ec Internal change
PiperOrigin-RevId: 519805707
2023-03-27 13:02:37 -07:00
MediaPipe Team
948e17f404 Internal change
PiperOrigin-RevId: 518906661
2023-03-23 10:57:43 -07:00
Jiuqiang Tang
21e0ff3d4e Skip unnecessary cpu<->gpu conversion if the input and output are already on the same storage.
PiperOrigin-RevId: 518573284
2023-03-22 08:22:38 -07:00
MediaPipe Team
88effb19e5 Add build variants for _gms to some MediaPipe libraries that use TFLite
This change alters some cc_library to cc_library_with_tflite to add _gms variants to some select MediaPipe libraries. This CL also makes minimal changes in the code to make the _gms variants buildable.

PiperOrigin-RevId: 518336242
2023-03-21 11:48:09 -07:00
MediaPipe Team
c2a3e99545 Internal change
PiperOrigin-RevId: 518330697
2023-03-21 11:29:04 -07:00
MediaPipe Team
524acaaaa7 internal change
PiperOrigin-RevId: 517823184
2023-03-19 16:07:32 -07:00
MediaPipe Team
a9e956baa1 Add more details to the invoke call trace.
It is always useful information to know if the TPU invoke is Async or not, and if the GPU invoke on the old path or new path.
This can make it obvious in the perfetto trace.

PiperOrigin-RevId: 517162515
2023-03-16 10:37:32 -07:00
MediaPipe Team
ed3e728bb8 Internal change
PiperOrigin-RevId: 516607678
2023-03-14 12:57:24 -07:00
MediaPipe Team
89857f33a2 Make ImageToTensorCalculator use kGpuService optionally
PiperOrigin-RevId: 516358053
2023-03-13 16:48:49 -07:00
Chris McClanahan
1b4a835be0 Internal change
PiperOrigin-RevId: 516349788
2023-03-13 16:09:56 -07:00
MediaPipe Team
2fb62e4c29 Add volume_gain_db option to TensorsToAudioCalculator.
PiperOrigin-RevId: 515150234
2023-03-08 14:57:29 -08:00
Sebastian Schmidt
09f63cbbe0 Internal change
PiperOrigin-RevId: 515094293
2023-03-08 11:33:38 -08:00
Jiuqiang Tang
ddc535e705 Add DftTensorFormat To TensorsToAudioCalculatorOptions.
PiperOrigin-RevId: 515077766
2023-03-08 10:38:40 -08:00
MediaPipe Team
225dd36a63 Internal change
PiperOrigin-RevId: 514835354
2023-03-07 14:11:47 -08:00
Jiuqiang Tang
77fcaa9597 Allow TensorsToAudioCalculator to add and overlay adjacent windows.
PiperOrigin-RevId: 514483756
2023-03-06 12:08:57 -08:00
MediaPipe Team
c64f83fff4 Internal change
PiperOrigin-RevId: 514452059
2023-03-06 10:29:29 -08:00
MediaPipe Team
0ba35cf1a7 Internal change
PiperOrigin-RevId: 513608516
2023-03-02 12:29:06 -08:00
Jiuqiang Tang
172b360478 Remove unused variable 'input_num'.
PiperOrigin-RevId: 513009671
2023-02-28 12:37:03 -08:00
MediaPipe Team
01c64082f1 ImageToTensorCalculator decides the output tensor size in runtime from the input image size.
PiperOrigin-RevId: 511882195
2023-02-23 14:18:31 -08:00
MediaPipe Team
0981367e84 DetectionTransformationCalculator handles empty input.
PiperOrigin-RevId: 511881969
2023-02-23 14:14:20 -08:00
MediaPipe Team
9a6d5e0444 Update MediaPipe TFLite code to use generic "shim" symbols and headers
PiperOrigin-RevId: 511265313
2023-02-21 11:58:32 -08:00
Jiuqiang Tang
8a0830ce7b Add "java_package" and "java_outer_classname" to ImageTransformationCalculatorOptions.
PiperOrigin-RevId: 510720513
2023-02-18 16:58:56 -08:00
MediaPipe Team
68ba9a6ebf [ImageTransformationCalculator]Add option to specify padding color
PiperOrigin-RevId: 510541473
2023-02-17 15:57:19 -08:00
MediaPipe Team
1a60a0e2d6 Use box_output_format to decide keypoint order
PiperOrigin-RevId: 510464960
2023-02-17 10:30:57 -08:00
Hadon Nash
5f6bbdbce5 Internal change
PiperOrigin-RevId: 510243967
2023-02-16 14:26:46 -08:00
MediaPipe Team
1b66fc2802 Fix Typo.
PiperOrigin-RevId: 510156746
2023-02-16 08:55:56 -08:00
MediaPipe Team
796a96d842 Add support for [xmin, ymin, xmax, ymax] style of bbox output
PiperOrigin-RevId: 509942540
2023-02-15 15:06:52 -08:00
MediaPipe Team
c66b7e83f0 ssd anchors calculator add fixed anchors.
PiperOrigin-RevId: 509574814
2023-02-14 10:43:23 -08:00
MediaPipe Team
d61b7dbef8 Updated the Begin/EndLoopCalculator to be able to handle mediapipe::Tensor
type.

PiperOrigin-RevId: 508552066
2023-02-09 20:33:40 -08:00
MediaPipe Team
fd764dae0a Depends on TFLite shim header.
PiperOrigin-RevId: 508491302
2023-02-09 15:29:47 -08:00
MediaPipe Team
c3907229fe Use case: add metadata to headerless graph input audio streams.
PiperOrigin-RevId: 508389799
2023-02-09 09:07:02 -08:00
Jiuqiang Tang
01c6a8b49b Add volume_gain_db option into AudioToTensorCalculator.
PiperOrigin-RevId: 507748012
2023-02-07 05:14:42 -08:00
Chris McClanahan
e2ef78433f Add more filtering methods to detection filter calculator.
PiperOrigin-RevId: 507581281
2023-02-06 14:19:40 -08:00
Juhyun Lee
0919a6c0a3 Log which InferenceCalculator impl is used at runtime.
PiperOrigin-RevId: 506343086
2023-02-01 09:45:36 -08:00
MediaPipe Team
5730dec260 Internal change
PiperOrigin-RevId: 506053206
2023-01-31 11:03:41 -08:00
MediaPipe Team
ee2f940e1f Make TensorToVectorFloatCalculator compatible with unaligned tensors.
No performance impact is expected, since the unaligned Eigen::TensorMap is used only to populate a std::vector<float>.

PiperOrigin-RevId: 505251810
2023-01-27 18:08:03 -08:00
Jiuqiang Tang
0566e0e7ca Fix the output stream tag of the end loop calculator in the example code.
PiperOrigin-RevId: 504708273
2023-01-25 17:52:55 -08:00
Nikolay Chirkov
1124569c29 Tensor: Make tensor not requiring "-x objective-c++" option.
In this case tensor.h is compiled differently for C++ and Objective-C++ that violates ODR (once definition rule). Tensor has no virtual methods conditionally compiled but some Metal-related data members. Instead, unique_ptr to MtlResources that is declared as forward structure is unconditionally defined in the tensor class. MtlResources is defined differently in cc-file only that compiled just once per project so no ODR violation is here.

PiperOrigin-RevId: 504029286
2023-01-23 11:00:35 -08:00
Adam Cozzette
7a7cc77a81 Internal change
PiperOrigin-RevId: 503157344
2023-01-19 07:20:04 -08:00
MediaPipe Team
e2dedcbfe5 Add SQRT_HANN window type to both SpectrogramCalculator and InverseSpectrogramCalculator.
PiperOrigin-RevId: 503041493
2023-01-18 19:42:13 -08:00