summaryrefslogtreecommitdiff
path: root/config.py
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-02-28 23:11:05 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-02-28 23:11:05 +0800
commitfed5e6a9b35fda8306147e9ce772dfbf3142a061 (patch)
tree7ad4ffef229e64699522a468c11f071d5a45a725 /config.py
parentb837336695213e3e660992fcd01c5a52c654ea4f (diff)
Implement sum of loss default in [1]
[1]A. Hermans, L. Beyer, and B. Leibe, “In defense of the triplet loss for person re-identification,” arXiv preprint arXiv:1703.07737, 2017.
Diffstat (limited to 'config.py')
-rw-r--r--config.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.py b/config.py
index 9072982..4c108e2 100644
--- a/config.py
+++ b/config.py
@@ -65,6 +65,8 @@ config: Configuration = {
'embedding_dims': 256,
# Batch Hard or Batch All
'triplet_is_hard': True,
+ # Use non-zero mean or sum
+ 'triplet_is_mean': True,
# Triplet loss margins for HPM and PartNet, None for soft margin
'triplet_margins': None,
},