Skip to content

Commit 521b123

Browse files
authored
Fixed a typo (#1701)
* corrected a typo Signed-off-by: kiranscaria <kiranscaria@outlook.com> * corrected a typo Signed-off-by: kiranscaria <kiranscaria@outlook.com>
1 parent 8dab2c5 commit 521b123

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

intermediate_source/torchvision_tutorial.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ way of doing it:
220220
import torchvision
221221
from torchvision.models.detection.faster_rcnn import FastRCNNPredictor
222222
223-
# load a model pre-trained pre-trained on COCO
223+
# load a model pre-trained on COCO
224224
model = torchvision.models.detection.fasterrcnn_resnet50_fpn(pretrained=True)
225225
226226
# replace the classifier with a new one, that has
@@ -290,7 +290,7 @@ be using Mask R-CNN:
290290
291291
292292
def get_model_instance_segmentation(num_classes):
293-
# load an instance segmentation model pre-trained pre-trained on COCO
293+
# load an instance segmentation model pre-trained on COCO
294294
model = torchvision.models.detection.maskrcnn_resnet50_fpn(pretrained=True)
295295
296296
# get number of input features for the classifier

0 commit comments

Comments
 (0)