Unverified Commit fef2c8a5 authored by Francisco Massa's avatar Francisco Massa Committed by GitHub
Browse files

Fix example in RetinaNet documentation (#2808)

parent 4db3dc6d
......@@ -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
......
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