From 37ac39dcd8d11df2945a5721e7c143068057b3db Mon Sep 17 00:00:00 2001 From: pytorchbot Date: Fri, 5 Jul 2024 11:34:29 +0000 Subject: [PATCH] 2024-07-05 nightly release (4d82b31036edf0c8a830e97d46a12645aaad86a8) --- .github/workflows/docs.yml | 2 +- docs/source/conf.py | 2 +- gallery/others/plot_optical_flow.py | 2 +- gallery/others/plot_scripted_tensor_transforms.py | 4 ++-- gallery/others/plot_video_api.py | 2 +- gallery/others/plot_visualization_utils.py | 2 +- gallery/transforms/plot_custom_transforms.py | 2 +- gallery/transforms/plot_custom_tv_tensors.py | 2 +- gallery/transforms/plot_cutmix_mixup.py | 2 +- gallery/transforms/plot_transforms_e2e.py | 4 ++-- gallery/transforms/plot_transforms_illustrations.py | 4 ++-- gallery/transforms/plot_tv_tensors.py | 2 +- 12 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 51cc77b3cea..5402294322d 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -57,7 +57,7 @@ jobs: sed -i -e 's/-j auto/-j 1/' Makefile make html - # Below is an imperfect way for us to add "try on collab" links to all of our gallery examples. + # Below is an imperfect way for us to add "try on Colab" links to all of our gallery examples. # sphinx-gallery will convert all gallery examples to .ipynb notebooks and stores them in # build/html/_downloads//.ipynb # We copy all those ipynb files in a more convenient folder so that we can more easily link to them. diff --git a/docs/source/conf.py b/docs/source/conf.py index a3be2282a47..88bf0b28643 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -59,7 +59,7 @@ # We override sphinx-gallery's example header to prevent sphinx-gallery from # creating a note at the top of the renderred notebook. # https://github.com/sphinx-gallery/sphinx-gallery/blob/451ccba1007cc523f39cbcc960ebc21ca39f7b75/sphinx_gallery/gen_rst.py#L1267-L1271 -# This is because we also want to add a link to google collab, so we write our own note in each example. +# This is because we also want to add a link to google Colab, so we write our own note in each example. from sphinx_gallery import gen_rst gen_rst.EXAMPLE_HEADER = """ diff --git a/gallery/others/plot_optical_flow.py b/gallery/others/plot_optical_flow.py index 3ab14493417..6296c8e667e 100644 --- a/gallery/others/plot_optical_flow.py +++ b/gallery/others/plot_optical_flow.py @@ -4,7 +4,7 @@ ===================================================== .. note:: - Try on `collab `_ + Try on `Colab `_ or :ref:`go to the end ` to download the full example code. Optical flow is the task of predicting movement between two images, usually two diff --git a/gallery/others/plot_scripted_tensor_transforms.py b/gallery/others/plot_scripted_tensor_transforms.py index 128ce7778f3..5c49a7ca894 100644 --- a/gallery/others/plot_scripted_tensor_transforms.py +++ b/gallery/others/plot_scripted_tensor_transforms.py @@ -4,7 +4,7 @@ =================== .. note:: - Try on `collab `_ + Try on `Colab `_ or :ref:`go to the end ` to download the full example code. This example illustrates `torchscript @@ -26,7 +26,7 @@ plt.rcParams["savefig.bbox"] = 'tight' torch.manual_seed(1) -# If you're trying to run that on collab, you can download the assets and the +# If you're trying to run that on Colab, you can download the assets and the # helpers from https://github.com/pytorch/vision/tree/main/gallery/ import sys sys.path += ["../transforms"] diff --git a/gallery/others/plot_video_api.py b/gallery/others/plot_video_api.py index ac9eb0ba27d..3a67e4d86d0 100644 --- a/gallery/others/plot_video_api.py +++ b/gallery/others/plot_video_api.py @@ -4,7 +4,7 @@ ========= .. note:: - Try on `collab `_ + Try on `Colab `_ or :ref:`go to the end ` to download the full example code. This example illustrates some of the APIs that torchvision offers for diff --git a/gallery/others/plot_visualization_utils.py b/gallery/others/plot_visualization_utils.py index 9804fbad648..d0a214a7340 100644 --- a/gallery/others/plot_visualization_utils.py +++ b/gallery/others/plot_visualization_utils.py @@ -4,7 +4,7 @@ ======================= .. note:: - Try on `collab `_ + Try on `Colab `_ or :ref:`go to the end ` to download the full example code. This example illustrates some of the utilities that torchvision offers for diff --git a/gallery/transforms/plot_custom_transforms.py b/gallery/transforms/plot_custom_transforms.py index 898c2cd0bea..19bc955b934 100644 --- a/gallery/transforms/plot_custom_transforms.py +++ b/gallery/transforms/plot_custom_transforms.py @@ -4,7 +4,7 @@ =================================== .. note:: - Try on `collab `_ + Try on `Colab `_ or :ref:`go to the end ` to download the full example code. This guide explains how to write transforms that are compatible with the diff --git a/gallery/transforms/plot_custom_tv_tensors.py b/gallery/transforms/plot_custom_tv_tensors.py index bf5ee198837..9b113901461 100644 --- a/gallery/transforms/plot_custom_tv_tensors.py +++ b/gallery/transforms/plot_custom_tv_tensors.py @@ -4,7 +4,7 @@ ==================================== .. note:: - Try on `collab `_ + Try on `Colab `_ or :ref:`go to the end ` to download the full example code. This guide is intended for advanced users and downstream library maintainers. We explain how to diff --git a/gallery/transforms/plot_cutmix_mixup.py b/gallery/transforms/plot_cutmix_mixup.py index d26b027b121..222be0ff359 100644 --- a/gallery/transforms/plot_cutmix_mixup.py +++ b/gallery/transforms/plot_cutmix_mixup.py @@ -5,7 +5,7 @@ =========================== .. note:: - Try on `collab `_ + Try on `Colab `_ or :ref:`go to the end ` to download the full example code. :class:`~torchvision.transforms.v2.CutMix` and diff --git a/gallery/transforms/plot_transforms_e2e.py b/gallery/transforms/plot_transforms_e2e.py index d2481c880a5..765d7ad51e5 100644 --- a/gallery/transforms/plot_transforms_e2e.py +++ b/gallery/transforms/plot_transforms_e2e.py @@ -4,7 +4,7 @@ =============================================================== .. note:: - Try on `collab `_ + Try on `Colab `_ or :ref:`go to the end ` to download the full example code. Object detection and segmentation tasks are natively supported: @@ -30,7 +30,7 @@ # This loads fake data for illustration purposes of this example. In practice, you'll have # to replace this with the proper data. -# If you're trying to run that on collab, you can download the assets and the +# If you're trying to run that on Colab, you can download the assets and the # helpers from https://github.com/pytorch/vision/tree/main/gallery/ ROOT = pathlib.Path("../assets") / "coco" IMAGES_PATH = str(ROOT / "images") diff --git a/gallery/transforms/plot_transforms_illustrations.py b/gallery/transforms/plot_transforms_illustrations.py index 2145a74d5e2..0c1f3b40021 100644 --- a/gallery/transforms/plot_transforms_illustrations.py +++ b/gallery/transforms/plot_transforms_illustrations.py @@ -4,7 +4,7 @@ ========================== .. note:: - Try on `collab `_ + Try on `Colab `_ or :ref:`go to the end ` to download the full example code. This example illustrates some of the various transforms available in :ref:`the @@ -27,7 +27,7 @@ # properly show that the image can be both transformed and *not* transformed! torch.manual_seed(0) -# If you're trying to run that on collab, you can download the assets and the +# If you're trying to run that on Colab, you can download the assets and the # helpers from https://github.com/pytorch/vision/tree/main/gallery/ from helpers import plot orig_img = Image.open(Path('../assets') / 'astronaut.jpg') diff --git a/gallery/transforms/plot_tv_tensors.py b/gallery/transforms/plot_tv_tensors.py index 0cdbe9d0831..5bce37aa374 100644 --- a/gallery/transforms/plot_tv_tensors.py +++ b/gallery/transforms/plot_tv_tensors.py @@ -4,7 +4,7 @@ ============= .. note:: - Try on `collab `_ + Try on `Colab `_ or :ref:`go to the end ` to download the full example code.