Commit Graph

2564 Commits

Author SHA1 Message Date
MediaPipe Team
3b99f8d9dd Introduce SetJointsVisibilityCalculator
PiperOrigin-RevId: 570745171
2023-10-04 11:04:40 -07:00
MediaPipe Team
c81624d7b2 Introduce CombineJointsCalculator
PiperOrigin-RevId: 570739088
2023-10-04 10:45:11 -07:00
Daniel Cheng
7f1c17065a Prefix status macro implementation with MP_.
This makes it less likely for the implementation to conflict with other
ASSIGN_OR_RETURN() and RETURN_IF_ERROR() implementations.

PiperOrigin-RevId: 570726994
2023-10-04 10:04:59 -07:00
MediaPipe Team
9bb042cc86 GlSurfaceViewRenderer: Capture graph output texture
Captures the original graph output texture, not what has been copied to the screen. This will be important for zooming to prevent top/bottom letterboxes, and it preserves the original quality, so that high resolution images can be used.

PiperOrigin-RevId: 570604422
2023-10-04 00:07:13 -07:00
Prianka Liz Kariat
da7013c746 Updated error messages in MPPImage Utils 2023-10-03 23:59:46 +05:30
Prianka Liz Kariat
cebfa1cdac Fixed error messages 2023-10-03 23:52:58 +05:30
MediaPipe Team
da8fcb6bb2 Smooth pose landmarks
PiperOrigin-RevId: 570441366
2023-10-03 11:12:46 -07:00
Sebastian Schmidt
a72839ef99 See memory of freed result to nullptr
PiperOrigin-RevId: 570410751
2023-10-03 09:33:48 -07:00
MediaPipe Team
d0183b2c70 Fixes typos in the file mediapipe/python/pybind/image.cc and mediapipe/python/pybind
/image_frame.cc.

PiperOrigin-RevId: 570388388
2023-10-03 08:01:25 -07:00
Prianka Liz Kariat
0ee9b7f86e Added iOS language detector options helpers 2023-10-03 19:21:05 +05:30
Prianka Liz Kariat
38de7493df Added iOS language detector results 2023-10-03 19:20:45 +05:30
Prianka Liz Kariat
3c13e4b6d6 Added iOS language detector options 2023-10-03 19:20:33 +05:30
Prianka Liz Kariat
3067c20955 Added iOS pose landmarker result helpers 2023-10-03 19:18:29 +05:30
Prianka Liz Kariat
c560032a91 Added iOS pose landmarker options 2023-10-03 19:18:06 +05:30
Prianka Liz Kariat
8d5cf33ca4 Added iOS Pose Landmarker Result 2023-10-03 19:17:49 +05:30
Kinar
753ba916a1 Fixed some typos 2023-10-03 01:51:18 -07:00
Kinar
3564fc0d9b Added files for the TextEmbedder C API and tests 2023-10-03 01:48:07 -07:00
MediaPipe Team
5366aa9d0a Internal update
PiperOrigin-RevId: 570204415
2023-10-02 15:55:31 -07:00
Sebastian Schmidt
a00759007d Add error handling to C API
PiperOrigin-RevId: 570094642
2023-10-02 09:49:09 -07:00
Sebastian Schmidt
c7402efe5e Add End to End test for Text Classifier C API
PiperOrigin-RevId: 569658768
2023-09-29 20:53:54 -07:00
Sebastian Schmidt
96fa10b906 Add unit tests for C layer for the input types of Text Classifier
PiperOrigin-RevId: 569553038
2023-09-29 12:08:00 -07:00
Sebastian Schmidt
6915a79e28 Add tests for C API containers
PiperOrigin-RevId: 569526282
2023-09-29 10:27:15 -07:00
Sebastian Schmidt
d4561fb5c2 Do not use full filename when FileLocator decides which asset to load
Fixes https://github.com/google/mediapipe/issues/4819

PiperOrigin-RevId: 569506907
2023-09-29 09:11:01 -07:00
MediaPipe Team
09a51bcdeb Internal change
PiperOrigin-RevId: 569310433
2023-09-28 15:44:37 -07:00
Sebastian Schmidt
5ca1be6f21 Populate the classification result output param instead of a copy
PiperOrigin-RevId: 569293617
2023-09-28 14:38:02 -07:00
MediaPipe Team
f78f24f576 segmentation smoothing stream utility function.
PiperOrigin-RevId: 569283980
2023-09-28 14:03:24 -07:00
Sebastian Schmidt
636cf99a3e Fix memory access issue in C layer
PiperOrigin-RevId: 569279959
2023-09-28 13:50:28 -07:00
MediaPipe Team
e169849041 No public description
PiperOrigin-RevId: 569274219
2023-09-28 13:31:00 -07:00
Sebastian Schmidt
33d6143a1a Don't convert nullptr to std::string in C layer
PiperOrigin-RevId: 569232756
2023-09-28 11:04:44 -07:00
Prianka Liz Kariat
120f82508c Chnaged de allocation method in data provider release callback 2023-09-28 21:43:18 +05:30
Prianka Liz Kariat
8ea805b6f0 Added methods to create iOS MPImage with source type UIImage from a C++ image. 2023-09-28 21:37:03 +05:30
MediaPipe Team
a577dc3043 smoothing stream utility function.
PiperOrigin-RevId: 569074973
2023-09-27 23:19:37 -07:00
MediaPipe Team
9edb4cd753 Introduce LandmarksTransformationCalculator
PiperOrigin-RevId: 569050686
2023-09-27 21:12:19 -07:00
MediaPipe Team
66a279418c tensor_to_joints stream utility function.
PiperOrigin-RevId: 569043195
2023-09-27 20:34:20 -07:00
MediaPipe Team
0ae9ff6b98 Introduce TensorToJointsCalculator
PiperOrigin-RevId: 569040914
2023-09-27 20:27:24 -07:00
MediaPipe Team
da02052c70 landmarks_to_tensor stream utility function.
PiperOrigin-RevId: 569003241
2023-09-27 17:13:46 -07:00
MediaPipe Team
8837b49026 get_vector_item stream utility function.
PiperOrigin-RevId: 568998504
2023-09-27 16:55:43 -07:00
MediaPipe Team
2ecccaf076 concatenate stream utility function.
PiperOrigin-RevId: 568997695
2023-09-27 16:50:48 -07:00
MediaPipe Team
983fda5d4e No public description
PiperOrigin-RevId: 568953918
2023-09-27 14:04:33 -07:00
MediaPipe Team
8f8c66430f Update PackMediaSequenceCalculator to support index feature inputs on the CLIP_MEDIA_ input tag.
For Detection protos representing index features, the `label` field might be empty.

