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)
inception_v3.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录