densenet121

paddle.vision.models. densenet121 ( pretrained=False, **kwargs ) [source]

DenseNet 121-layer model

Parameters

pretrained (bool) – If True, returns a model pre-trained on ImageNet

Examples

from paddle.vision.models import densenet121

# build model
model = densenet121()

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