From c304e3ac6afbde228177922274279609019a5d32 Mon Sep 17 00:00:00 2001 From: Bhavay Malhotra <56443877+Bhavay-2001@users.noreply.github.com> Date: Thu, 4 Jul 2024 15:58:37 +0530 Subject: [PATCH] Update plot_repurposing_annotations.py (#8506) --- gallery/others/plot_repurposing_annotations.py | 6 +++--- 1 file changed, 3 insertions(+), 3 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)