Unverified Commit 75046bde authored by Sergii Dymchenko's avatar Sergii Dymchenko Committed by GitHub
Browse files

Update docstring example for resnet_fpn_backbone (#7957)

parent 0b41ff0b
......@@ -79,8 +79,10 @@ def resnet_fpn_backbone(
Examples::
>>> import torch
>>> from torchvision.models import ResNet50_Weights
>>> from torchvision.models.detection.backbone_utils import resnet_fpn_backbone
>>> backbone = resnet_fpn_backbone('resnet50', weights=ResNet50_Weights.DEFAULT, trainable_layers=3)
>>> backbone = resnet_fpn_backbone(backbone_name='resnet50', weights=ResNet50_Weights.DEFAULT, trainable_layers=3)
>>> # get some dummy image
>>> x = torch.rand(1,3,64,64)
>>> # compute the output
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment