Unverified Commit 3e7653c8 authored by Vasilis Vryniotis's avatar Vasilis Vryniotis Committed by GitHub
Browse files

Fix documentation for SSD and RetinaNet. (#4132)

parent 1962fddb
...@@ -256,7 +256,7 @@ class RetinaNet(nn.Module): ...@@ -256,7 +256,7 @@ class RetinaNet(nn.Module):
It should contain an out_channels attribute, which indicates the number of output It should contain an out_channels attribute, which indicates the number of output
channels that each feature map has (and it should be the same for all feature maps). channels that each feature map has (and it should be the same for all feature maps).
The backbone should return a single Tensor or an OrderedDict[Tensor]. The backbone should return a single Tensor or an OrderedDict[Tensor].
num_classes (int): number of output classes of the model (excluding the background). num_classes (int): number of output classes of the model (including the background).
min_size (int): minimum size of the image to be rescaled before feeding it to the backbone min_size (int): minimum size of the image to be rescaled before feeding it to the backbone
max_size (int): maximum size of the image to be rescaled before feeding it to the backbone max_size (int): maximum size of the image to be rescaled before feeding it to the backbone
image_mean (Tuple[float, float, float]): mean values used for input normalization. image_mean (Tuple[float, float, float]): mean values used for input normalization.
......
...@@ -141,7 +141,7 @@ class SSD(nn.Module): ...@@ -141,7 +141,7 @@ class SSD(nn.Module):
set of feature maps. set of feature maps.
size (Tuple[int, int]): the width and height to which images will be rescaled before feeding them size (Tuple[int, int]): the width and height to which images will be rescaled before feeding them
to the backbone. to the backbone.
num_classes (int): number of output classes of the model (excluding the background). num_classes (int): number of output classes of the model (including the background).
image_mean (Tuple[float, float, float]): mean values used for input normalization. image_mean (Tuple[float, float, float]): mean values used for input normalization.
They are generally the mean values of the dataset on which the backbone has been trained They are generally the mean values of the dataset on which the backbone has been trained
on on
......
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