noelcodella / tripletloss-keras-tensorflow Goto Github PK
View Code? Open in Web Editor NEWAn example implementation of triplet-loss in tensorflow using keras
License: MIT License
An example implementation of triplet-loss in tensorflow using keras
License: MIT License
Thank you for providing such a valuable code for teaching tripletloss.
I read the code, generated .txt, and ran it successfully.
However, I got a strange problem.
When I feed "the training data" to do "mode.fit", the returned loss value say loss_1 = 0.4684.
But, I feed exactly the same data into "model.evaluate" (right after the above code), I got loss_2 = 1.0.
The loss_1 should be equal (or similar) to loss_2, but It seems not like that.
I had tried for a couple of days to figure out what happened, but I still not found the answer.
It will be appreciated if you could provide some comments, Thanks a lot.
Hey, thanks for triple loss example!
Could you explain why LR_SGD is used? Could I use any Keras-provided optimizers instead?
Greetings
I use triple loss between data of two modalities to reduce the distance between different modalities of the same class and increase the distance between different modalities of different class. But when I use batch_all loss, the valid set loss has not changed; now using hard_loss, the valid set loss still has not changed. What is the reason? I found some answers that triplet is difficult to converge. What do you do to deal with triplet loss convergence?
Hi! Two questions:
Hello! First of all, thanks for releasing this didactic code.
Can you make available some example *.txt anchor, positive and negative pairs to run a small test?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.