Skip to content

Commit 3e7653c

Browse files
authored
Fix documentation for SSD and RetinaNet. (#4132)
1 parent 1962fdd commit 3e7653c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

torchvision/models/detection/retinanet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ class RetinaNet(nn.Module):
256256
It should contain an out_channels attribute, which indicates the number of output
257257
channels that each feature map has (and it should be the same for all feature maps).
258258
The backbone should return a single Tensor or an OrderedDict[Tensor].
259-
num_classes (int): number of output classes of the model (excluding the background).
259+
num_classes (int): number of output classes of the model (including the background).
260260
min_size (int): minimum size of the image to be rescaled before feeding it to the backbone
261261
max_size (int): maximum size of the image to be rescaled before feeding it to the backbone
262262
image_mean (Tuple[float, float, float]): mean values used for input normalization.

torchvision/models/detection/ssd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class SSD(nn.Module):
141141
set of feature maps.
142142
size (Tuple[int, int]): the width and height to which images will be rescaled before feeding them
143143
to the backbone.
144-
num_classes (int): number of output classes of the model (excluding the background).
144+
num_classes (int): number of output classes of the model (including the background).
145145
image_mean (Tuple[float, float, float]): mean values used for input normalization.
146146
They are generally the mean values of the dataset on which the backbone has been trained
147147
on

0 commit comments

Comments
 (0)