From 3c41c9721d0cc379406d1bcf61553db3b87b9103 Mon Sep 17 00:00:00 2001 From: Kader Miyanyedi Date: Sat, 31 Aug 2024 01:31:16 +0300 Subject: [PATCH] fix: fix typos --- docs/notebooks/annotate-video-with-detections.ipynb | 2 +- docs/notebooks/count-objects-crossing-the-line.ipynb | 2 +- docs/notebooks/object-tracking.ipynb | 2 +- docs/notebooks/occupancy_analytics.ipynb | 2 +- test/dataset/test_utils.py | 2 +- test/detection/test_utils.py | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/notebooks/annotate-video-with-detections.ipynb b/docs/notebooks/annotate-video-with-detections.ipynb index 2892986f..b7f75e11 100644 --- a/docs/notebooks/annotate-video-with-detections.ipynb +++ b/docs/notebooks/annotate-video-with-detections.ipynb @@ -368,7 +368,7 @@ "
\n", "\n", "\n", - "In the code above we've created a`video_info` variable to pass information about the video to our `VideoSink`. The `VideoSink` is a cool little context manager that allows us to `write_frames()` to a video ouput file. We're also optionally using `tqdm` to display a progress bar with a % complete. We only scratched the surface of all of the customizable Annotators and additional features that Supervision and Inference have to offer. Stay tuned for more cookbooks on how to take advantge of them in your computer vision applications. Happy building! \ud83d\ude80" + "In the code above we've created a`video_info` variable to pass information about the video to our `VideoSink`. The `VideoSink` is a cool little context manager that allows us to `write_frames()` to a video output file. We're also optionally using `tqdm` to display a progress bar with a % complete. We only scratched the surface of all of the customizable Annotators and additional features that Supervision and Inference have to offer. Stay tuned for more cookbooks on how to take advantage of them in your computer vision applications. Happy building! \ud83d\ude80" ] } ], diff --git a/docs/notebooks/count-objects-crossing-the-line.ipynb b/docs/notebooks/count-objects-crossing-the-line.ipynb index 434fc513..e88615ef 100644 --- a/docs/notebooks/count-objects-crossing-the-line.ipynb +++ b/docs/notebooks/count-objects-crossing-the-line.ipynb @@ -402,7 +402,7 @@ { "cell_type": "markdown", "source": [ - "## Improve Vizualizations" + "## Improve Visualizations" ], "metadata": { "id": "HsPNfuM_3ENR" diff --git a/docs/notebooks/object-tracking.ipynb b/docs/notebooks/object-tracking.ipynb index a1eae53a..0056d671 100644 --- a/docs/notebooks/object-tracking.ipynb +++ b/docs/notebooks/object-tracking.ipynb @@ -103,7 +103,7 @@ "source": [ "## Download a Video Asset\n", "\n", - "Now that we have our enviornment setup, lets download a video that we can detect objects in. Supervision comes with a great utility to help us hit the ground running. We can use the below snippet to he video is save a video asset in our local directory. It can also be accessed with the variable `path_to_video` for additional application logic." + "Now that we have our environment setup, lets download a video that we can detect objects in. Supervision comes with a great utility to help us hit the ground running. We can use the below snippet to he video is save a video asset in our local directory. It can also be accessed with the variable `path_to_video` for additional application logic." ] }, { diff --git a/docs/notebooks/occupancy_analytics.ipynb b/docs/notebooks/occupancy_analytics.ipynb index a7bf3497..aad7f900 100644 --- a/docs/notebooks/occupancy_analytics.ipynb +++ b/docs/notebooks/occupancy_analytics.ipynb @@ -951,7 +951,7 @@ }, "source": [ "#### Import your data\n", - "To load your data back in, upload the saved file to the Colab enviorment and run the code cell." + "To load your data back in, upload the saved file to the Colab environment and run the code cell." ] }, { diff --git a/test/dataset/test_utils.py b/test/dataset/test_utils.py index 67893abc..dcbe6d19 100644 --- a/test/dataset/test_utils.py +++ b/test/dataset/test_utils.py @@ -278,7 +278,7 @@ def test_map_detections_class_id( np.array([[[]]]).astype(bool), None, pytest.raises(AssertionError), - ), # raises AssertionError because mask dimentionality is not 2D + ), # raises AssertionError because mask dimensionality is not 2D ( np.array([[]]).astype(bool), None, diff --git a/test/detection/test_utils.py b/test/detection/test_utils.py index 9224c676..77c4cea5 100644 --- a/test/detection/test_utils.py +++ b/test/detection/test_utils.py @@ -975,7 +975,7 @@ def test_get_data_item( ), False, DoesNotRaise(), - ), # foreground object in 2 seperate elements + ), # foreground object in 2 separate elements ( np.array([[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]).astype( bool @@ -1032,7 +1032,7 @@ def test_contains_holes( 4, True, DoesNotRaise(), - ), # foreground object in 2 seperate elements + ), # foreground object in 2 separate elements ( np.array([[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]).astype( bool