With this change, only the `Detection::score` field is required, and `Detection.label` and `Detection.label_id` are both optional but at least one of them should be set.

PiperOrigin-RevId: 568944596
2023-09-27 13:33:55 -07:00
MediaPipe Team
698b154ff4 Only recreate immutable texture when necessary for Android TensorsToSegmentationCalculator.
PiperOrigin-RevId: 568937611
2023-09-27 13:09:29 -07:00
MediaPipe Team
787371cfba No public description
PiperOrigin-RevId: 568927297
2023-09-27 12:27:57 -07:00
Sebastian Schmidt
61ce228576 Add cc_binary target for C Libraries
PiperOrigin-RevId: 568902427
2023-09-27 11:04:41 -07:00
Sebastian Schmidt
b01ad84c6f Add export declaration to FaceDetector.detect()
PiperOrigin-RevId: 568872459
2023-09-27 09:28:53 -07:00
Copybara-Service
0417817886 Merge pull request #4829 from priankakariatyml:ios-vision-api-name-changes
PiperOrigin-RevId: 568622587
2023-09-26 12:51:31 -07:00
MediaPipe Team
199b42278b Fixes multiple typos in the tasks internal files.
PiperOrigin-RevId: 568585517
2023-09-26 10:45:07 -07:00
MediaPipe Team
573fdad173 Add export_model_with_tokenizer to Text Classifier API.
PiperOrigin-RevId: 567744604
2023-09-22 16:32:38 -07:00
Chris McClanahan
9d85141227 No public description
PiperOrigin-RevId: 567726262
2023-09-22 15:07:11 -07:00
Prianka Liz Kariat
b1f717e111 Added iOS Image Segmenter tests for methods with completion handlers 2023-09-23 00:15:10 +05:30
Prianka Liz Kariat
2d4e5a75b3 Updated iOS Object Detector Objective C API names 2023-09-23 00:08:43 +05:30
Prianka Liz Kariat
435bee71e8 Updated iOS hand landmarker Objective C API names 2023-09-23 00:08:07 +05:30
Prianka Liz Kariat
9d42744f8a Updated iOS Face Landmarker Objective C API names 2023-09-23 00:07:49 +05:30
Prianka Liz Kariat
d7c57e4eda Updated iOS Face Detector Objective C API names 2023-09-23 00:07:20 +05:30
MediaPipe Team
34cedb980b No public description
PiperOrigin-RevId: 567562548
2023-09-22 02:24:25 -07:00
MediaPipe Team
743118a04a Fixes multiple typos in the tasks internal files.
PiperOrigin-RevId: 567506050
2023-09-21 21:24:45 -07:00
MediaPipe Team
859d90b68b No public description
PiperOrigin-RevId: 567439132
2023-09-21 15:40:19 -07:00
MediaPipe Team
abf0ee892a Internal Changes
PiperOrigin-RevId: 567374962
2023-09-21 11:55:02 -07:00
Copybara-Service
19c9d328cb Merge pull request #4815 from priankakariatyml:ios-image-segmenter-basic-tests
PiperOrigin-RevId: 567102079
2023-09-20 15:46:14 -07:00
MediaPipe Team
223641a73c Fix depth condition bug when only depth condition is configured.
PiperOrigin-RevId: 567080598
2023-09-20 14:29:18 -07:00
MediaPipe Team
41a012721f Fix bug missing SHOW_RESULT in image generator
PiperOrigin-RevId: 566810243
2023-09-19 18:37:35 -07:00
MediaPipe Team
867d5dc5a7 No public description
PiperOrigin-RevId: 566794388
2023-09-19 17:27:55 -07:00
MediaPipe Team
bbf40cba87 split stream utility function.
PiperOrigin-RevId: 566722901
2023-09-19 13:21:39 -07:00
Sebastian Schmidt
12600e03e9 Do not convert milliseconds to microseconds twice
Fixes https://github.com/google/mediapipe/issues/4809

