Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.learn.tensorflow
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
bob
bob.learn.tensorflow
Merge requests
!85
Porting to TF2
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Porting to TF2
tf2
into
master
Overview
8
Commits
24
Pipelines
5
Changes
14
1 unresolved thread
Hide all comments
Merged
Tiago de Freitas Pereira
requested to merge
tf2
into
master
4 years ago
Overview
8
Commits
24
Pipelines
5
Changes
14
1 unresolved thread
Hide all comments
Expand
Fixes
#75 (closed)
Edited
4 years ago
by
Amir MOHAMMADI
0
0
Merge request reports
Viewing commit
a48bce10
Prev
Next
Show latest version
14 files
+
62
−
278
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
14
Search (e.g. *.vue) (Ctrl+P)
a48bce10
remove bob.bio.base
· a48bce10
Amir MOHAMMADI
authored
4 years ago
bob/learn/tensorflow/loss/TripletLoss.py
+
2
−
1
Options
@@ -4,11 +4,12 @@
import
logging
logger
=
logging
.
getLogger
(
__name__
)
import
tensorflow
as
tf
from
bob.learn.tensorflow.utils
import
compute_euclidean_distance
logger
=
logging
.
getLogger
(
__name__
)
def
triplet_loss
(
anchor_embedding
,
positive_embedding
,
negative_embedding
,
margin
=
5.0
):
"""
Loading