summaryrefslogtreecommitdiff
path: root/utils/configuration.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 /utils/configuration.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 'utils/configuration.py')
-rw-r--r--utils/configuration.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/configuration.py b/utils/configuration.py
index 20aec76..31eb243 100644
--- a/utils/configuration.py
+++ b/utils/configuration.py
@@ -44,6 +44,7 @@ class ModelHPConfiguration(TypedDict):
tfa_num_parts: int
embedding_dims: int
triplet_is_hard: bool
+ triplet_is_mean: bool
triplet_margins: tuple[float, float]