From 1f1690e779c1636540dede8b115166f2d6bdf4ce Mon Sep 17 00:00:00 2001 From: pytorchbot Date: Thu, 4 Jul 2024 11:34:54 +0000 Subject: [PATCH] 2024-07-04 nightly release (311ebaf8441daf8af6eddac6cc786062200287ce) --- gallery/others/plot_repurposing_annotations.py | 6 +++--- gallery/transforms/plot_transforms_getting_started.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gallery/others/plot_repurposing_annotations.py b/gallery/others/plot_repurposing_annotations.py index b1617cacd99..9d723064ee4 100644 --- a/gallery/others/plot_repurposing_annotations.py +++ b/gallery/others/plot_repurposing_annotations.py @@ -4,7 +4,7 @@ ===================================== .. note:: - Try on `collab `_ + Try on `Colab `_ or :ref:`go to the end ` to download the full example code. The following example illustrates the operations available @@ -149,8 +149,8 @@ def show(imgs): model = fasterrcnn_resnet50_fpn(weights=weights, progress=False) print(img.size()) -tranforms = weights.transforms() -img = tranforms(img) +transforms = weights.transforms() +img = transforms(img) target = {} target["boxes"] = boxes target["labels"] = labels = torch.ones((masks.size(0),), dtype=torch.int64) diff --git a/gallery/transforms/plot_transforms_getting_started.py b/gallery/transforms/plot_transforms_getting_started.py index c61d1cc1be0..0faf79c46af 100644 --- a/gallery/transforms/plot_transforms_getting_started.py +++ b/gallery/transforms/plot_transforms_getting_started.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 all of what you need to know to get started with the @@ -25,7 +25,7 @@ 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/ from helpers import plot img = read_image(str(Path('../assets') / 'astronaut.jpg'))