model.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:cs224n_prj 作者: lps-stanf 项目源码 文件源码
def create_image_model_resnet50(images_shape, repeat_count):
    print('Using ResNet50')
    inputs = Input(shape=images_shape)

    visual_model = ResNet50(weights='imagenet', include_top=False, input_tensor=inputs)

    x = visual_model(inputs)
    x = GlobalMaxPooling2D()(x)
    x = RepeatVector(repeat_count)(x)

    return Model(inputs, x, 'image_model')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号