inception_v3.py 文件源码

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

项目:keras-transfer-learning-for-oxford102 作者: Arsey 项目源码 文件源码
def _create(self):
        base_model = KerasInceptionV3(weights='imagenet', include_top=False, input_tensor=self.get_input_tensor())
        self.make_net_layers_non_trainable(base_model)

        x = base_model.output
        x = GlobalAveragePooling2D()(x)
        x = Dense(self.noveltyDetectionLayerSize, activation='elu', name=self.noveltyDetectionLayerName)(x)
        predictions = Dense(len(config.classes), activation='softmax')(x)

        self.model = Model(input=base_model.input, output=predictions)
评论列表


问题


面经


文章

微信
公众号

扫码关注公众号