PiperOrigin-RevId: 566644379
2023-09-19 08:47:31 -07:00
Prianka Liz Kariat
f1a5c8d549 Fixed formatting in MPPImageSegmenter.mm 2023-09-19 20:10:23 +05:30
Prianka Liz Kariat
d9d4016334 Uncommented live stream test in iOS image segmenter tests 2023-09-19 20:06:25 +05:30
Prianka Liz Kariat
bac60548dc Added selfie segmentation and running mode tests to image segmenter 2023-09-19 20:00:41 +05:30
Prianka Liz Kariat
08a5d55ac1 Updated interface of iOS image segmenter 2023-09-19 19:59:33 +05:30
Prianka Liz Kariat
6e80941215 Fixed premature deallocation of C++ masks in iOS Image Segmenter 2023-09-19 19:59:07 +05:30
Kinar
1c40ecf8a5 Added files for Face Stylizer Unit Tests 2023-09-19 03:08:01 -07:00
MediaPipe Team
0ed199186b Fix glScalerCalculator not clearing background in FIT mode
In FIT mode, the image is scaled in an aspect ratio preserving way. That means, the calculator does not render a full-screen quad. The letterbox areas are not drawn. This can cause artifacts, e.g. when MediaPipe reuses the GPU buffer from some other operation. This CL always clears the render target in FIT mode.

PiperOrigin-RevId: 566562715
2023-09-19 02:19:22 -07:00
MediaPipe Team
94cda40a83 No public description
PiperOrigin-RevId: 566435327
2023-09-18 15:50:10 -07:00
MediaPipe Team
36f78f6e4a threshold stream utility function.
PiperOrigin-RevId: 566417914
2023-09-18 14:44:28 -07:00
MediaPipe Team
58a7790081 detections_to_rects stream utility function.
PiperOrigin-RevId: 566358715
2023-09-18 11:17:27 -07:00
MediaPipe Team
f4477f1739 A minor typo fix in model maker image classifier hyperparameters python docstring.
PiperOrigin-RevId: 566355937
2023-09-18 11:07:58 -07:00
Copybara-Service
d5fa4a157e Merge pull request #4802 from priankakariatyml:ios-image-segmenter-basic-tests
PiperOrigin-RevId: 565797057
2023-09-15 15:45:54 -07:00
Copybara-Service
838c89a3ff Merge pull request #4801 from priankakariatyml:ios-face-stylizer
PiperOrigin-RevId: 565784200
2023-09-15 14:49:50 -07:00
Sebastian Schmidt
94477b1342 No public description
PiperOrigin-RevId: 565755048
2023-09-15 12:55:00 -07:00
Sebastian Schmidt
a933e324b5 Add export declaration for FaceDetector
Fixes https://github.com/google/mediapipe/issues/4799

PiperOrigin-RevId: 565706741
2023-09-15 10:06:06 -07:00
Sebastian Schmidt
30590fe8d3 Add helper to create Connection array
PiperOrigin-RevId: 565706612
2023-09-15 10:00:28 -07:00
Prianka Liz Kariat
0f511d52d6 Fixed typo in iOS MPPImageSegmenterResult helpers 2023-09-15 14:24:15 +05:30
Prianka Liz Kariat
b3be1418da Updated multiply function in iOS Image Segmenter tests to use C++ vectors 2023-09-15 14:21:33 +05:30
Prianka Liz Kariat
fad7f9cdb4 Added iOS image segmenter basic Objective C tests 2023-09-15 14:18:54 +05:30
Prianka Liz Kariat
d3f7368b27 Added iOS MPPMask test utils 2023-09-15 14:18:23 +05:30
Prianka Liz Kariat
81ec5801ea Added new initializers for iOS MPPImage in test utils 2023-09-15 14:18:10 +05:30
Prianka Liz Kariat
e0b059da58 Added iOS MPPFileInfo for tests 2023-09-15 14:16:50 +05:30
Prianka Liz Kariat
21d000490c Added iOS face stylizer header 2023-09-15 14:06:11 +05:30
Prianka Liz Kariat
bb93b775f4 Added iOS face stylizer options 2023-09-15 14:05:59 +05:30
Prianka Liz Kariat
a259300bfe Added iOS face stylizer result 2023-09-15 14:05:38 +05:30
Sebastian Schmidt
4a8a811373 No public description
PiperOrigin-RevId: 565516592
2023-09-14 17:00:02 -07:00
MediaPipe Team
81964608ba Fixes typo in MediaPipe namespace
PiperOrigin-RevId: 565478366
2023-09-14 14:32:35 -07:00
Daniel Cheng
65e7cd5236 Fix win32 build break in mediapipe.
buffer_aligned_size_ is not used in tflite_support, but is used
in mediapipe.

PiperOrigin-RevId: 565477047
2023-09-14 14:27:05 -07:00
MediaPipe Team
f2b11bf250 No public description
PiperOrigin-RevId: 565446429
2023-09-14 12:41:12 -07:00
Sebastian Schmidt
85b19383b9 Fixes iOS hand landmarker connections
PiperOrigin-RevId: 565442497
2023-09-14 12:24:25 -07:00
MediaPipe Team
124a4de08d Clean up TensorConverterCalculator flipping behavior
Returns an error if
- gpu_origin is specified for a CPU image, and
- gpu_origin and flip_vertically are both specified.
Adds a test for an IMAGE_GPU input to validate flipping.

