From 0fc6e2b809b13b7cb1de1792288409624f5f6007 Mon Sep 17 00:00:00 2001 From: kuaashish <98159216+kuaashish@users.noreply.github.com> Date: Sat, 17 Feb 2024 00:02:00 +0530 Subject: [PATCH] This commit removes the previously hardcoded version "0.10.0" and retrieve the latest available version. This ensures the application always benefits from the newest features and performance improvements. (#317) --- .../python/audio_classification.ipynb | 4 +-- .../python/gesture_recognizer.ipynb | 4 +-- .../python/hand_landmarker.ipynb | 8 ++--- .../python/image_classifier.ipynb | 4 +-- .../python/image_embedder.ipynb | 4 +-- .../python/image_segmentation.ipynb | 4 +-- .../python/interactive_segmenter.ipynb | 4 +-- ...Pipe_Python_Tasks]_Language_Detector.ipynb | 12 ++++---- .../python/object_detector.ipynb | 4 +-- ...iaPipe_Python_Tasks]_Pose_Landmarker.ipynb | 30 +++++++++---------- .../python/text_classifier.ipynb | 4 +-- .../text_embedder/python/text_embedder.ipynb | 4 +-- 12 files changed, 43 insertions(+), 43 deletions(-) diff --git a/examples/audio_classifier/python/audio_classification.ipynb b/examples/audio_classifier/python/audio_classification.ipynb index edbd9bab..ce9ea799 100644 --- a/examples/audio_classifier/python/audio_classification.ipynb +++ b/examples/audio_classifier/python/audio_classification.ipynb @@ -61,7 +61,7 @@ "outputs": [], "source": [ "!pip install -q sounddevice==0.4.4\n", - "!pip install -q mediapipe==0.10.0" + "!pip install -q mediapipe" ] }, { @@ -216,4 +216,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} \ No newline at end of file +} diff --git a/examples/gesture_recognizer/python/gesture_recognizer.ipynb b/examples/gesture_recognizer/python/gesture_recognizer.ipynb index ee2e25e0..fac1d75d 100644 --- a/examples/gesture_recognizer/python/gesture_recognizer.ipynb +++ b/examples/gesture_recognizer/python/gesture_recognizer.ipynb @@ -61,7 +61,7 @@ }, "outputs": [], "source": [ - "!pip install -q mediapipe==0.10.0" + "!pip install -q mediapipe" ] }, { @@ -368,4 +368,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} \ No newline at end of file +} diff --git a/examples/hand_landmarker/python/hand_landmarker.ipynb b/examples/hand_landmarker/python/hand_landmarker.ipynb index 4e1f464c..f78c65e9 100644 --- a/examples/hand_landmarker/python/hand_landmarker.ipynb +++ b/examples/hand_landmarker/python/hand_landmarker.ipynb @@ -60,7 +60,7 @@ }, "outputs": [], "source": [ - "!pip install -q mediapipe==0.10.0" + "!pip install -q mediapipe" ] }, { @@ -262,10 +262,10 @@ ], "metadata": { "colab": { - "provenance": [], "collapsed_sections": [ "h2q27gKz1H20" - ] + ], + "provenance": [] }, "kernelspec": { "display_name": "Python 3 (ipykernel)", @@ -287,4 +287,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} \ No newline at end of file +} diff --git a/examples/image_classification/python/image_classifier.ipynb b/examples/image_classification/python/image_classifier.ipynb index 2395e653..b8682552 100644 --- a/examples/image_classification/python/image_classifier.ipynb +++ b/examples/image_classification/python/image_classifier.ipynb @@ -61,7 +61,7 @@ }, "outputs": [], "source": [ - "!pip install -q mediapipe==0.10.0" + "!pip install -q mediapipe" ] }, { @@ -340,4 +340,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} \ No newline at end of file +} diff --git a/examples/image_embedder/python/image_embedder.ipynb b/examples/image_embedder/python/image_embedder.ipynb index a423bdbf..5fb51ba7 100644 --- a/examples/image_embedder/python/image_embedder.ipynb +++ b/examples/image_embedder/python/image_embedder.ipynb @@ -60,7 +60,7 @@ }, "outputs": [], "source": [ - "!pip install -q mediapipe==0.10.0" + "!pip install -q mediapipe" ] }, { @@ -233,4 +233,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} \ No newline at end of file +} diff --git a/examples/image_segmentation/python/image_segmentation.ipynb b/examples/image_segmentation/python/image_segmentation.ipynb index 3e305325..18e2286b 100644 --- a/examples/image_segmentation/python/image_segmentation.ipynb +++ b/examples/image_segmentation/python/image_segmentation.ipynb @@ -58,7 +58,7 @@ }, "outputs": [], "source": [ - "!pip install -q mediapipe==0.10.0" + "!pip install -q mediapipe" ] }, { @@ -309,4 +309,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} \ No newline at end of file +} diff --git a/examples/interactive_segmentation/python/interactive_segmenter.ipynb b/examples/interactive_segmentation/python/interactive_segmenter.ipynb index 6bb38693..d33dcaf2 100644 --- a/examples/interactive_segmentation/python/interactive_segmenter.ipynb +++ b/examples/interactive_segmentation/python/interactive_segmenter.ipynb @@ -49,7 +49,7 @@ }, "outputs": [], "source": [ - "!pip install -q mediapipe==0.10.0" + "!pip install -q mediapipe" ] }, { @@ -442,4 +442,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} \ No newline at end of file +} diff --git a/examples/language_detector/python/[MediaPipe_Python_Tasks]_Language_Detector.ipynb b/examples/language_detector/python/[MediaPipe_Python_Tasks]_Language_Detector.ipynb index 69b70fc9..be14d915 100644 --- a/examples/language_detector/python/[MediaPipe_Python_Tasks]_Language_Detector.ipynb +++ b/examples/language_detector/python/[MediaPipe_Python_Tasks]_Language_Detector.ipynb @@ -60,7 +60,7 @@ }, "outputs": [], "source": [ - "!pip install -q mediapipe==0.10.0" + "!pip install -q mediapipe" ] }, { @@ -98,6 +98,9 @@ }, { "cell_type": "markdown", + "metadata": { + "id": "mhql0IPCcDBs" + }, "source": [ "You can try the following examples to try the API out or enter your own text\n", "in the text bar.\n", @@ -109,10 +112,7 @@ "* **Russian** - это какой-то английский язык\n", "\n", "* **Mixed** - 分久必合合久必分" - ], - "metadata": { - "id": "mhql0IPCcDBs" - } + ] }, { "cell_type": "code", @@ -178,4 +178,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} \ No newline at end of file +} diff --git a/examples/object_detection/python/object_detector.ipynb b/examples/object_detection/python/object_detector.ipynb index 1ede1d5b..2b1f61dc 100644 --- a/examples/object_detection/python/object_detector.ipynb +++ b/examples/object_detection/python/object_detector.ipynb @@ -61,7 +61,7 @@ }, "outputs": [], "source": [ - "!pip install -q mediapipe==0.10.0" + "!pip install -q mediapipe" ] }, { @@ -284,4 +284,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} \ No newline at end of file +} diff --git a/examples/pose_landmarker/python/[MediaPipe_Python_Tasks]_Pose_Landmarker.ipynb b/examples/pose_landmarker/python/[MediaPipe_Python_Tasks]_Pose_Landmarker.ipynb index 15b48e09..b78c0035 100644 --- a/examples/pose_landmarker/python/[MediaPipe_Python_Tasks]_Pose_Landmarker.ipynb +++ b/examples/pose_landmarker/python/[MediaPipe_Python_Tasks]_Pose_Landmarker.ipynb @@ -61,7 +61,7 @@ }, "outputs": [], "source": [ - "!pip install -q mediapipe==0.10.0" + "!pip install -q mediapipe" ] }, { @@ -233,34 +233,34 @@ }, { "cell_type": "markdown", - "source": [ - "Visualize the pose segmentation mask." - ], "metadata": { "id": "_BwzFvaxwtPX" - } + }, + "source": [ + "Visualize the pose segmentation mask." + ] }, { "cell_type": "code", + "execution_count": null, + "metadata": { + "id": "3jAIFzw9M3JJ" + }, + "outputs": [], "source": [ "segmentation_mask = detection_result.segmentation_masks[0].numpy_view()\n", "visualized_mask = np.repeat(segmentation_mask[:, :, np.newaxis], 3, axis=2) * 255\n", "cv2_imshow(visualized_mask)" - ], - "metadata": { - "id": "3jAIFzw9M3JJ" - }, - "execution_count": null, - "outputs": [] + ] }, { "cell_type": "code", - "source": [], + "execution_count": null, "metadata": { "id": "QipRi2ozw7cg" }, - "execution_count": null, - "outputs": [] + "outputs": [], + "source": [] } ], "metadata": { @@ -287,4 +287,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} \ No newline at end of file +} diff --git a/examples/text_classification/python/text_classifier.ipynb b/examples/text_classification/python/text_classifier.ipynb index 7eb3f720..345e9bff 100644 --- a/examples/text_classification/python/text_classifier.ipynb +++ b/examples/text_classification/python/text_classifier.ipynb @@ -60,7 +60,7 @@ }, "outputs": [], "source": [ - "!pip install -q mediapipe==0.10.0" + "!pip install -q mediapipe" ] }, { @@ -167,4 +167,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} \ No newline at end of file +} diff --git a/examples/text_embedder/python/text_embedder.ipynb b/examples/text_embedder/python/text_embedder.ipynb index 5cc6a578..abf3357c 100644 --- a/examples/text_embedder/python/text_embedder.ipynb +++ b/examples/text_embedder/python/text_embedder.ipynb @@ -67,7 +67,7 @@ }, "outputs": [], "source": [ - "!pip install -q mediapipe==0.10.0" + "!pip install -q mediapipe" ] }, { @@ -174,4 +174,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} \ No newline at end of file +}