Commit Graph

2564 Commits

Author SHA1 Message Date
MediaPipe Team
7da2810b83 Move filtering logic of score to ConvertToDetection.
PiperOrigin-RevId: 578189518
2023-10-31 08:20:03 -07:00
Sebastian Schmidt
95692c64a9 Add GPU support 2023-10-30 16:05:12 -06:00
Sebastian Schmidt
ec032fb018 Use SRGBA for Mac on Python for image test
PiperOrigin-RevId: 577931014
2023-10-30 13:07:10 -07:00
Sebastian Schmidt
7256bd2638 No public description
PiperOrigin-RevId: 577873616
2023-10-30 09:46:16 -07:00
MediaPipe Team
2f4d7b4079 No public description
PiperOrigin-RevId: 577410310
2023-10-28 01:10:02 -07:00
MediaPipe Team
a96581e3b7 TensorsToDetectionsCalculator supports multi clasees for a bbox.
PiperOrigin-RevId: 577300797
2023-10-27 14:13:02 -07:00
Sebastian Schmidt
d73ef24406 Support 3-channel RGB images for Mac Python
PiperOrigin-RevId: 577240413
2023-10-27 10:34:08 -07:00
MediaPipe Team
eaf0807849 Fixes multiple typos in the calculator's internal files.
PiperOrigin-RevId: 577202836
2023-10-27 08:08:52 -07:00
MediaPipe Team
46cca0d486 Rolling back.
PiperOrigin-RevId: 577128565
2023-10-27 02:25:42 -07:00
Sebastian Schmidt
2cb0100fe6 Use mp.ImageFormat instead of just ImageFormat
Fixes https://github.com/google/mediapipe/issues/4911

PiperOrigin-RevId: 577003083
2023-10-26 15:32:28 -07:00
MediaPipe Team
5459705038 Adding two new immutable texture GpuBufferFormat types
PiperOrigin-RevId: 577002534
2023-10-26 15:27:43 -07:00
Youchuan Hu
e7121e4feb Use designated initializers for TensorsToSegmentationCalculator tests.
PiperOrigin-RevId: 576671943
2023-10-25 16:02:28 -07:00
Sebastian Schmidt
a277d853ea Don't drop status message in ConvertFromImageFrame
PiperOrigin-RevId: 576667666
2023-10-25 15:46:41 -07:00
MediaPipe Team
3017c02d3d No public description
PiperOrigin-RevId: 576663264
2023-10-25 15:30:54 -07:00
Copybara-Service
06dab1e526 Merge pull request #4818 from markmcd:ios-docgen
PiperOrigin-RevId: 576628799
2023-10-25 14:00:39 -07:00
MediaPipe Team
496a6ed809 No public description
PiperOrigin-RevId: 576314429
2023-10-24 16:08:19 -07:00
Sebastian Schmidt
c698414c71 Use cc_library for DrishtiMetalHelper
PiperOrigin-RevId: 576230898
2023-10-24 12:40:15 -07:00
Youchuan Hu
905a18c88c Add CPU tests for TensorsToSegmentationCalculator
PiperOrigin-RevId: 576208735
2023-10-24 11:35:58 -07:00
Sebastian Schmidt
5b0f1f9ac4 No public description
PiperOrigin-RevId: 576166645
2023-10-24 09:34:24 -07:00
MediaPipe Team
543b595971 Fix internal incensistency in parsing code
PiperOrigin-RevId: 576094494
2023-10-24 04:27:18 -07:00
Sebastian Schmidt
05564cbe9a No public description
PiperOrigin-RevId: 575930740
2023-10-23 14:36:03 -07:00
Sebastian Schmidt
aedafd63f9 Remove objc_library from Python build path for Mac GPU build
Addresses https://github.com/bazelbuild/bazel/issues/19912

