keras_tripletloss
keras的Tripletloss实现(带有tensorflow后端)
用法
...
from triplet_generator import TripletGenerator, make_triplet_loss_func, bpr_triplet_loss
...
datagen = ImageDataGenerator(
featurewise_center=True,
featurewise_std_normalization=True,
rotation_range=20,
width_shift_range=0.2,
height_shift_range=0.2,
horizontal_flip=True)
model4triplet = Model(inputs=[samples], o
1