Keras-OpenFace
Keras-OpenFace copied to clipboard
Generator
Hello, could you tell me where i can find triplet_generator()? from data import triplet_generator
triplet_generator() creates a generator that continuously returns
([a_batch, p_batch, n_batch], None) tuples where a_batch, p_batch
and n_batch are batches of anchor, positive and negative RGB images
each having a shape of (batch_size, 96, 96, 3).
generator = triplet_generator()
nn4_small2_train.compile(loss=None, optimizer='adam') nn4_small2_train.fit_generator(generator, epochs=10, steps_per_epoch=100)