PiperOrigin-RevId: 565311456
2023-09-14 02:56:02 -07:00
Daniel Cheng
21646008d5 Don't define field in ExternalFileHandler that's not used on Windows.
This fixes:
```
error: private field 'buffer_aligned_size_' is not used [-Werror,-Wunused-private-field]
   87 |   int64 buffer_aligned_size_{};
      |         ^
```
in the downstream Chrome build.
PiperOrigin-RevId: 565221813
2023-09-13 18:42:32 -07:00
MediaPipe Team
7333329470 No public description
PiperOrigin-RevId: 565215664
2023-09-13 18:11:03 -07:00
MediaPipe Team
e1d1877e07 Modifying tensor_to_vector_float_calculator to take in D_BFLOAT16 values
PiperOrigin-RevId: 565189254
2023-09-13 16:10:35 -07:00
MediaPipe Team
6dc1239aa9 No public description
PiperOrigin-RevId: 565167086
2023-09-13 14:48:48 -07:00
Sebastian Schmidt
50bd79a317 Add exports to ImageSegmenterResult and InteractiveSegmenterResult
PiperOrigin-RevId: 565138661
2023-09-13 13:11:25 -07:00
Sebastian Schmidt
7b091dbe53 Fix missing exports for FilesetResolver and static constants
PiperOrigin-RevId: 565113006
2023-09-13 11:40:36 -07:00
MediaPipe Team
d6ee884200 No public description
PiperOrigin-RevId: 565087299
2023-09-13 10:23:00 -07:00
MediaPipe Team
8c9cd8a2fb fixes the non-unicode path of file_helpers on windows
Macros can't start with ##, this fixes it.

PiperOrigin-RevId: 565066376
2023-09-13 09:04:33 -07:00
MediaPipe Team
90e18eab91 Internal change.
PiperOrigin-RevId: 565062314
2023-09-13 08:49:16 -07:00
MediaPipe Team
38f421acf0 This will fix multiple typos in the tasks internal files.
PiperOrigin-RevId: 565055843
2023-09-13 08:22:19 -07:00
Sebastian Schmidt
a5a3e9d36b No public description
PiperOrigin-RevId: 564894013
2023-09-12 18:41:10 -07:00
MediaPipe Team
df211d211e Internal update.
PiperOrigin-RevId: 564883563
2023-09-12 17:40:28 -07:00
MediaPipe Team
1d8dda3337 Remove uncoditional texture params reset to make float textures handled correctly.
PiperOrigin-RevId: 564869245
2023-09-12 16:40:13 -07:00
MediaPipe Team
5b08a09446 Fixes two issues with file handling on windows:
. If UNICODE is set, then win32 functions taking file paths use wide
  (utf-16) strings. For example, FindFirstFile really calls to
  FindFirstFileW, which takes a wchar_t*. This adds support for
  the unicode path.
. SetContents() changes from "w" to "wb". This is necessary as
  windows will do some amount of encoding without "b", which results
  in much different values being written.

PiperOrigin-RevId: 564842317
2023-09-12 15:00:05 -07:00
MediaPipe Team
dbcdb44f7c Move loading tasks-vision-jni to individual vision task class
PiperOrigin-RevId: 564840343
2023-09-12 14:52:58 -07:00
MediaPipe Team
4ba1dadf92 Add option for nearest neighbor interpolation.
PiperOrigin-RevId: 564786213
2023-09-12 11:41:58 -07:00
MediaPipe Team
5daed78844 No public description
PiperOrigin-RevId: 564775970
2023-09-12 11:10:11 -07:00
MediaPipe Team
26a67f4424 No public description
PiperOrigin-RevId: 564651554
2023-09-12 02:15:53 -07:00
Sebastian Schmidt
12502b6f96 Add Handedness to JS, C++ and Android API
PiperOrigin-RevId: 564559718
2023-09-11 18:27:05 -07:00
MediaPipe Team
02bd0d95e7 Splitting GraphRunner into public API declared interfaces and private TS impls
PiperOrigin-RevId: 564551973
2023-09-11 17:48:21 -07:00
Sebastian Schmidt
0fec532ebe Add API exports for MPMask and MPImage
PiperOrigin-RevId: 564527405
2023-09-11 16:03:07 -07:00
MediaPipe Team
7a04d60134 Set the default running model to Image for face stylizer.
PiperOrigin-RevId: 564511316
2023-09-11 15:03:07 -07:00
Sebastian Schmidt
315982df0f Ensure that C header don't import C++ types
PiperOrigin-RevId: 564435119
2023-09-11 10:47:27 -07:00
Copybara-Service
cdf199cf96 Merge pull request #4775 from priankakariatyml:ios-doc-updates-part2
PiperOrigin-RevId: 564429285
2023-09-11 10:31:13 -07:00
Chris McClanahan
e51b923bda internal fix
PiperOrigin-RevId: 564404269
2023-09-11 09:11:49 -07:00
MediaPipe Team
7f245bc84b Internal Change
PiperOrigin-RevId: 564316003
2023-09-11 02:39:40 -07:00
MediaPipe Team
b2494fe3c1 This will fix multiple typos in the tasks internal files.
PiperOrigin-RevId: 564264998
2023-09-10 21:56:57 -07:00
MediaPipe Team
d1b04a9309 Set enableFlowLimiting to false since only Image model is supported for face stylizer.
PiperOrigin-RevId: 563939653
2023-09-08 22:46:15 -07:00
Sebastian Schmidt
7accc79018 Internal
PiperOrigin-RevId: 563907673
2023-09-08 19:16:14 -07:00
Copybara-Service
1514304ab3 Merge pull request #4767 from priankakariatyml:ios-vision-task-refactoring-impl3
PiperOrigin-RevId: 563859728
2023-09-08 15:00:36 -07:00
Sebastian Schmidt
6df05b7d2a Internal
PiperOrigin-RevId: 563843599
2023-09-08 13:55:19 -07:00
Prianka Liz Kariat
9d31827de8 Moved iOS MPPHandLandmark enum to MPPHandLandmarker.h 2023-09-08 20:06:47 +05:30
Prianka Liz Kariat
75daf4e756 Updated iOS hand landmarker documentation to use swift names 2023-09-08 19:16:15 +05:30
Prianka Liz Kariat
18f16f6bb5 Updated iOS gesture recognizer documentation to use Swift names 2023-09-08 19:15:56 +05:30
Prianka Liz Kariat
900e637b6a Fixed typos in iOS documentation 2023-09-08 19:15:32 +05:30
MediaPipe Team
886a118232 landmarks_to_detection stream utility function.
PiperOrigin-RevId: 563633314
2023-09-07 21:40:45 -07:00
MediaPipe Team
7549677408 Internal update
PiperOrigin-RevId: 563553758
2023-09-07 14:58:39 -07:00
MediaPipe Team
80b762a281 No public description
PiperOrigin-RevId: 563543098
2023-09-07 14:19:08 -07:00
Sebastian Schmidt
6c38483b37 Add externs to js_library targets
PiperOrigin-RevId: 563500180
2023-09-07 11:52:30 -07:00
vrabaud
55536c4382 No public description
PiperOrigin-RevId: 563333271
2023-09-07 00:00:38 -07:00
MediaPipe Team
5f4a6e313e Format improvement.
PiperOrigin-RevId: 563321343
2023-09-06 23:02:05 -07:00
MediaPipe Team
3ce457006f Remove video and streaming mode for face stylizer.
PiperOrigin-RevId: 563312344
2023-09-06 22:20:43 -07:00
MediaPipe Team
a9da6d325c Move stream API landmarks_projection to third_party.
PiperOrigin-RevId: 563246209
2023-09-06 16:21:09 -07:00
MediaPipe Team
7252f6f2e7 Remove video and stream model in face stylizer.
PiperOrigin-RevId: 563233996
2023-09-06 15:33:58 -07:00
MediaPipe Team
b40b3973fb Add notes/warnings for calculators which use dedicated GL contexts.
PiperOrigin-RevId: 563167765
2023-09-06 11:40:21 -07:00
MediaPipe Team
e58ec2d039 No public description
PiperOrigin-RevId: 563163901
2023-09-06 11:30:53 -07:00
MediaPipe Team
967007f250 No public description
PiperOrigin-RevId: 563145860
2023-09-06 10:35:52 -07:00
Prianka Liz Kariat
1ffa999abb Replaced the old iOS vision task runner with the refactored task runner 2023-09-06 18:55:03 +05:30
MediaPipe Team
e39119ae53 Add missing cache writing implementation in InferenceCalculatorAdvancedGL
Add missing implementation for absl::Status SaveGpuCachesBasedOnBehavior(tflite::gpu::TFLiteGPURunner* gpu_runner) const for non android/chromeos.