PiperOrigin-RevId: 575896231
2023-10-23 12:36:14 -07:00
Copybara-Service
a39df33664 Merge pull request #4814 from kinaryml:face-stylizer-adding-unit-tests-to-api
PiperOrigin-RevId: 575895855
2023-10-23 12:31:33 -07:00
Sebastian Schmidt
b904ade0cf Allow Mac to use GPU Delegate
PiperOrigin-RevId: 575882254
2023-10-23 11:44:02 -07:00
Sebastian Schmidt
6aa27d9aeb Initialize GPU support for Python Task API
PiperOrigin-RevId: 575842513
2023-10-23 09:39:16 -07:00
Prianka Liz Kariat
d5a1bc03af Fixed deletion of iOS output MPImage buffer in MPImage Utils 2023-10-23 20:28:43 +05:30
Prianka Liz Kariat
7c45bc802f Added iOS Image Segmenter to CocoaPods build 2023-10-23 20:02:57 +05:30
Prianka Liz Kariat
305f076c7f Fixed extra condition check in iOS Image Segmenter Result Helper 2023-10-23 20:02:39 +05:30
Kinar
4b3cb5b758 Added files for the Image Embedder C API and tests 2023-10-23 00:30:51 -07:00
MediaPipe Team
0dee33ccba No public description
PiperOrigin-RevId: 575477678
2023-10-21 10:26:09 -07:00
Prianka Liz Kariat
3a43aff13c Added iOS language detector implementation 2023-10-21 10:42:48 +05:30
Prianka Liz Kariat
f185bc6635 Added language detector result helpers 2023-10-21 10:42:32 +05:30
Prianka Liz Kariat
c48a5668b8 Updated documentation 2023-10-21 03:57:55 +05:30
Prianka Liz Kariat
96ed3a7422 Added iOS pose landmarker header 2023-10-21 03:55:00 +05:30
Prianka Liz Kariat
3622ff9bff Added iOS pose landmarks connections 2023-10-21 03:53:54 +05:30
Prianka Liz Kariat
c4315c500d Added pose landmarker result helpers 2023-10-21 03:52:46 +05:30
MediaPipe Team
8fc3a0473f Add scaling support to surface view renderer.
PiperOrigin-RevId: 575134648
2023-10-20 01:08:17 -07:00
Sebastian Schmidt
305d7abec4 Add a field to GPUBuffer C struct so FFIGen can handle it
PiperOrigin-RevId: 575020084
2023-10-19 15:29:44 -07:00
Copybara-Service
1601073cf0 Merge pull request #4863 from priankakariatyml:ios-image-segmenter-populate-labels
PiperOrigin-RevId: 574977633
2023-10-19 13:07:53 -07:00
Copybara-Service
1c7ea02b0e Merge pull request #4864 from priankakariatyml:ios-image-segmenter-documentation-updates
PiperOrigin-RevId: 574966608
2023-10-19 12:32:23 -07:00
Sebastian Schmidt
5779f5e9da Allow GPU Origin Proto to be build by Maven
PiperOrigin-RevId: 574966597
2023-10-19 12:30:38 -07:00
Copybara-Service
02e0ce3f87 Merge pull request #4851 from priankakariatyml:ios-language-detector-containers
PiperOrigin-RevId: 574954531
2023-10-19 11:58:54 -07:00
Copybara-Service
ddf46a2a61 Merge pull request #4850 from priankakariatyml:ios-pose-landmarker-containers
PiperOrigin-RevId: 574954344
2023-10-19 11:54:25 -07:00
Fergus Henderson
f9fa7cfbeb No public description
PiperOrigin-RevId: 574913082
2023-10-19 10:10:26 -07:00
Prianka Liz Kariat
06d893a9f9 Revert "Updated deletion in FreeDataProviderReleaseCallback"
This reverts commit 69b7a21368.
2023-10-19 20:45:32 +05:30
Prianka Liz Kariat
69b7a21368 Updated deletion in FreeDataProviderReleaseCallback 2023-10-19 20:42:06 +05:30
MediaPipe Team
7dca7ad24e Internal change.
PiperOrigin-RevId: 574777627
2023-10-19 01:50:24 -07:00
MediaPipe Team
259fa86c62 Add implementation and tests for Image Classifier C API
PiperOrigin-RevId: 574679661
2023-10-18 18:57:19 -07:00
Sebastian Schmidt
364048daca Allow Python to be build on Mac with GPU support
PiperOrigin-RevId: 574625520
2023-10-18 15:45:17 -07:00
Sebastian Schmidt
4f29ffcc3e Add GPU Origin proto to Java Tasks Library
PiperOrigin-RevId: 574535005
2023-10-18 11:18:46 -07:00
MediaPipe Team
06cc6d1546 No public description
PiperOrigin-RevId: 574528013
2023-10-18 10:58:53 -07:00
MediaPipe Team
2bd6726c89 Plumb an optional default Executor and set of input side packets
through TaskApiFactory::Create so that consumers of that API
can provide these inputs to their underlying graph.

