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
aa31740b
Unverified
Commit
aa31740b
authored
May 09, 2022
by
Nicolas Hug
Committed by
GitHub
May 09, 2022
Browse files
Fixing AlexNet references (#5962)
* Fixing AlexNet references * Fix doc rendering
parent
7d0d7fd7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
docs/source/models/alexnet.rst
docs/source/models/alexnet.rst
+5
-3
torchvision/models/alexnet.py
torchvision/models/alexnet.py
+8
-2
No files found.
docs/source/models/alexnet.rst
View file @
aa31740b
...
...
@@ -3,10 +3,12 @@ AlexNet
.. currentmodule:: torchvision.models
The AlexNet model
is bas
ed
o
n the
The AlexNet model
was originally introduc
ed
i
n the
`ImageNet Classification with Deep Convolutional Neural Networks
<https://papers.nips.cc/paper/2012/hash/c399862d3b9d6b76c8436e924a68c45b-Abstract.html>`__.
paper.
<https://papers.nips.cc/paper/2012/hash/c399862d3b9d6b76c8436e924a68c45b-Abstract.html>`__
paper. The implemented architecture is slightly different from the original one,
and is based on `One weird trick for parallelizing convolutional neural networks
<https://arxiv.org/abs/1404.5997>`__.
Model builders
...
...
torchvision/models/alexnet.py
View file @
aa31740b
...
...
@@ -72,11 +72,17 @@ class AlexNet_Weights(WeightsEnum):
@
handle_legacy_interface
(
weights
=
(
"pretrained"
,
AlexNet_Weights
.
IMAGENET1K_V1
))
def
alexnet
(
*
,
weights
:
Optional
[
AlexNet_Weights
]
=
None
,
progress
:
bool
=
True
,
**
kwargs
:
Any
)
->
AlexNet
:
"""AlexNet model architecture from the `ImageNet Classification with Deep Convolutional Neural Networks
<https://papers.nips.cc/paper/2012/hash/c399862d3b9d6b76c8436e924a68c45b-Abstract.html>`__ paper.
"""AlexNet model architecture from `One weird trick for parallelizing convolutional neural networks <https://arxiv.org/abs/1404.5997>`__.
The required minimum input size of the model is 63x63.
.. note::
AlexNet was originally introduced in the `ImageNet Classification with
Deep Convolutional Neural Networks
<https://papers.nips.cc/paper/2012/hash/c399862d3b9d6b76c8436e924a68c45b-Abstract.html>`__
paper. Our implementation is based instead on the "One weird trick"
paper above.
Args:
weights (:class:`~torchvision.models.AlexNet_Weights`, optional): The
pretrained weights to use. See
...
...
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