resnet

torchvision.models.resnet
object resnet

ResNet architecture implementations

Derived from https://github.com/pytorch/vision/blob/v0.14.1/torchvision/models/resnet.py

TODO ResNeXt and wide ResNet variants

Attributes

Source
resnet.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
resnet.type

Members list

Type members

Classlikes

Attributes

Companion
object
Source
resnet.scala
Supertypes
trait TensorModule[D]
trait Tensor[D] => Tensor[D]
class Module
class Object
trait Matchable
class Any
Show all
object BasicBlock extends BlockBuilder

Attributes

Companion
class
Source
resnet.scala
Supertypes
class BlockBuilder
class Object
trait Matchable
class Any
Self type
BasicBlock.type
sealed abstract class BlockBuilder

Attributes

Source
resnet.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object BasicBlock.type
object Bottleneck.type

Bottleneck in torchvision places the stride for downsampling at 3x3 convolution(self.conv2) 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.

Bottleneck in torchvision places the stride for downsampling at 3x3 convolution(self.conv2) 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.

Attributes

Companion
object
Source
resnet.scala
Supertypes
trait TensorModule[D]
trait Tensor[D] => Tensor[D]
class Module
class Object
trait Matchable
class Any
Show all
object Bottleneck extends BlockBuilder

Attributes

Companion
class
Source
resnet.scala
Supertypes
class BlockBuilder
class Object
trait Matchable
class Any
Self type
Bottleneck.type

Attributes

Source
resnet.scala
Supertypes
class Module
class Object
trait Matchable
class Any
object ResNet101 extends ResNetFactory

ResNet-101 from Deep Residual Learning for Image Recognition

Attributes

Source
resnet.scala
Supertypes
class Object
trait Matchable
class Any
Self type
ResNet101.type
object ResNet152 extends ResNetFactory

ResNet-152 from Deep Residual Learning for Image Recognition

Attributes

Source
resnet.scala
Supertypes
class Object
trait Matchable
class Any
Self type
ResNet152.type
object ResNet18 extends ResNetFactory

ResNet-18 from Deep Residual Learning for Image Recognition.

Attributes

Source
resnet.scala
Supertypes
class Object
trait Matchable
class Any
Self type
ResNet18.type
object ResNet34 extends ResNetFactory

ResNet-34 from Deep Residual Learning for Image Recognition.

Attributes

Source
resnet.scala
Supertypes
class Object
trait Matchable
class Any
Self type
ResNet34.type
object ResNet50 extends ResNetFactory

ResNet-50 from Deep Residual Learning for Image Recognition

Attributes

Source
resnet.scala
Supertypes
class Object
trait Matchable
class Any
Self type
ResNet50.type
abstract class ResNetFactory

Attributes

Source
resnet.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ResNet101.type
object ResNet152.type
object ResNet18.type
object ResNet34.type
object ResNet50.type

Attributes

Source
resnet.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Source
resnet.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

1x1 convolution

1x1 convolution

Attributes

Source
resnet.scala

3x3 convolution with padding

3x3 convolution with padding

Attributes

Source
resnet.scala