Commit Graph

1728 Commits

Author SHA1 Message Date
MediaPipe Team
eac6348fd3 Open-sources a LanguageDetector C++ API.
PiperOrigin-RevId: 518758730
2023-03-22 21:54:35 -07:00
kinaryml
29a4041353 Fixed a typo in docstring 2023-03-22 21:51:45 -07:00
kinaryml
ca18b95510 Updated BUILD 2023-03-22 21:50:40 -07:00
kinaryml
8cba65c229 Updated BUILD 2023-03-22 21:50:07 -07:00
kinaryml
613bcf99f4 Removed model 2023-03-22 21:49:11 -07:00
kinaryml
c0320b556c Removed unit tests 2023-03-22 21:47:38 -07:00
kinaryml
da70497f35 Updated Face Stylizer implementation and tests 2023-03-22 21:15:04 -07:00
Kinar R
3afe4cafc4
Merge branch 'master' into face-stylizer-python 2023-03-23 09:27:52 +05:30
Sebastian Schmidt
1a7be8a4c1 Internal change
PiperOrigin-RevId: 518747623
2023-03-22 20:44:34 -07:00
MediaPipe Team
37111e8fa5 Internal change
PiperOrigin-RevId: 518657355
2023-03-22 13:29:29 -07:00
Sebastian Schmidt
eda8cb6b42 Typo fix
PiperOrigin-RevId: 518603982
2023-03-22 10:20:06 -07:00
MediaPipe Team
cb2ee87705 Internal change
PiperOrigin-RevId: 518591192
2023-03-22 09:34:23 -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
18b4caa7f3 Internal change
PiperOrigin-RevId: 518559368
2023-03-22 07:14:18 -07:00
Kinar R
3c39aca52b
Merge branch 'google:master' into audio-record-api-python 2023-03-22 11:46:28 +05:30
kinaryml
444cd00ee6 Moved audio_record.py to tasks/python/audio/core 2023-03-21 23:15:55 -07:00
Copybara-Service
5d2a719b54 Merge pull request #4027 from kinaryml:cosine-sim-python
PiperOrigin-RevId: 518431807
2023-03-21 17:59:48 -07:00
Sebastian Schmidt
788e8d8777 Fix crash when FaceLandmarker does not return a result
PiperOrigin-RevId: 518410060
2023-03-21 16:21:58 -07:00
Sebastian Schmidt
bbd21e9a6d Add the FaceStylizer Web API
PiperOrigin-RevId: 518409812
2023-03-21 16:17:28 -07:00
Jiuqiang Tang
b71e1d14d3 Add missing dependency library targets to mediapipe_task_aar.
PiperOrigin-RevId: 518384666
2023-03-21 14:38:11 -07:00
Sebastian Schmidt
8bbf2621a4 Typo fix
PiperOrigin-RevId: 518380030
2023-03-21 14:31:49 -07:00
Sebastian Schmidt
a5fc1d4baf Use Uint8ClampedArray for pixel output
PiperOrigin-RevId: 518362677
2023-03-21 13:22:10 -07:00
MediaPipe Team
7d26daf723 Make sure calling GraphTextureFrame::getTextureName()+::release() on a non-GL thread doesn't result in a crash.
PiperOrigin-RevId: 518359778
2023-03-21 13:12:03 -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
Jiuqiang Tang
384f77b5c3 Fix the proto src file names.
PiperOrigin-RevId: 518332541
2023-03-21 11:34:39 -07:00
MediaPipe Team
c2a3e99545 Internal change
PiperOrigin-RevId: 518330697
2023-03-21 11:29:04 -07:00
MediaPipe Team
2be66e8eb0 Add interactive segmenter java API
PiperOrigin-RevId: 518303391
2023-03-21 09:59:19 -07:00
Copybara-Service
6e0542c16a Merge pull request #4141 from priankakariatyml:ios-image-classifier-impl-files
PiperOrigin-RevId: 518138209
2023-03-20 19:05:37 -07:00
Jiuqiang Tang
5a924669b7 Temporarily disabling checking whether the executor is not set in a subgraph node. This is a workaround to allow the MediaPipe InferenceCalculator to have its own executor.
PiperOrigin-RevId: 518117759
2023-03-20 17:10:55 -07:00
Sebastian Schmidt
2651d30ebf Add ImageData output to GraphRunner
PiperOrigin-RevId: 517994561
2023-03-20 09:46:27 -07:00
Copybara-Service
54e4dfc853 Merge pull request #4177 from kinaryml:face-landmarker-python
PiperOrigin-RevId: 517979421
2023-03-20 08:47:47 -07:00
MediaPipe Team
47fa1a9578 Internal change
PiperOrigin-RevId: 517886450
2023-03-20 00:25:47 -07:00
MediaPipe Team
524acaaaa7 internal change
PiperOrigin-RevId: 517823184
2023-03-19 16:07:32 -07:00
Jiuqiang Tang
f06e4224b8 Allow ModelResourcesCalculator to use file_pointer_meta.
PiperOrigin-RevId: 517742722
2023-03-19 01:33:52 -07:00
MediaPipe Team
2e5ea174fe Internal change
PiperOrigin-RevId: 517597924
2023-03-18 00:29:59 -07:00
Jiuqiang Tang
6634d22161 Add LabelMapProto.java source code to MediaPipe AAR.
PiperOrigin-RevId: 517563190
2023-03-17 19:49:53 -07:00
Jiuqiang Tang
6785bcc47d Add java_package and java_outer_classname to label_map.proto.
PiperOrigin-RevId: 517563000
2023-03-17 19:45:45 -07:00
Jiuqiang Tang
065f1f38aa Fix the vision tasks aar build rule to solve the "cannot find symbol" error:
```
mediapipe/tasks/java/com/google/mediapipe/tasks/vision/imagesegmenter/ImageSegmenter.java:28: error: cannot find symbol
import com.google.mediapipe.tasks.TensorsToSegmentationCalculatorOptionsProto;
```

