Commit Graph
100 Commits
Author SHA1 Message Date
MediaPipe TeamandCopybara-Service 9f8b5e5c11 Add allow_list/deny_list to gesture recognizer options.
PiperOrigin-RevId: 485141209
2022-10-31 13:57:06 -07:00
MediaPipe TeamandCopybara-Service 459214e6a3 Rename index_by_label to label_names.
PiperOrigin-RevId: 484956259
2022-10-30 22:26:17 -07:00
MediaPipe TeamandCopybara-Service be13a76928 Integrate canned and custom gesture classifier.
PiperOrigin-RevId: 484914164
2022-10-30 15:36:09 -07:00
MediaPipe TeamandCopybara-Service de5fe27e05 Modified internal dependencies.
PiperOrigin-RevId: 484407262
2022-10-27 19:08:19 -07:00
MediaPipe TeamandCopybara-Service abd1ff66c8 Fix https://github.com/google/mediapipe/issues/3784
PiperOrigin-RevId: 484365654
2022-10-27 15:32:44 -07:00
MediaPipe TeamandCopybara-Service fc1d75cc99 Add CombinedPredictionCalculator.
PiperOrigin-RevId: 484301880
2022-10-27 11:16:12 -07:00
MediaPipe TeamandCopybara-Service ee84e447b2 Internal change
PiperOrigin-RevId: 484299808
2022-10-27 11:08:31 -07:00
MediaPipe TeamandCopybara-Service 254f786624 Add an option to set image preprocessing backend as gpu.
PiperOrigin-RevId: 483888202
2022-10-26 00:46:19 -07:00
MediaPipe TeamandCopybara-Service a28c9d2c26 Set steps_per_epoch to None when calling model.fit() method for image classifier.
PiperOrigin-RevId: 483764377
2022-10-25 13:44:03 -07:00
MediaPipe TeamandCopybara-Service 36bd9abb8f Internal change
PiperOrigin-RevId: 483751427
2022-10-25 12:53:39 -07:00
MediaPipe TeamandCopybara-Service 21abfc9125 Update gpu origin.
PiperOrigin-RevId: 483742652
2022-10-25 12:14:28 -07:00
MediaPipe TeamandCopybara-Service d240c009e2 Remove unnecessary location_data_proto dependency on rect_proto.
PiperOrigin-RevId: 483679555
2022-10-25 08:24:07 -07:00
MediaPipe TeamandCopybara-Service 6b0a7fb281 Reverting back to special handling for Egl Thread Exit on Android
PiperOrigin-RevId: 483505151
2022-10-24 15:45:35 -07:00
MediaPipe TeamandCopybara-Service 94cd134809 Add support for image rotation in Java vision tasks.
PiperOrigin-RevId: 483493729
2022-10-24 15:01:23 -07:00
MediaPipe TeamandCopybara-Service 3d88b1797a Switch CHECK to a status in resource handling code. Expand error message.
PiperOrigin-RevId: 483438131
2022-10-24 11:27:15 -07:00
MediaPipe TeamandCopybara-Service 2f2baeff68 Add support for rotation in ImageEmbedder & ImageSegmenter C++ APIs
PiperOrigin-RevId: 483416498
2022-10-24 10:14:05 -07:00
MediaPipe TeamandCopybara-Service 0fd69e8d83 Open-source some tokenizer unit tests.
PiperOrigin-RevId: 483399326
2022-10-24 09:12:52 -07:00
MediaPipe TeamandCopybara-Service af051dcb62 internal change
PiperOrigin-RevId: 483308781
2022-10-24 01:39:23 -07:00
MediaPipe TeamandCopybara-Service ec2a34d2a4 Replace pytype_struct_contrib_test by py_strict_test. Also remove unnecessary BUILD attributes.
PiperOrigin-RevId: 483237371
2022-10-23 16:45:02 -07:00
MediaPipe TeamandCopybara-Service ab0193bbb7 Internal change
PiperOrigin-RevId: 483078695
2022-10-22 15:55:46 -07:00
MediaPipe TeamandCopybara-Service d8006a2f87 Use model bundle for gesture recognizer.
PiperOrigin-RevId: 482960305
2022-10-21 21:54:34 -07:00
MediaPipe TeamandCopybara-Service 404323f631 Add Mediapipe Tasks Gesture Recognizer benchmarks
PiperOrigin-RevId: 482935780
2022-10-21 18:33:49 -07:00
MediaPipe TeamandCopybara-Service 7196db275e Internal change
PiperOrigin-RevId: 482925717
2022-10-21 17:28:49 -07:00
MediaPipe TeamandCopybara-Service ea1d85d811 Update model_task_graph to support multiple local model resources.
PiperOrigin-RevId: 482917453
2022-10-21 16:42:58 -07:00
MediaPipe TeamandCopybara-Service 4a6c23a76a Internal change
PiperOrigin-RevId: 482906478
2022-10-21 15:48:54 -07:00
MediaPipe TeamandCopybara-Service d0437b7f91 Add tensor_index and tensor_name fields to ClassificationList
PiperOrigin-RevId: 482901854
2022-10-21 15:27:35 -07:00
MediaPipe TeamandCopybara-Service 36d69971a7 Internal change
PiperOrigin-RevId: 482875698
2022-10-21 13:36:41 -07:00
MediaPipe TeamandCopybara-Service e453c3b206 Migrates image_preprocessing from core to vision.
PiperOrigin-RevId: 482856336
2022-10-21 12:16:54 -07:00
MediaPipe TeamandCopybara-Service 55ba23ce9a Cleans up unused function from image_classifier's Dataset.
PiperOrigin-RevId: 482703775
2022-10-20 23:59:20 -07:00
MediaPipe TeamandCopybara-Service 348c4e6652 Add a test to test saving and loading the gesture recognizer model.
Also update the loss function init method to resolve a bug when loading model.

