Commit Graph

306 Commits

Author SHA1 Message Date
MediaPipe Team
9045a74ba3 Internal change
PiperOrigin-RevId: 537175065
2023-06-01 17:48:03 -07:00
MediaPipe Team
15aff443b1 Internal change
PiperOrigin-RevId: 537089863
2023-06-01 12:00:44 -07:00
Copybara-Service
32e48dd2d9 Merge pull request #4486 from priankakariatyml:ios-gesture-recognizer-impl
PiperOrigin-RevId: 536516003
2023-05-30 14:53:04 -07:00
MediaPipe Team
01cfb92e35 Add MultiLandmarksSmoothingCalculator
PiperOrigin-RevId: 536490704
2023-05-30 13:20:55 -07:00
MediaPipe Team
c73027926f Add MultiLandmarksSmoothingCalculator
PiperOrigin-RevId: 536478601
2023-05-30 12:37:05 -07:00
MediaPipe Team
a432559123 Port LandmarksSmoothingCalculator to api2
PiperOrigin-RevId: 536474279
2023-05-30 12:20:23 -07:00
MediaPipe Team
e483b31fcf Internal change
PiperOrigin-RevId: 535636593
2023-05-26 09:23:37 -07:00
MediaPipe Team
3ac903787a Internal change
PiperOrigin-RevId: 535162357
2023-05-25 01:49:30 -07:00
MediaPipe Team
7800d238e9 add needed enum type for choose fuse pipeline.
PiperOrigin-RevId: 535076733
2023-05-24 20:17:54 -07:00
MediaPipe Team
c8ee09796b Internal change
PiperOrigin-RevId: 534959867
2023-05-24 13:26:53 -07:00
Rachel Hornung
25458138a9 #MediaPipe Add ConcatenateStringVectorCalculator.
PiperOrigin-RevId: 532956844
2023-05-17 17:11:20 -07:00
MediaPipe Team
e0eef9791e Internal change
PiperOrigin-RevId: 532113907
2023-05-15 08:06:33 -07:00
MediaPipe Team
fc9538533c Improve loop calculator documentation and add additional specializations
The documentation is confusing since it was unclear where e.g. BeginLoopWithIterableCalculator comes from. Also, input_to_loop_body wasn't connected to anything. loop_internal_ts is more confusing than helpful. This CL cleans up the docs. It also adds specializations for CPU image and GPU texture buffers to be used for the recompose effect.

