-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Document ResNet architecture tweak #5977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Add note for resnet architecture
torchvision/models/resnet.py
Outdated
while original implementation places the stride at the first 1x1 convolution(self.conv1) | ||
according to "Deep residual learning for image recognition"https://arxiv.org/abs/1512.03385. | ||
This variant is also known as ResNet V1.5 and improves accuracy according to | ||
https://ngc.nvidia.com/catalog/model-scripts/nvidia:resnet_50_v1_5_for_pytorch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is added on the wrong place. ResNet18 and 34 use the basic BasicBlock
not Bottleneck
. It's the 50, 101 and 152 versions of the model that use the Bottleneck
class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, let me correct soon !
@datumbox I'm having errors with unittest_onnx which I did not change. Could you give me some clue to resolve this error. Or is there any other reason that cause the error? |
@puhuk that's not something you broke. The main branch is also failing. Feel free to ignore it. |
The failures on the CI are due to the |
Summary: * To resolve issue #5964 Add note for resnet architecture * Update resnet.py * Update resnet.py * Update resnet.rst * Fix stylings * Add the same notes on model builders * Improve description * Apply the change everywhere * Remove trailing space Reviewed By: NicolasHug Differential Revision: D36760934 fbshipit-source-id: 044ff1d1f35f6354dbc7608a0d30951aa90190a2 Co-authored-by: Vasilis Vryniotis <[email protected]>
Add note for resnet architecture
Closes #5964