PiperOrigin-RevId: 482702020
2022-10-20 23:45:26 -07:00
MediaPipe TeamandCopybara-Service 086fc442fd Internal change
PiperOrigin-RevId: 482697999
2022-10-20 23:15:17 -07:00
MediaPipe TeamandCopybara-Service 9e2a9bb4be Internal change
PiperOrigin-RevId: 482565462
2022-10-20 12:33:30 -07:00
MediaPipe TeamandCopybara-Service 4b5df1cb96 Add support for rotations in GestureRecognizer C++ API.
PiperOrigin-RevId: 482533599
2022-10-20 10:42:42 -07:00
MediaPipe TeamandCopybara-Service e71638cf67 Add an export_tflite API to gesture recognizer model maker library.
PiperOrigin-RevId: 482527017
2022-10-20 10:21:34 -07:00
MediaPipe TeamandCopybara-Service 467cd34feb Internal change
PiperOrigin-RevId: 482401089
2022-10-19 23:49:51 -07:00
MediaPipe TeamandCopybara-Service 41d6f6d005 Adds a Java API for TextClassifier.
PiperOrigin-RevId: 482394706
2022-10-19 23:05:34 -07:00
MediaPipe TeamandCopybara-Service 3d588bae8b Internal change
PiperOrigin-RevId: 482259130
2022-10-19 11:34:32 -07:00
MediaPipe TeamandCopybara-Service c260074abb Rename "Bound" struct to "Rect" and remove unused "Landmark" struct.
PiperOrigin-RevId: 482255889
2022-10-19 11:22:56 -07:00
MediaPipe TeamandCopybara-Service 8426428de3 Internal cleanup for text-domain unit tests.
PiperOrigin-RevId: 482241566
2022-10-19 10:31:21 -07:00
MediaPipe TeamandCopybara-Service a18f91e04f Open-sources UniversalSentenceEncoderPreprocessorCalculator.
PiperOrigin-RevId: 482222697
2022-10-19 09:20:38 -07:00
MediaPipe TeamandCopybara-Service 70df9e2419 Open-source the TextClassifier C++ API.
PiperOrigin-RevId: 482218721
2022-10-19 09:03:29 -07:00
MediaPipe TeamandCopybara-Service 7a6ae97a0e Internal change
PiperOrigin-RevId: 482135978
2022-10-19 01:23:58 -07:00
MediaPipe TeamandCopybara-Service cfd5a20618 Open-sources the TextPreprocessingSubgraph.
PiperOrigin-RevId: 482048438
2022-10-18 16:14:33 -07:00
MediaPipe TeamandCopybara-Service e86cd39521 Use unused pixel format attribute variable as intended
Based on the comments and the context, we should be trying to use the specified attributes in orders to initialize the pixel_format_ variable.