PiperOrigin-RevId: 532083714
2023-05-15 05:58:58 -07:00
MediaPipe Team
9de52a4a30 Internal change
PiperOrigin-RevId: 530562491
2023-05-09 03:48:49 -07:00
MediaPipe Team
b40f0d3b72 Internal change
PiperOrigin-RevId: 530385895
2023-05-08 13:04:51 -07:00
Shuang Liu
0c75c76623 Fix a typo.
PiperOrigin-RevId: 530339315
2023-05-08 10:24:29 -07:00
MediaPipe Team
baa8fc68a1 Make uploading to GPU optional in Image.GetGpuBuffer().
PiperOrigin-RevId: 529066617
2023-05-03 05:57:58 -07:00
MediaPipe Team
5b93477589 internal change
PiperOrigin-RevId: 528719459
2023-05-02 02:17:18 -07:00
MediaPipe Team
3dce259bf6 Internal change
PiperOrigin-RevId: 527931585
2023-04-28 11:02:26 -07:00
MediaPipe Team
baed44ab10 Internal change
PiperOrigin-RevId: 527416263
2023-04-26 17:12:34 -07:00
Jiuqiang Tang
3bc8276678 Remove "All Rights Reserved." in copyright headers.
PiperOrigin-RevId: 526982992
2023-04-25 09:06:29 -07:00
Sebastian Schmidt
35cf8c35f2 Internal change
PiperOrigin-RevId: 526658482
2023-04-24 09:01:55 -07:00
MediaPipe Team
02bdb9aba0 Internal change
PiperOrigin-RevId: 525845988
2023-04-20 14:14:58 -07:00
MediaPipe Team
a89ec882b0 Internal change
PiperOrigin-RevId: 525774601
2023-04-20 09:55:35 -07:00
MediaPipe Team
331692577e Internal change
PiperOrigin-RevId: 525660743
2023-04-19 23:47:59 -07:00
MediaPipe Team
01f4439d83 Internal change
PiperOrigin-RevId: 525399975
2023-04-19 03:33:01 -07:00
MediaPipe Team
48cc96cf3c Internal change
PiperOrigin-RevId: 524517985
2023-04-15 06:18:05 -07:00
MediaPipe Team
5fc0d26d8d Internal change
PiperOrigin-RevId: 524457848
2023-04-14 21:33:14 -07:00
Bekzhan Bekbolatuly
54d208aa5c Internal change
PiperOrigin-RevId: 524345939
2023-04-14 11:44:36 -07:00
MediaPipe Team
06bbd9c599 Internal change
PiperOrigin-RevId: 524212873
2023-04-14 00:09:30 -07:00
MediaPipe Team
f934b220b2 Internal change
PiperOrigin-RevId: 524202659
2023-04-13 23:01:20 -07:00
MediaPipe Team
3fdd7f3618 Internal change
PiperOrigin-RevId: 523930101
2023-04-13 01:28:41 -07:00
MediaPipe Team
c8b9cec7ef Internal change
PiperOrigin-RevId: 523916108
2023-04-13 00:16:17 -07:00
MediaPipe Team
52e934a539 Internal change
PiperOrigin-RevId: 523611358
2023-04-11 23:13:45 -07:00
MediaPipe Team
f923f6bcda Internal change
PiperOrigin-RevId: 523589395
2023-04-11 21:03:38 -07:00
MediaPipe Team
a448790300 Internal change
PiperOrigin-RevId: 523351901
2023-04-11 03:23:24 -07:00
MediaPipe Team
a4172cb03f Internal change
PiperOrigin-RevId: 523306493
2023-04-10 22:50:58 -07:00
Jiuqiang Tang
bca0a92c2e Add FaceToRectCalculator.
PiperOrigin-RevId: 522595752
2023-04-07 07:44:51 -07:00
MediaPipe Team
e894ae9cf4 Internal change
PiperOrigin-RevId: 522291640
2023-04-06 03:15:24 -07:00
MediaPipe Team
a151e6485a Internal change
PiperOrigin-RevId: 522287183
2023-04-06 02:50:05 -07:00
MediaPipe Team
22186299c4 Internal change
PiperOrigin-RevId: 522263621
2023-04-06 00:21:14 -07:00
MediaPipe Team
12ecc8139f Internal change
PiperOrigin-RevId: 522255287
2023-04-05 23:24:55 -07:00
MediaPipe Team
91264eab1f Internal change
PiperOrigin-RevId: 521982139
2023-04-05 01:20:21 -07:00
MediaPipe Team
55bcfcb4f5 Internal change
PiperOrigin-RevId: 521834742
2023-04-04 12:30:54 -07:00
MediaPipe Team
7c7eb74ef2 Internal change
PiperOrigin-RevId: 521586389
2023-04-03 16:00:24 -07:00
Sebastian Schmidt
e84799ee37 Internal change
PiperOrigin-RevId: 521483663
2023-04-03 09:45:42 -07:00
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
Jiuqiang Tang
29484702ce Add process_timestamp_bounds into RectToRenderScaleCalculatorOptions.
PiperOrigin-RevId: 502877541
2023-01-18 08:02:47 -08:00
Copybara-Service
4e19a5a0dc Merge pull request #3988 from priankakariatyml:ios-text-classifier-impl
PiperOrigin-RevId: 501739316
2023-01-12 20:25:02 -08:00
Sebastian Schmidt
7f043b7de1 Allow split_vector_calculator to be build with iOS and MEDIAPIPE_DISABLE_GPU
PiperOrigin-RevId: 500327774
2023-01-06 21:45:15 -08:00
MediaPipe Team
2cce88080e Internal change
PiperOrigin-RevId: 500271109
2023-01-06 15:29:19 -08:00