Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
75046bde
Unverified
Commit
75046bde
authored
Sep 14, 2023
by
Sergii Dymchenko
Committed by
GitHub
Sep 14, 2023
Browse files
Update docstring example for resnet_fpn_backbone (#7957)
parent
0b41ff0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
torchvision/models/detection/backbone_utils.py
torchvision/models/detection/backbone_utils.py
+3
-1
No files found.
torchvision/models/detection/backbone_utils.py
View file @
75046bde
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment