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
3e7653c8
Unverified
Commit
3e7653c8
authored
Jun 28, 2021
by
Vasilis Vryniotis
Committed by
GitHub
Jun 28, 2021
Browse files
Fix documentation for SSD and RetinaNet. (#4132)
parent
1962fddb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
torchvision/models/detection/retinanet.py
torchvision/models/detection/retinanet.py
+1
-1
torchvision/models/detection/ssd.py
torchvision/models/detection/ssd.py
+1
-1
No files found.
torchvision/models/detection/retinanet.py
View file @
3e7653c8
...
@@ -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 (
ex
cluding the background).
num_classes (int): number of output classes of the model (
in
cluding 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.
...
...
torchvision/models/detection/ssd.py
View file @
3e7653c8
...
@@ -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 (
ex
cluding the background).
num_classes (int): number of output classes of the model (
in
cluding 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
...
...
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