PiperOrigin-RevId: 517542284
2023-03-17 17:02:22 -07:00
Jiuqiang Tang
0805d61bfe Add the source code TensorsToSegmentationCalculatorOptionsProto.java into tasks core's maven package.
PiperOrigin-RevId: 517516701
2023-03-17 15:01:33 -07:00
MediaPipe Team
3dede1a9a5 Add label_map filtering into filter_detection drishti calculator.
PiperOrigin-RevId: 517515046
2023-03-17 14:53:48 -07:00
MediaPipe Team
1a456dcbf9 Internal change
PiperOrigin-RevId: 517466009
2023-03-17 11:40:26 -07:00
MediaPipe Team
24217e2ead Internal change
PiperOrigin-RevId: 517322105
2023-03-16 22:50:22 -07:00
kinaryml
1ba285d916 Updated a method name in face_landmarker_test.py 2023-03-16 15:10:39 -07:00
Sebastian Schmidt
75bc44d42a Add a comment to macos_opencv so it can be easily replaced with sed
PiperOrigin-RevId: 517225588
2023-03-16 14:19:14 -07:00
MediaPipe Team
560945ad39 Internal Changes
PiperOrigin-RevId: 517219631
2023-03-16 13:58:02 -07:00
kinaryml
94dba82284 Renamed a test method to use the plural form 2023-03-16 12:54:38 -07:00
kinaryml
b36b0bb3e8 Updated API and tests 2023-03-16 12:51:19 -07:00
kinaryml
2753c79fde Removed MatrixData dataclass and used NumPy to represent Matrix 2023-03-16 11:50:07 -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
3b66ac0623 Import the saved Keras models of BlazeFaceStylizer components into MediaPipe model maker.
PiperOrigin-RevId: 517044265
2023-03-16 00:44:06 -07:00