
LLCNN_resnet18contopo
Neuroscience signals69 ops11.7M params
ResNet-18, an 18-layer residual network with identity shortcut connections, built with torchvision.
Image classification · 69 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
How this diagram was made
torchvision.models.resnet18(weights=None)
This model is ResNet-18, the 18-layer residual network from the paper "Deep Residual Learning for Image Recognition", built with torchvision. The paper presents a residual learning framework meant to ease the training of networks substantially deeper than those used before it. By default torchvision builds it without pre-trained weights.
Instead of learning a mapping directly, the layers are reformulated to learn residual functions with reference to their inputs. In the network this takes the form of shortcut connections that perform identity mapping, with their outputs added to the outputs of the stacked layers. Identity shortcuts add neither extra parameters nor computational complexity. The 18-layer and 34-layer residual nets follow the paper's plain baselines, except that a shortcut connection is added to each pair of 3×3 filters.
On ImageNet the paper reports that the 18-layer plain and residual nets are comparably accurate, but the 18-layer ResNet converges faster. Its competition result came from deeper networks: an ensemble of residual nets achieved 3.57% error on the ImageNet test set. The paper states that this result won 1st place on the ILSVRC 2015 classification task.
Key idea. The paper reformulates layers as learning residual functions with reference to their inputs, which eases the training of networks substantially deeper than earlier ones.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{he2015deepresiduallearningimage,
title={Deep Residual Learning for Image Recognition},
author={Kaiming He and Xiangyu Zhang and Shaoqing Ren and Jian Sun},
year={2015},
eprint={1512.03385},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1512.03385},
}