This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Description
Hello,
I was using triplet loss function from tensorflow_addons.losses.TripletSemiHardLoss(margin=1.0) to train my model using following line:
tsn.compile(optimizer=tf.keras.optimizers.Adam(0.0001), loss=tfa.losses.TripletSemiHardLoss(margin=1.0))
Any example or idea how to replace this loss function with tripletloss in tensorflow_similarity.losses?
Thank you.