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
fef2c8a5
Unverified
Commit
fef2c8a5
authored
Oct 14, 2020
by
Francisco Massa
Committed by
GitHub
Oct 14, 2020
Browse files
Fix example in RetinaNet documentation (#2808)
parent
4db3dc6d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
torchvision/models/detection/retinanet.py
torchvision/models/detection/retinanet.py
+2
-2
No files found.
torchvision/models/detection/retinanet.py
View file @
fef2c8a5
...
...
@@ -312,8 +312,8 @@ class RetinaNet(nn.Module):
>>> # map could potentially have different sizes and
>>> # aspect ratios
>>> anchor_generator = AnchorGenerator(
>>> sizes=
tuple((x, int(x * 2 ** (1.0 / 3)), int(x * 2 ** (2.0 / 3))) for x in [
32, 64, 128, 256, 512
]
),
>>> aspect_ratios=((0.5, 1.0, 2.0),)
* 5
>>> sizes=
((
32, 64, 128, 256, 512
),
),
>>> aspect_ratios=((0.5, 1.0, 2.0),)
>>> )
>>>
>>> # put the pieces together inside a RetinaNet model
...
...
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