PiperOrigin-RevId: 574503266
2023-10-18 09:51:43 -07:00
MediaPipe Team
e27bbf15dc No public description
PiperOrigin-RevId: 574497996
2023-10-18 09:46:36 -07:00
MediaPipe Team
d006304f6a Migrate ParseTagAndName to use absl::string_view
PiperOrigin-RevId: 574492000
2023-10-18 09:44:39 -07:00
Youchuan Hu
de1b1b6b97 Initial test for TensorsToSegmentationCalculator
This test is a pass-through with no modification of the input tensor. CPU test.

PiperOrigin-RevId: 574210865
2023-10-17 11:22:03 -07:00
MediaPipe Team
dd215e00f5 No public description
PiperOrigin-RevId: 574045894
2023-10-17 00:11:39 -07:00
MediaPipe Team
2e11444f5c Introduce FixGraphBackEdges utils function.
PiperOrigin-RevId: 573925628
2023-10-16 14:13:18 -07:00
MediaPipe Team
a1e1b5d34c Internal change.
PiperOrigin-RevId: 573318330
2023-10-13 14:25:27 -07:00
MediaPipe Team
8993073f35 Internal change
PiperOrigin-RevId: 573254750
2023-10-13 10:25:00 -07:00
MediaPipe Team
1bd800697e GPU_ORIGIN configurable through base options proto.
PiperOrigin-RevId: 573251085
2023-10-13 10:10:52 -07:00
MediaPipe Team
8823046e4b Add check to avoid doing illegal memory access from an invalid iterator from std::prev()
PiperOrigin-RevId: 573248334
2023-10-13 10:02:09 -07:00
MediaPipe Team
652792ebaa Internal change
PiperOrigin-RevId: 573228351
2023-10-13 08:31:17 -07:00
MediaPipe Team
61dc7281e2 No public description
PiperOrigin-RevId: 573107636
2023-10-12 22:39:54 -07:00
MediaPipe Team
2a286cc790 Introduce AlignHandToPoseInWorldCalculator
PiperOrigin-RevId: 572959145
2023-10-12 11:14:03 -07:00
MediaPipe Team
ac2d5cedbd No public description
PiperOrigin-RevId: 572742286
2023-10-11 18:12:09 -07:00
Sebastian Schmidt
a97eaad10f No public description
PiperOrigin-RevId: 572722787
2023-10-11 16:41:08 -07:00
MediaPipe Team
dd29666296 Adding vector versions of input calls to TS GraphRunner API
PiperOrigin-RevId: 572711430
2023-10-11 15:55:08 -07:00
Sebastian Schmidt
4b8fd3b2d0 No public description
PiperOrigin-RevId: 572628807
2023-10-11 11:14:07 -07:00
Copybara-Service
84f6959f9d Merge pull request #4860 from kinaryml:c-language-detector-api
PiperOrigin-RevId: 572385111
2023-10-10 15:37:06 -07:00
MediaPipe Team
d6d92354ea Detection postprocessing support quantized tensor.
PiperOrigin-RevId: 572310272
2023-10-10 11:13:54 -07:00
Sebastian Schmidt
df13788883 No public description
PiperOrigin-RevId: 572309070
2023-10-10 11:08:47 -07:00
Sebastian Schmidt
0d5f35d351 No public description
PiperOrigin-RevId: 572292160
2023-10-10 10:23:35 -07:00
Sebastian Schmidt
dc63a5401c No public description
PiperOrigin-RevId: 572266397
2023-10-10 09:02:48 -07:00
Kinar R
91c5f84f9c Removed language_detection_result and moved the necessary containers to language_detector.h 2023-10-10 13:23:25 +05:30
MediaPipe Team
ef6e712a88 Internal change
PiperOrigin-RevId: 572125477
2023-10-09 21:28:52 -07:00
MediaPipe Team
f72542ae5d Internal change
PiperOrigin-RevId: 572122579
2023-10-09 21:11:24 -07:00
MediaPipe Team
ac954215cf Internal change
PiperOrigin-RevId: 572121726
2023-10-09 21:06:32 -07:00
MediaPipe Team
3adc068e97 Add OnCameraBoundListener and support for landscape orientation to CameraXPreviewHelper
PiperOrigin-RevId: 572054649
2023-10-09 15:21:46 -07:00
MediaPipe Team
3dd6480705 No public description
PiperOrigin-RevId: 572032324
2023-10-09 13:59:35 -07:00
Prianka Liz Kariat
3a97762569 Fixed typo in iOS image segmenter Swift delegate name 2023-10-09 17:48:57 +05:30
Prianka Liz Kariat
6c4b4469ae Updated iOS Image Segmenter documentation to use Swift names 2023-10-09 17:48:39 +05:30
Prianka Liz Kariat
fce7b19ad7 Added a test for getting labels from iOS image segmenter 2023-10-09 17:47:03 +05:30
Prianka Liz Kariat
dd823d16f8 Added property to get labels from iOS Image Segmenter 2023-10-09 17:46:34 +05:30
Chris McClanahan
b503d71be4 No public description
PiperOrigin-RevId: 571412955
2023-10-06 13:00:09 -07:00
Kinar
882ec323f0 Added files for the Language Detector C API and tests 2023-10-06 11:39:23 -07:00
Copybara-Service
830ee092b9 Merge pull request #4830 from priankakariatyml:ios-image-segmenter-basic-tests
PiperOrigin-RevId: 571386542
2023-10-06 11:18:47 -07:00
Sebastian Schmidt
90e6a97b22 Fix WasmFileset compilation issue in 3P build
PiperOrigin-RevId: 571345702
2023-10-06 08:36:53 -07:00
Matt Kreileder
7389119a2e No public description
PiperOrigin-RevId: 571296889
2023-10-06 04:15:09 -07:00
MediaPipe Team
44a4dad58e Internal change
PiperOrigin-RevId: 571232374
2023-10-05 22:49:06 -07:00
MediaPipe Team
b3f9587bc2 Add stream API merge utils.
PiperOrigin-RevId: 571124981
2023-10-05 14:09:12 -07:00
Sebastian Schmidt
a1e542fc16 No public description
PiperOrigin-RevId: 571109389
2023-10-05 13:15:31 -07:00
Copybara-Service
24da737272 Merge pull request #4840 from priankakariatyml:ios-image-utils-updates
PiperOrigin-RevId: 571087863
2023-10-05 11:53:31 -07:00
Copybara-Service
d686b42b85 Merge pull request #4852 from kinaryml:c-text-embedder-api
PiperOrigin-RevId: 571065228
2023-10-05 10:43:30 -07:00
Kinar
ebfd7284c9 Fixed some issues with documentation 2023-10-05 04:25:18 -07:00
Kinar
92e13d43e4 Resolved some issues 2023-10-05 03:54:54 -07:00
MediaPipe Team
edc4db287c No public description
PiperOrigin-RevId: 570904787
2023-10-04 22:18:50 -07:00
MediaPipe Team
7ab3d70aa4 Add stream API presence utils.
PiperOrigin-RevId: 570901832
2023-10-04 21:59:05 -07:00
Nevena Kotlaja
2dd20822be No public description
PiperOrigin-RevId: 570789405
2023-10-04 13:33:51 -07:00
Sebastian Schmidt
1d8bd9c3ee No public description
PiperOrigin-RevId: 570765754
2023-10-04 12:14:31 -07:00
Daniel Cheng
d2baba6dbb Internal change
PiperOrigin-RevId: 570745425
2023-10-04 11:09:36 -07:00
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