PiperOrigin-RevId: 562973338
2023-09-05 20:51:36 -07:00
MediaPipe Team
bf32d1acb2 No public description
PiperOrigin-RevId: 562915674
2023-09-05 15:52:21 -07:00
MediaPipe Team
4e52e96973 No public description
PiperOrigin-RevId: 562865700
2023-09-05 13:03:27 -07:00
Sebastian Schmidt
2aefa2308b Internal
PiperOrigin-RevId: 562834129
2023-09-05 11:10:55 -07:00
Copybara-Service
a87613aa6c Merge pull request #4750 from priankakariatyml:ios-vision-task-runner-refactor-impl-part2
PiperOrigin-RevId: 562823970
2023-09-05 10:39:19 -07:00
Fergus Henderson
a19da25565 Some spelling and grammar fixes in the comments.
PiperOrigin-RevId: 562802023
2023-09-05 09:28:50 -07:00
MediaPipe Team
be0cde8c2e No public description
PiperOrigin-RevId: 562724334
2023-09-05 03:39:37 -07:00
MediaPipe Team
cac462c486 Add allow_custom_ops to model_util.convert_to_tflite and enable custom ops for face stylizer.
PiperOrigin-RevId: 562212965
2023-09-02 09:56:40 -07:00
MediaPipe Team
d6119957a4 No public description
PiperOrigin-RevId: 562075110
2023-09-01 16:31:33 -07:00
MediaPipe Team
ab70d92752 No public description
PiperOrigin-RevId: 562071599
2023-09-01 16:14:06 -07:00
MediaPipe Team
23057ac146 Update PackMediaSequenceCalculator to support setting clip/media/string, clip/media/confidence and clip/label/index.
The input stream is provided as drishti::Detection.

PiperOrigin-RevId: 562070790
2023-09-01 16:08:52 -07:00
Copybara-Service
e7d071ab39 Merge pull request #4745 from priankakariatyml:ios-image-segmenter-impl
PiperOrigin-RevId: 562020873
2023-09-01 12:34:30 -07:00
MediaPipe Team
6c43d37e5a Provide API/options to show intermediate results and generating progress for Java Image Generator.
PiperOrigin-RevId: 562014712
2023-09-01 12:32:26 -07:00
MediaPipe Team
ceb8cd3c78 internal update.
PiperOrigin-RevId: 561995330
2023-09-01 10:57:40 -07:00
MediaPipe Team
823493ee82 Internal update.
PiperOrigin-RevId: 561995055
2023-09-01 10:53:00 -07:00
MediaPipe Team
007824594b Rollback of "Enable defining and using internal executors in subgraphs."
PiperOrigin-RevId: 561921927
2023-09-01 04:57:34 -07:00
Prianka Liz Kariat
40da111ba7 Updated iOS object detector to use refactored vision task runner 2023-09-01 14:07:42 +05:30
Prianka Liz Kariat
188321ace4 Updated iOS hand landmarker to use refactored vision task runner 2023-09-01 14:07:25 +05:30
Prianka Liz Kariat
020ca5eb77 Updated iOS gesture recognizer to use refactored vision task runner 2023-09-01 14:07:07 +05:30
Prianka Liz Kariat
fe9c7a47e9 Updated iOS face landmarker to use refactored vision task runner 2023-09-01 14:06:50 +05:30
MediaPipe Team
de0c7f2a30 Make cache writes optional in InferenceCalculatorAdvancedGL
Previously, caches were always written, and an error would cause the graph to close abruptly. This prevented services with read-only access to the cache from using the calculator.