PiperOrigin-RevId: 482011065
2022-10-18 13:51:24 -07:00
MediaPipe TeamandCopybara-Service 43345160c5 Add ImageFrame and GlTexture view providers to Ahwb GpuBuffer storage
- ImageFrame views are backed by CPU locks of the AHWB.
- GlTextureViews are managed through a GlTextureBuffer connected to the AHWB allocation.

This improves the latency of heterogeneous access sequences, but makes `ImageFrame > ImageFrame` sequences slower due to CPU locking.

PiperOrigin-RevId: 481982546
2022-10-18 11:59:29 -07:00
MediaPipe TeamandCopybara-Service f2821d840d Improve image classifier model maker documentation and replace the legacy code.
PiperOrigin-RevId: 481979922
2022-10-18 11:47:37 -07:00
MediaPipe TeamandCopybara-Service 51879ae81a Remove unnecessary architectures from image classifier ModelSpec
PiperOrigin-RevId: 481974529
2022-10-18 11:29:11 -07:00
MediaPipe TeamandCopybara-Service 47de64fc10 Open-sources TextToTensorCalculator.
PiperOrigin-RevId: 481927522
2022-10-18 08:28:53 -07:00
MediaPipe TeamandCopybara-Service ba93bab286 Fix ObjectDetector C++ flow limiter and improve documentation.
PiperOrigin-RevId: 481774191
2022-10-17 16:57:38 -07:00
MediaPipe TeamandCopybara-Service 58e5cc3c88 Changed the image to tensor converter interface such that the "Convert"
function assumes the Tensor is preallocated before calling the function.

PiperOrigin-RevId: 481752678
2022-10-17 15:20:25 -07:00
MediaPipe TeamandCopybara-Service cd32543786 Open-sources the bert_preprocessor_calculator_test.
PiperOrigin-RevId: 481724320
2022-10-17 13:30:11 -07:00
MediaPipe TeamandCopybara-Service 5e543c506f Fix unused variable warnings
Remove some unused variables and add unused attribute to other variables

PiperOrigin-RevId: 481706551
2022-10-17 12:14:55 -07:00
MediaPipe TeamandCopybara-Service f6c2f86086 Fix -Wunused-variable warnings
Remove unused variables. Add __unused attribute to variable used in assert clause. Move variable to inside header guard when only used in header guard.

