densenet161 densenet161 ( pretrained=False, **kwargs ) [source]

DenseNet 161-layer model from “Densely Connected Convolutional Networks”.

  • pretrained (bool, optional) – Whether to load pre-trained weights. If True, returns a model pre-trained on ImageNet. Default: False.

  • **kwargs (optional) – Additional keyword arguments. For details, please refer to DenseNet.


Layer. An instance of DenseNet 161-layer model.


from import densenet161

# build model
model = densenet161()

# build model and load imagenet pretrained weight
# model = densenet161(pretrained=True)