Commit Graph
100 Commits
Author SHA1 Message Date
MediaPipe TeamandCopybara-Service 8837b49026 get_vector_item stream utility function.
PiperOrigin-RevId: 568998504
2023-09-27 16:55:43 -07:00
MediaPipe TeamandCopybara-Service 2ecccaf076 concatenate stream utility function.
PiperOrigin-RevId: 568997695
2023-09-27 16:50:48 -07:00
MediaPipe TeamandCopybara-Service 983fda5d4e No public description
PiperOrigin-RevId: 568953918
2023-09-27 14:04:33 -07:00
MediaPipe TeamandCopybara-Service 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 TeamandCopybara-Service 698b154ff4 Only recreate immutable texture when necessary for Android TensorsToSegmentationCalculator.
PiperOrigin-RevId: 568937611
2023-09-27 13:09:29 -07:00
MediaPipe TeamandCopybara-Service 787371cfba No public description
PiperOrigin-RevId: 568927297
2023-09-27 12:27:57 -07:00
MediaPipe TeamandCopybara-Service 199b42278b Fixes multiple typos in the tasks internal files.
PiperOrigin-RevId: 568585517
2023-09-26 10:45:07 -07:00
MediaPipe TeamandCopybara-Service 573fdad173 Add export_model_with_tokenizer to Text Classifier API.
PiperOrigin-RevId: 567744604
2023-09-22 16:32:38 -07:00
MediaPipe TeamandCopybara-Service 34cedb980b No public description
PiperOrigin-RevId: 567562548
2023-09-22 02:24:25 -07:00
MediaPipe TeamandCopybara-Service 743118a04a Fixes multiple typos in the tasks internal files.
PiperOrigin-RevId: 567506050
2023-09-21 21:24:45 -07:00
MediaPipe TeamandCopybara-Service 859d90b68b No public description
PiperOrigin-RevId: 567439132
2023-09-21 15:40:19 -07:00
MediaPipe TeamandCopybara-Service abf0ee892a Internal Changes
PiperOrigin-RevId: 567374962
2023-09-21 11:55:02 -07:00
MediaPipe TeamandCopybara-Service 82d83f2dd8 Update glog to latest commit
PiperOrigin-RevId: 567337708
2023-09-21 10:10:04 -07:00
MediaPipe TeamandCopybara-Service 223641a73c Fix depth condition bug when only depth condition is configured.
PiperOrigin-RevId: 567080598
2023-09-20 14:29:18 -07:00
MediaPipe TeamandCopybara-Service 41a012721f Fix bug missing SHOW_RESULT in image generator
PiperOrigin-RevId: 566810243
2023-09-19 18:37:35 -07:00
MediaPipe TeamandCopybara-Service 867d5dc5a7 No public description
PiperOrigin-RevId: 566794388
2023-09-19 17:27:55 -07:00
MediaPipe TeamandCopybara-Service bbf40cba87 split stream utility function.
PiperOrigin-RevId: 566722901
2023-09-19 13:21:39 -07:00
MediaPipe TeamandCopybara-Service 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 TeamandCopybara-Service 94cda40a83 No public description
PiperOrigin-RevId: 566435327
2023-09-18 15:50:10 -07:00
MediaPipe TeamandCopybara-Service 36f78f6e4a threshold stream utility function.
PiperOrigin-RevId: 566417914
2023-09-18 14:44:28 -07:00
MediaPipe TeamandCopybara-Service 58a7790081 detections_to_rects stream utility function.
PiperOrigin-RevId: 566358715
2023-09-18 11:17:27 -07:00
MediaPipe TeamandCopybara-Service f4477f1739 A minor typo fix in model maker image classifier hyperparameters python docstring.
PiperOrigin-RevId: 566355937
2023-09-18 11:07:58 -07:00
MediaPipe TeamandCopybara-Service 81964608ba Fixes typo in MediaPipe namespace
PiperOrigin-RevId: 565478366
2023-09-14 14:32:35 -07:00
MediaPipe TeamandCopybara-Service f2b11bf250 No public description
PiperOrigin-RevId: 565446429
2023-09-14 12:41:12 -07:00
MediaPipe TeamandCopybara-Service 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
MediaPipe TeamandCopybara-Service 7333329470 No public description
PiperOrigin-RevId: 565215664
2023-09-13 18:11:03 -07:00
MediaPipe TeamandCopybara-Service 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 TeamandCopybara-Service 6dc1239aa9 No public description
PiperOrigin-RevId: 565167086
2023-09-13 14:48:48 -07:00
MediaPipe TeamandCopybara-Service d6ee884200 No public description
PiperOrigin-RevId: 565087299
2023-09-13 10:23:00 -07:00
MediaPipe TeamandCopybara-Service 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 TeamandCopybara-Service 90e18eab91 Internal change.
PiperOrigin-RevId: 565062314
2023-09-13 08:49:16 -07:00
MediaPipe TeamandCopybara-Service 38f421acf0 This will fix multiple typos in the tasks internal files.
PiperOrigin-RevId: 565055843
2023-09-13 08:22:19 -07:00
MediaPipe TeamandCopybara-Service df211d211e Internal update.
PiperOrigin-RevId: 564883563
2023-09-12 17:40:28 -07:00
MediaPipe TeamandCopybara-Service 1d8dda3337 Remove uncoditional texture params reset to make float textures handled correctly.
PiperOrigin-RevId: 564869245
2023-09-12 16:40:13 -07:00
MediaPipe TeamandCopybara-Service 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 TeamandCopybara-Service dbcdb44f7c Move loading tasks-vision-jni to individual vision task class
PiperOrigin-RevId: 564840343
2023-09-12 14:52:58 -07:00
MediaPipe TeamandCopybara-Service 4ba1dadf92 Add option for nearest neighbor interpolation.
PiperOrigin-RevId: 564786213
2023-09-12 11:41:58 -07:00
MediaPipe TeamandCopybara-Service 5daed78844 No public description
PiperOrigin-RevId: 564775970
2023-09-12 11:10:11 -07:00
MediaPipe TeamandCopybara-Service dd692c2395 Internal update
PiperOrigin-RevId: 564740487
2023-09-12 09:17:13 -07:00
MediaPipe TeamandCopybara-Service 26a67f4424 No public description
PiperOrigin-RevId: 564651554
2023-09-12 02:15:53 -07:00
MediaPipe TeamandCopybara-Service 02bd0d95e7 Splitting GraphRunner into public API declared interfaces and private TS impls
PiperOrigin-RevId: 564551973
2023-09-11 17:48:21 -07:00
MediaPipe TeamandCopybara-Service 7a04d60134 Set the default running model to Image for face stylizer.
PiperOrigin-RevId: 564511316
2023-09-11 15:03:07 -07:00
MediaPipe TeamandCopybara-Service 7f245bc84b Internal Change
PiperOrigin-RevId: 564316003
2023-09-11 02:39:40 -07:00
MediaPipe TeamandCopybara-Service b2494fe3c1 This will fix multiple typos in the tasks internal files.
PiperOrigin-RevId: 564264998
2023-09-10 21:56:57 -07:00
MediaPipe TeamandCopybara-Service 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
MediaPipe TeamandCopybara-Service 886a118232 landmarks_to_detection stream utility function.
PiperOrigin-RevId: 563633314
2023-09-07 21:40:45 -07:00
MediaPipe TeamandCopybara-Service 7549677408 Internal update
PiperOrigin-RevId: 563553758
2023-09-07 14:58:39 -07:00
MediaPipe TeamandCopybara-Service 80b762a281 No public description
PiperOrigin-RevId: 563543098
2023-09-07 14:19:08 -07:00
MediaPipe TeamandCopybara-Service 5f4a6e313e Format improvement.
PiperOrigin-RevId: 563321343
2023-09-06 23:02:05 -07:00
MediaPipe TeamandCopybara-Service 3ce457006f Remove video and streaming mode for face stylizer.
PiperOrigin-RevId: 563312344
2023-09-06 22:20:43 -07:00
MediaPipe TeamandCopybara-Service a9da6d325c Move stream API landmarks_projection to third_party.
PiperOrigin-RevId: 563246209
2023-09-06 16:21:09 -07:00
MediaPipe TeamandCopybara-Service 7252f6f2e7 Remove video and stream model in face stylizer.
PiperOrigin-RevId: 563233996
2023-09-06 15:33:58 -07:00
MediaPipe TeamandCopybara-Service b40b3973fb Add notes/warnings for calculators which use dedicated GL contexts.
PiperOrigin-RevId: 563167765
2023-09-06 11:40:21 -07:00
MediaPipe TeamandCopybara-Service e58ec2d039 No public description
PiperOrigin-RevId: 563163901
2023-09-06 11:30:53 -07:00
MediaPipe TeamandCopybara-Service 967007f250 No public description
PiperOrigin-RevId: 563145860
2023-09-06 10:35:52 -07:00
MediaPipe TeamandCopybara-Service 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 TeamandCopybara-Service bf32d1acb2 No public description
PiperOrigin-RevId: 562915674
2023-09-05 15:52:21 -07:00
MediaPipe TeamandCopybara-Service 4e52e96973 No public description
PiperOrigin-RevId: 562865700
2023-09-05 13:03:27 -07:00
MediaPipe TeamandCopybara-Service be0cde8c2e No public description
PiperOrigin-RevId: 562724334
2023-09-05 03:39:37 -07:00
MediaPipe TeamandCopybara-Service 223544ca4b No public description
PiperOrigin-RevId: 562711473
2023-09-05 02:35:24 -07:00
MediaPipe TeamandCopybara-Service 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 TeamandCopybara-Service 2b5e281c27 internal update
PiperOrigin-RevId: 562090520
2023-09-01 17:52:50 -07:00
MediaPipe TeamandCopybara-Service d6119957a4 No public description
PiperOrigin-RevId: 562075110
2023-09-01 16:31:33 -07:00
MediaPipe TeamandCopybara-Service ab70d92752 No public description
PiperOrigin-RevId: 562071599
2023-09-01 16:14:06 -07:00
MediaPipe TeamandCopybara-Service 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
MediaPipe TeamandCopybara-Service 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 TeamandCopybara-Service ceb8cd3c78 internal update.
PiperOrigin-RevId: 561995330
2023-09-01 10:57:40 -07:00
MediaPipe TeamandCopybara-Service 823493ee82 Internal update.
PiperOrigin-RevId: 561995055
2023-09-01 10:53:00 -07:00
MediaPipe TeamandCopybara-Service 007824594b Rollback of "Enable defining and using internal executors in subgraphs."
PiperOrigin-RevId: 561921927
2023-09-01 04:57:34 -07:00
MediaPipe TeamandCopybara-Service 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 TeamandCopybara-Service 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
MediaPipe TeamandCopybara-Service 81732944c4 No public description
PiperOrigin-RevId: 561775271
2023-08-31 15:22:43 -07:00
MediaPipe TeamandCopybara-Service afcb9c4216 No public description
PiperOrigin-RevId: 561773992
2023-08-31 15:17:51 -07:00
MediaPipe TeamandCopybara-Service 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 TeamandCopybara-Service 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
MediaPipe TeamandCopybara-Service 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 TeamandCopybara-Service 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
MediaPipe TeamandCopybara-Service 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 TeamandCopybara-Service 45b0271ded No public description
PiperOrigin-RevId: 561379537
2023-08-30 10:27:02 -07:00
MediaPipe TeamandCopybara-Service 6c2638592e Internal update.
PiperOrigin-RevId: 561184322
2023-08-29 17:34:35 -07:00
MediaPipe TeamandCopybara-Service e18e749e3e Internal update
PiperOrigin-RevId: 561148365
2023-08-29 15:04:33 -07:00
MediaPipe TeamandCopybara-Service 01fbbd9f67 No public description
PiperOrigin-RevId: 561067189
2023-08-29 10:18:06 -07:00
MediaPipe TeamandCopybara-Service f56b8a13a3 Add a custom op resolver for fused batch norm.
PiperOrigin-RevId: 560795170
2023-08-28 13:04:10 -07:00
MediaPipe TeamandCopybara-Service 442940cd55 No public description
PiperOrigin-RevId: 560743684
2023-08-28 10:08:49 -07:00
MediaPipe TeamandCopybara-Service 1aa5e0d46f No public description
PiperOrigin-RevId: 560689326
2023-08-28 06:21:09 -07:00
MediaPipe TeamandCopybara-Service b22dcf9ce6 No public description
PiperOrigin-RevId: 560652313
2023-08-28 02:50:07 -07:00
MediaPipe TeamandCopybara-Service d6dce193fc Internal update
PiperOrigin-RevId: 560147650
2023-08-25 11:22:58 -07:00
MediaPipe TeamandCopybara-Service 6e6978cdbf New image test utilities and memory management fixes.
PiperOrigin-RevId: 559926378
2023-08-24 18:02:55 -07:00
MediaPipe TeamandCopybara-Service 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
MediaPipe TeamandCopybara-Service 4b1b6ae7fb Move stream API rect_transformation to third_party.
PiperOrigin-RevId: 559652775
2023-08-23 23:11:47 -07:00
MediaPipe TeamandCopybara-Service b2446c6ca8 No public description
PiperOrigin-RevId: 559566037
2023-08-23 15:50:34 -07:00
MediaPipe TeamandCopybara-Service f645c59746 Move stream API image_size to third_party.
PiperOrigin-RevId: 559475476
2023-08-23 10:45:18 -07:00
MediaPipe TeamandCopybara-Service 2ebdb01d43 ImageGenerator Java API
PiperOrigin-RevId: 559310074
2023-08-22 21:42:16 -07:00
MediaPipe TeamandCopybara-Service 90781669cb No public description
PiperOrigin-RevId: 559275983
2023-08-22 18:04:11 -07:00
MediaPipe TeamandCopybara-Service 3443fe4c8e No public description
PiperOrigin-RevId: 559211117
2023-08-22 13:43:27 -07:00
MediaPipe TeamandCopybara-Service 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 TeamandCopybara-Service bcb83302bf Add pose landmarks constants
PiperOrigin-RevId: 559153433
2023-08-22 10:32:10 -07:00
MediaPipe TeamandCopybara-Service 7517b56476 No public description
PiperOrigin-RevId: 559133490
2023-08-22 09:26:33 -07:00
MediaPipe TeamandCopybara-Service edb0a64d0e Move stream API loopback to third_party.
PiperOrigin-RevId: 559037020
2023-08-22 01:44:24 -07:00
MediaPipe TeamandCopybara-Service 9bc8b3bb4f Update the header information for EnsureMinimumDefaultExecutorStackSize.
PiperOrigin-RevId: 558981535
2023-08-21 21:26:32 -07:00