PiperOrigin-RevId: 481699164
2022-10-17 11:48:17 -07:00
MediaPipe TeamandCopybara-Service f7da95a130 Fix a typo in the description string
PiperOrigin-RevId: 481421713
2022-10-15 22:40:34 -07:00
MediaPipe TeamandCopybara-Service 17202af6f7 Adds a preprocessor for Universal Sentence Encoder models.
PiperOrigin-RevId: 481293992
2022-10-14 21:38:28 -07:00
MediaPipe TeamandCopybara-Service 5f3d5728e8 Open-source the regex_preprocessing_calculator
PiperOrigin-RevId: 481256045
2022-10-14 16:18:20 -07:00
MediaPipe TeamandCopybara-Service ca28a19822 Open-source bert_preprocessor_calculator
PiperOrigin-RevId: 481246966
2022-10-14 15:31:31 -07:00
MediaPipe TeamandCopybara-Service 42543f7ad6 Internal change
PiperOrigin-RevId: 481227358
2022-10-14 14:01:11 -07:00
MediaPipe TeamandCopybara-Service e283c10970 Internal change
PiperOrigin-RevId: 481186706
2022-10-14 11:04:43 -07:00
MediaPipe TeamandCopybara-Service 0428550d75 Open source model_maker/python/core/tasks and model_maker/python/vision/image_classifier
PiperOrigin-RevId: 481182271
2022-10-14 10:47:34 -07:00
MediaPipe TeamandCopybara-Service 6f3e8381ed Add support for rotation in ObjectDetector C++ API
PiperOrigin-RevId: 481167472
2022-10-14 09:47:54 -07:00
MediaPipe TeamandCopybara-Service 9353ed6cce Java gesture recognizer Tasks API and unit test.
PiperOrigin-RevId: 480978244
2022-10-13 14:06:23 -07:00
MediaPipe TeamandCopybara-Service 12c323ffde Exports gesture recognizer related proto as Java package.
PiperOrigin-RevId: 480735444
2022-10-12 15:41:31 -07:00
MediaPipe TeamandCopybara-Service 179824a21d Use string_view when adding nodes/generators #cleanup
PiperOrigin-RevId: 480721234
2022-10-12 14:42:19 -07:00
MediaPipe TeamandCopybara-Service 02746d0700 Remove unused includes.
PiperOrigin-RevId: 480720274
2022-10-12 14:38:04 -07:00
MediaPipe TeamandCopybara-Service a9fea36cb3 Put Destination::base_ into private section. (Cleanup.)
PiperOrigin-RevId: 480678168
2022-10-12 11:43:03 -07:00
MediaPipe TeamandCopybara-Service ae4b2ae577 Add support for input image rotation in ImageClassifier.
PiperOrigin-RevId: 480676070
2022-10-12 11:35:20 -07:00
MediaPipe TeamandCopybara-Service 51a7606083 Add Java ImageClassifier API.
PiperOrigin-RevId: 480656683
2022-10-12 10:22:16 -07:00
MediaPipe TeamandCopybara-Service 77de8b0bb0 Split RotationMode proto target for reuse.
PiperOrigin-RevId: 480548644
2022-10-12 00:33:01 -07:00
MediaPipe TeamandCopybara-Service 64deb791dc Fix empty packet bug with no hands detected.
PiperOrigin-RevId: 480469392
2022-10-11 15:38:43 -07:00
MediaPipe TeamandCopybara-Service 1b611c66bb Improve quantization support in model_maker/image_classifier
PiperOrigin-RevId: 480455944
2022-10-11 14:40:02 -07:00
MediaPipe TeamandCopybara-Service f4fd1063a7 Add helper methods to load saved model from external files in model maker.
PiperOrigin-RevId: 480444918
2022-10-11 13:58:05 -07:00
MediaPipe TeamandCopybara-Service 12f72f067d updated documentation
PiperOrigin-RevId: 480193380
2022-10-10 15:37:57 -07:00
MediaPipe TeamandCopybara-Service 6fa455f40e Dataclasses for text classifier
PiperOrigin-RevId: 480178697
2022-10-10 14:33:31 -07:00
MediaPipe TeamandCopybara-Service 62d2ae601e Internal change
PiperOrigin-RevId: 480034669
2022-10-10 02:54:18 -07:00
MediaPipe TeamandCopybara-Service 1ab332835a Add a string-to-bool test model to TextClassifier.
PiperOrigin-RevId: 479803799
2022-10-08 09:44:08 -07:00
MediaPipe TeamandCopybara-Service 08ae99688c Java result class for gesture recognizer Tasks API.
PiperOrigin-RevId: 479731746
2022-10-07 22:02:07 -07:00
MediaPipe TeamandCopybara-Service 635dc0a24e Internal change
PiperOrigin-RevId: 479724318
2022-10-07 20:44:07 -07:00
MediaPipe TeamandCopybara-Service b616bc4427 Migrate landmarks deduplication to mediapipe tasks.
PiperOrigin-RevId: 479681836
2022-10-07 15:34:30 -07:00
MediaPipe TeamandCopybara-Service d90daa859f Internal change
PiperOrigin-RevId: 479544054
2022-10-07 04:09:01 -07:00
MediaPipe TeamandCopybara-Service db524adf0d Internal change
PiperOrigin-RevId: 479450607
2022-10-06 17:22:01 -07:00
MediaPipe TeamandCopybara-Service 65d001c6a0 Change gesture classification output type to ClassificationList.
PiperOrigin-RevId: 479441969
2022-10-06 16:38:07 -07:00
MediaPipe TeamandCopybara-Service 71a4680a16 Update Destination with Cast to make it aligned with Source.
PiperOrigin-RevId: 479433889
2022-10-06 15:58:48 -07:00
MediaPipe TeamandCopybara-Service d0707227e4 Remove no-op/unnecessary Multi(Source|Destination)Impl.
PiperOrigin-RevId: 479426473
2022-10-06 15:27:31 -07:00
MediaPipe TeamandCopybara-Service 1b0ab6f9b8 Internal change.
PiperOrigin-RevId: 479410627
2022-10-06 14:18:27 -07:00
MediaPipe TeamandCopybara-Service b72219f1e5 Internal change
PiperOrigin-RevId: 479235176
2022-10-05 23:56:30 -07:00
MediaPipe TeamandCopybara-Service d3b66ba253 Update Gesture Recognizer Graph Options protos.
PiperOrigin-RevId: 479141569
2022-10-05 14:21:46 -07:00
MediaPipe TeamandCopybara-Service 668f711b71 Internal change
PiperOrigin-RevId: 479121567
2022-10-05 13:05:05 -07:00
MediaPipe TeamandCopybara-Service ab67293869 Internal change
PiperOrigin-RevId: 478900121
2022-10-04 15:41:07 -07:00
MediaPipe TeamandCopybara-Service fb3b0e788e Open sourcing model_maker/core/util and model_maker/core/data
PiperOrigin-RevId: 478835650
2022-10-04 11:10:53 -07:00
MediaPipe TeamandCopybara-Service 38baaa00b1 Fix GL Tensor (backed by AHardwaBuffer) GL to CPU synchronization.
glFinish() must be called on a valid gl context

