Skip to content

Commit

Permalink
README: triplet loss definition update
Browse files Browse the repository at this point in the history
  • Loading branch information
adambielski committed Mar 26, 2018
1 parent db89db4 commit 500fc66
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Experiments_FashionMNIST.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@
"![alt text](images/anchor_negative_positive.png \"Source: FaceNet\")\n",
"Source: [2] *Schroff, Florian, Dmitry Kalenichenko, and James Philbin. [Facenet: A unified embedding for face recognition and clustering.](https://arxiv.org/abs/1503.03832) CVPR 2015.*\n",
"\n",
"**Triplet loss**: $L_{triplet}(x_a, x_p, x_n) = m + \\lVert f(x_a)-f(x_p)\\rVert_2^2 - \\lVert f(x_a)-f(x_n)\\rVert_2^2$"
"**Triplet loss**: $L_{triplet}(x_a, x_p, x_n) = max(0, m + \\lVert f(x_a)-f(x_p)\\rVert_2^2 - \\lVert f(x_a)-f(x_n)\\rVert_2^2$)"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion Experiments_MNIST.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@
"![alt text](images/anchor_negative_positive.png \"Source: FaceNet\")\n",
"Source: [2] *Schroff, Florian, Dmitry Kalenichenko, and James Philbin. [Facenet: A unified embedding for face recognition and clustering.](https://arxiv.org/abs/1503.03832) CVPR 2015.*\n",
"\n",
"**Triplet loss**: $L_{triplet}(x_a, x_p, x_n) = m + \\lVert f(x_a)-f(x_p)\\rVert_2^2 - \\lVert f(x_a)-f(x_n)\\rVert_2^2$"
"**Triplet loss**: $L_{triplet}(x_a, x_p, x_n) = max(0, m + \\lVert f(x_a)-f(x_p)\\rVert_2^2 - \\lVert f(x_a)-f(x_n)\\rVert_2^2$\\)"
]
},
{
Expand Down
Binary file modified images/triplet_loss.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 500fc66

Please sign in to comment.