class packnet_sfm.networks.depth.DepthResNet.DepthResNet(version=None, **kwargs)[source]

Bases: torch.nn.modules.module.Module

Inverse depth network based on the ResNet architecture.

  • version (str) – Has a XY format, where: X is the number of residual layers [18, 34, 50] and Y is an optional ImageNet pretrained flag added by the “pt” suffix Example: “18pt” initializes a pretrained ResNet18, and “34” initializes a ResNet34 from scratch

  • kwargs (dict) – Extra parameters


Runs the network and returns inverse depth maps (4 scales if training and 1 if not).