def create_ft_extractor(self, type_mod, weights_path):
"""Extract the features from x using a convnet model."""
# model = convnet(type_mod, weights_path=weights_path, heatmap=False,
# W_regularizer=None,
# activity_regularizer=None,
# dense=False)
# sgd = SGD(lr=0.1, decay=1e-6, momentum=0.9, nesterov=True)
# model.compile(optimizer=sgd, loss="mse")
# print "Summary:", model.summary()
model = None
return model
评论列表
文章目录