The new behavior allows services to choose whether or not to write caches.

PiperOrigin-RevId: 561866791
2023-08-31 23:31:27 -07:00
MediaPipe Team
dea6ccba25 Remove unnecessary includes in threadpool_std_thread_impl.cc.
The windows.h was causing conflicts with LOG. Also the the posix headers weren't needed because the code doesn't use OS specific code anymore.

PiperOrigin-RevId: 561848229
2023-08-31 21:52:22 -07:00
Sebastian Schmidt
9bb852c33d Add libimagegenerator_gpu.so
PiperOrigin-RevId: 561800710
2023-08-31 17:10:00 -07:00
Copybara-Service
827c2983bd Merge pull request #4743 from priankakariatyml:ios-vision-task-runner-refactor-impl
PiperOrigin-RevId: 561796747
2023-08-31 16:53:14 -07:00
MediaPipe Team
81732944c4 No public description
PiperOrigin-RevId: 561775271
2023-08-31 15:22:43 -07:00
MediaPipe Team
afcb9c4216 No public description
PiperOrigin-RevId: 561773992
2023-08-31 15:17:51 -07:00
MediaPipe Team
62e682363c Remove reference pointer to prevent using a constant reference in the looped iteration variable
PiperOrigin-RevId: 561758116
2023-08-31 14:17:51 -07:00
MediaPipe Team
7c2d654d67 Convert CHECK macro to ABSL_CHECK.
Chrome can't use Absl's CHECK because of collisions with its own version.

PiperOrigin-RevId: 561740965
2023-08-31 13:20:29 -07:00
Prianka Liz Kariat
d16cb72438 Fixed method call in MPPImageSegmenter.mm 2023-08-31 18:04:09 +05:30
Prianka Liz Kariat
9f01540191 Changed order of methods in MPPImageSegmenter.mm 2023-08-31 18:02:34 +05:30
Prianka Liz Kariat
ba685567dd Updated iOS image classifier to use refactored vision task runner 2023-08-31 17:56:36 +05:30
Prianka Liz Kariat
e7a0ed84e6 Updated iOS face detector to use refactored vision task runner 2023-08-31 17:37:15 +05:30
Prianka Liz Kariat
ec87f068c1 Renamed option in MPPImageSegmenterOptions 2023-08-31 17:31:54 +05:30
Prianka Liz Kariat
bac3efdf6a Fixed typo in MPPImageSegmenter.h 2023-08-31 17:31:17 +05:30
Prianka Liz Kariat
5a1564e04c Updated image segmenter bazel target to add MPPImageSegmenter.mm 2023-08-31 14:22:17 +05:30
Prianka Liz Kariat
0863d8def5 Added iOS image segmenter implementation file 2023-08-31 14:04:34 +05:30
Prianka Liz Kariat
f74f7b8657 Fixed typo 2023-08-31 14:04:17 +05:30
Prianka Liz Kariat
47e7ec47a2 Changed delegate method to optional 2023-08-31 14:04:09 +05:30
Copybara-Service
30802b80cd Merge pull request #4735 from priankakariatyml:ios-doc-updates
PiperOrigin-RevId: 561469442
2023-08-30 15:39:20 -07:00
MediaPipe Team
612162d765 Check if the image contains valid face that can be aligned for stylization. If not, throw an exception for invalid input image. This is applied to both input stylized face and raw face.
PiperOrigin-RevId: 561439600
2023-08-30 13:54:11 -07:00
MediaPipe Team
c92570f844 Use ABSL_LOG in MediaPipe.
This is needed in Chrome builds to avoid collisions with its own LOG.

