Open mfide opened 7 months ago
Hello,
I was using triplet loss function from tensorflow_addons.losses.TripletSemiHardLoss(margin=1.0) to train my model using following line:
tensorflow_addons.losses.TripletSemiHardLoss(margin=1.0)
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?
tensorflow_similarity.losses
Thank you.
I am also wondering about this...
tfsim.losses.TripletLoss(distance='l2', positive_mining_strategy='hard', negative_mining_strategy='semi-hard', margin=1.0)
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.