diff --git a/gallery/others/plot_repurposing_annotations.py b/gallery/others/plot_repurposing_annotations.py index b1617cacd99..166895da55d 100644 --- a/gallery/others/plot_repurposing_annotations.py +++ b/gallery/others/plot_repurposing_annotations.py @@ -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)