PiperOrigin-RevId: 561436864
2023-08-30 13:43:49 -07:00
Jiuqiang Tang
f60da2120d Internal changes
PiperOrigin-RevId: 561398473
2023-08-30 11:26:57 -07:00
MediaPipe Team
5434b840f6 Improving throttling logs by providing a node info corresponding to a throttling stream.
PiperOrigin-RevId: 561396272
2023-08-30 11:21:31 -07:00
MediaPipe Team
45b0271ded No public description
PiperOrigin-RevId: 561379537
2023-08-30 10:27:02 -07:00
Prianka Liz Kariat
3e90e8d464 Fixed directory creation issues in build_ios_framework.sh 2023-08-30 16:28:17 +05:30
Prianka Liz Kariat
763bc8c71c Fixed typos 2023-08-30 16:27:52 +05:30
Prianka Liz Kariat
298578e10e Added gesture recognizer and hand landmarker to iOS vision framework 2023-08-30 14:51:05 +05:30
MediaPipe Team
6c2638592e Internal update.
PiperOrigin-RevId: 561184322
2023-08-29 17:34:35 -07:00
MediaPipe Team
e18e749e3e Internal update
PiperOrigin-RevId: 561148365
2023-08-29 15:04:33 -07:00
MediaPipe Team
01fbbd9f67 No public description
PiperOrigin-RevId: 561067189
2023-08-29 10:18:06 -07:00
MediaPipe Team
f56b8a13a3 Add a custom op resolver for fused batch norm.
PiperOrigin-RevId: 560795170
2023-08-28 13:04:10 -07:00
MediaPipe Team
442940cd55 No public description
PiperOrigin-RevId: 560743684
2023-08-28 10:08:49 -07:00
MediaPipe Team
b22dcf9ce6 No public description
PiperOrigin-RevId: 560652313
2023-08-28 02:50:07 -07:00
MediaPipe Team
d6dce193fc Internal update
PiperOrigin-RevId: 560147650
2023-08-25 11:22:58 -07:00
Copybara-Service
5d2d8f9ab2 Merge pull request #4721 from priankakariatyml:ios-doc-updates
PiperOrigin-RevId: 560133185
2023-08-25 10:37:51 -07:00
Prianka Liz Kariat
3f0ec5969b Updated iOS docs to use swift names in place of objective c names 2023-08-25 18:06:50 +05:30
MediaPipe Team
6e6978cdbf New image test utilities and memory management fixes.
PiperOrigin-RevId: 559926378
2023-08-24 18:02:55 -07:00
MediaPipe Team
dd09c8d3f7 Update port includes with IWYU to fix clang warnings in code where corresponding ports are used.
PiperOrigin-RevId: 559920115
2023-08-24 17:33:34 -07:00
Zu Kim
c56f45bce5 Change the image label input from Classification to Detection.
PiperOrigin-RevId: 559828139
2023-08-24 12:08:25 -07:00
Richard Levasseur
f2e9a553d6 No public description
PiperOrigin-RevId: 559787614
2023-08-24 10:06:00 -07:00
Sebastian Schmidt
4fb52bb7ef Add 'types' to package.json
Fixes gttps://github.com/google/mediapipe/issues/4659

PiperOrigin-RevId: 559785635
2023-08-24 09:58:44 -07:00
MediaPipe Team
4b1b6ae7fb Move stream API rect_transformation to third_party.
PiperOrigin-RevId: 559652775
2023-08-23 23:11:47 -07:00
MediaPipe Team
b2446c6ca8 No public description
PiperOrigin-RevId: 559566037
2023-08-23 15:50:34 -07:00
Sebastian Schmidt
f3d069175c Add C++ converters for C Text Classifier API
PiperOrigin-RevId: 559519880
2023-08-23 13:08:40 -07:00
MediaPipe Team
f645c59746 Move stream API image_size to third_party.
PiperOrigin-RevId: 559475476
2023-08-23 10:45:18 -07:00
Nevena Kotlaja
8689f4f595 No public description
PiperOrigin-RevId: 559466191
2023-08-23 10:21:28 -07:00
MediaPipe Team
2ebdb01d43 ImageGenerator Java API
PiperOrigin-RevId: 559310074
2023-08-22 21:42:16 -07:00
MediaPipe Team
90781669cb No public description
PiperOrigin-RevId: 559275983
2023-08-22 18:04:11 -07:00
MediaPipe Team
3443fe4c8e No public description
PiperOrigin-RevId: 559211117
2023-08-22 13:43:27 -07:00
MediaPipe Team
8c4b971c14 Add an API in model_task_graph to create or use cached model resources.
PiperOrigin-RevId: 559174528
2023-08-22 11:34:54 -07:00
MediaPipe Team
bcb83302bf Add pose landmarks constants
PiperOrigin-RevId: 559153433
2023-08-22 10:32:10 -07:00
MediaPipe Team
7517b56476 No public description
PiperOrigin-RevId: 559133490
2023-08-22 09:26:33 -07:00
MediaPipe Team
edb0a64d0e Move stream API loopback to third_party.
PiperOrigin-RevId: 559037020
2023-08-22 01:44:24 -07:00
MediaPipe Team
9bc8b3bb4f Update the header information for EnsureMinimumDefaultExecutorStackSize.
PiperOrigin-RevId: 558981535
2023-08-21 21:26:32 -07:00
MediaPipe Team
7ba4edc372 Internal Change
PiperOrigin-RevId: 558937644
2023-08-21 16:55:44 -07:00
MediaPipe Team
7f8150776a Add an API to run inference with face stylizer TF model.
PiperOrigin-RevId: 558926645
2023-08-21 16:08:58 -07:00
MediaPipe Team
bbf168ddda Add a new from_image API to create face stylizer dataset from a single image. Also deprecate the from_folder API since we only support one-shot use case now.
PiperOrigin-RevId: 558912896
2023-08-21 15:14:36 -07:00
MediaPipe Team
ae9e945e0c Change SegmentationOptions.builder() to be public
PiperOrigin-RevId: 558864872
2023-08-21 12:18:17 -07:00
MediaPipe Team
737c103940 Add output size as parameters in Java ImageSegmenter
PiperOrigin-RevId: 558834692
2023-08-21 10:45:08 -07:00
MediaPipe Team
cd9d32e797 update pose rendering
PiperOrigin-RevId: 558424354
2023-08-19 10:40:26 -07:00
MediaPipe Team
a44c810921 Update PackMediaSequenceCalculator to support adding clip/media/id to the MediaSequence.
As the media ID is usually a video ID which is provided to the graph as a side packet, in this graph it expects it to be provided as as a input side packet instead of an input stream.

