googlenet

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

GoogLeNet (Inception v1) model architecture from “Going Deeper with Convolutions”

Parameters

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

Examples

import paddle
from paddle.vision.models import googlenet

# build model
model = googlenet()

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

x = paddle.rand([1, 3, 224, 224])
out, out1, out2 = model(x)

print(out.shape)