PiperOrigin-RevId: 478816905
2022-10-04 10:02:51 -07:00
MediaPipe TeamandCopybara-Service 25e424baaf Rename hand landmarker related graphs.
PiperOrigin-RevId: 478706652
2022-10-04 00:24:14 -07:00
MediaPipe TeamandCopybara-Service 2cb9ebb5e3 Rename HandGestureRecognizer to GestureRecognizer and update namespace for Tasks C++ conventions.
PiperOrigin-RevId: 478700907
2022-10-03 23:44:32 -07:00
MediaPipe TeamandCopybara-Service cfd0f3e79f Add HandLandmarkerGraph which connect HandDetectorGraph and HandLandmarkerSubgraph with landmarks tracking.
PiperOrigin-RevId: 478596004
2022-10-03 13:53:39 -07:00
MediaPipe TeamandCopybara-Service 65c7fb9004 Internal change
PiperOrigin-RevId: 478470582
2022-10-03 04:49:52 -07:00
MediaPipe TeamandCopybara-Service 03c8ac3641 Refactor ClassificationResult and ClassificationPostprocessing.
PiperOrigin-RevId: 478444264
2022-10-03 02:00:06 -07:00
MediaPipe TeamandCopybara-Service a3dc91fafe Internal change
PiperOrigin-RevId: 478093259
2022-09-30 15:37:11 -07:00
MediaPipe TeamandSebastian Schmidt 46a5117c6d Add gate utility functions.
PiperOrigin-RevId: 478026407
2022-09-30 20:50:18 +00:00
MediaPipe TeamandSebastian Schmidt 3a3a470a0c Move hand_association_calculator to open source MP
PiperOrigin-RevId: 477901001
2022-09-30 15:43:38 +00:00
MediaPipe TeamandSebastian Schmidt 382158298b Update default Tflite model OpResolver in BaseOptions.
PiperOrigin-RevId: 477873299
2022-09-30 15:42:26 +00:00