PiperOrigin-RevId: 558266967
2023-08-18 15:48:40 -07:00
MediaPipe Team
fda0d19337 Adds option to use tensor_ahwb in Android vendor processes
PiperOrigin-RevId: 558086646
2023-08-18 02:31:58 -07:00
Chris McClanahan
a04a3a1c81 internal fix
PiperOrigin-RevId: 557934477
2023-08-17 14:20:58 -07:00
Copybara-Service
6866d338e0 Merge pull request #4645 from priankakariatyml:ios-vision-task-runner-refactoring
PiperOrigin-RevId: 557894034
2023-08-17 12:02:07 -07:00
MediaPipe Team
b213256cbd Change supported_ops to a Tuple instead of List to match the API definition.
PiperOrigin-RevId: 557890361
2023-08-17 11:48:56 -07:00
Sebastian Schmidt
990bfd2e3e Don't access "document" in WebWorker
Fixes https://github.com/google/mediapipe/issues/4694

PiperOrigin-RevId: 557885230
2023-08-17 11:32:55 -07:00
Prianka Liz Kariat
22dc08be0e Removed convenience initializer from refactored MPPVisionTaskRunner 2023-08-17 14:15:14 +05:30
MediaPipe Team
ed0c8d8d8b Swap left and right hand labels.
PiperOrigin-RevId: 557625660
2023-08-16 15:51:19 -07:00
MediaPipe Team
13bb65db96 Internal Changes
PiperOrigin-RevId: 557563669
2023-08-16 12:16:16 -07:00
MediaPipe Team
9e45e2b6e9 Setting training for the encoder and decoder when converting to TFLite.
Also add selected TF ops to TFLite converter.

PiperOrigin-RevId: 557520277
2023-08-16 10:02:29 -07:00
MediaPipe Team
ee217ceb67 Fix MediaPipe build in Chromium.
When building Chromium with Clang on Windows, it needs the template specializations to be declared as well.

PiperOrigin-RevId: 557508703
2023-08-16 09:23:15 -07:00
Sebastian Schmidt
251ffc21c8 No public description
PiperOrigin-RevId: 557501469
2023-08-16 08:58:14 -07:00
MediaPipe Team
ff3f0433d3 Fix image_util shortcut import line
PiperOrigin-RevId: 557311617
2023-08-15 18:19:13 -07:00
MediaPipe Team
1c98270ef0 Import image_util for using it in mediapipe face stylizer open sourcing.
PiperOrigin-RevId: 557254489
2023-08-15 14:41:57 -07:00
MediaPipe Team
cda0ba04ed Dry-Run mode for static registration to make it easier to find all required static registrations
PiperOrigin-RevId: 557185347
2023-08-15 11:03:18 -07:00
MediaPipe Team
c1d7e6023a Expose tool calculators in headers to enable dynamic registration by superusers.
PiperOrigin-RevId: 557174440
2023-08-15 10:32:45 -07:00
MediaPipe Team
a392561b31 Internal change
PiperOrigin-RevId: 557015628
2023-08-14 22:16:20 -07:00
MediaPipe Team
0da296536b Expose stream handlers in headers to allow dynamic registration for superusers
PiperOrigin-RevId: 556988288
2023-08-14 20:01:50 -07:00
MediaPipe Team
b6f5414b3d Support more GPU formats in tensor converter calculator.
PiperOrigin-RevId: 556987807
2023-08-14 19:57:05 -07:00
MediaPipe Team
a183212a13 Header for callback_packet_calculator to allow dynamic registration for superusers
PiperOrigin-RevId: 556977122
2023-08-14 18:50:11 -07:00
MediaPipe Team
9c5bdd2eb9 Clarify deprecated GraphStatus usage in Close documentation
PiperOrigin-RevId: 556963967
2023-08-14 17:53:32 -07:00
MediaPipe Team
dd940707ca Provide a way to disable static registration using MEDIAPIPE_DISABLE_STATIC_REGISTRATION
PiperOrigin-RevId: 556963956
2023-08-14 17:48:25 -07:00
MediaPipe Team
6605fdb16f add end loop calculator for image size
PiperOrigin-RevId: 556955370
2023-08-14 17:09:02 -07:00
MediaPipe Team
a8bee6baf3 Updates the runners to support wasm-style binary assets files, and allows their URLs to be explicitly specified as part of the WasmFileset.
PiperOrigin-RevId: 556903356
2023-08-14 13:59:53 -07:00
MediaPipe Team
c8ad606e7c Refactor text_classifier preprocessor to move away from using classifier_data_lib
PiperOrigin-RevId: 556859900
2023-08-14 11:41:09 -07:00
MediaPipe Team
3ac3b03ed5 Migrate packet messages auto registration to rely on MEDIAPIPE_STATIC_REGISTRATOR_TEMPLATE
PiperOrigin-RevId: 556063007
2023-08-11 13:14:29 -07:00
Yuqi Li
c448d54aa7 add metadata writer into face stylizer.
PiperOrigin-RevId: 555596257
2023-08-10 12:09:27 -07:00
MediaPipe Team
91f15d8e4a Enable run inference with a TFLite model containing multiple subgraphs. It uses the subgraph 0 as the default primary subgraph for inference. It will also log a warning in the case that there are more than one subgraph in the model.
PiperOrigin-RevId: 555579131
2023-08-10 11:30:32 -07:00