KinWaiCheuk / Triplet-net-keras

Implementation of Triplet Neural Network on keras
71 stars 41 forks source link

applying triplet loss in the same model using batches. #1

Open ghost opened 5 years ago

ghost commented 5 years ago

Actually, I am trying to implement the same model but my dataset is very big. So, can you help me with the batch-wise training of the same.

KinWaiCheuk commented 5 years ago

Have you tried Keras generator? Instead of loading the complete dataset at once, the generator helps you to load the data bit by bit and feed it to the network. Making the data generator is not that straight forward, it requires some work.

This is a very comprehensive tutorial for the data generator: https://stanford.edu/~shervine/blog/keras-how-to-generate-data-on-the-fly

I am currently working on another project, I might not have time to do the generator part.