Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.bio.face
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
Show more breadcrumbs
bob
bob.bio.face
Commits
0943c5e7
Commit
0943c5e7
authored
4 years ago
by
Tiago de Freitas Pereira
Browse files
Options
Downloads
Patches
Plain Diff
Changed picklable methods for the embeddings
parent
73f1457f
No related branches found
No related tags found
2 merge requests
!66
Adding some baselines as transformers
,
!64
Dask pipelines
Pipeline
#40572
failed
4 years ago
Stage: build
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/bio/face/embeddings/facenet_sanderberg.py
+1
-1
1 addition, 1 deletion
bob/bio/face/embeddings/facenet_sanderberg.py
bob/bio/face/embeddings/tensorflow_compat_v1.py
+2
-2
2 additions, 2 deletions
bob/bio/face/embeddings/tensorflow_compat_v1.py
with
3 additions
and
3 deletions
bob/bio/face/embeddings/facenet_sanderberg.py
+
1
−
1
View file @
0943c5e7
...
...
@@ -223,7 +223,6 @@ class FaceNetSanderberg(TransformerMixin, BaseEstimator):
def
__setstate__
(
self
,
d
):
# Handling unpicklable objects
self
.
__dict__
=
d
self
.
loaded
=
False
def
__getstate__
(
self
):
import
tensorflow
as
tf
...
...
@@ -236,6 +235,7 @@ class FaceNetSanderberg(TransformerMixin, BaseEstimator):
d
.
pop
(
"
images_placeholder
"
)
if
"
images_placeholder
"
in
d
else
None
d
.
pop
(
"
phase_train_placeholder
"
)
if
"
phase_train_placeholder
"
in
d
else
None
tf
.
compat
.
v1
.
reset_default_graph
()
self
.
loaded
=
False
return
d
def
_more_tags
(
self
):
...
...
This diff is collapsed.
Click to expand it.
bob/bio/face/embeddings/tensorflow_compat_v1.py
+
2
−
2
View file @
0943c5e7
...
...
@@ -122,8 +122,7 @@ class TensorflowCompatV1(TransformerMixin, BaseEstimator):
def
__setstate__
(
self
,
d
):
# Handling unpicklable objects
self
.
__dict__
=
d
self
.
loaded
=
False
self
.
__dict__
=
d
def
__getstate__
(
self
):
import
tensorflow
as
tf
...
...
@@ -134,6 +133,7 @@ class TensorflowCompatV1(TransformerMixin, BaseEstimator):
d
.
pop
(
"
input_tensor
"
,
None
)
d
.
pop
(
"
embedding
"
,
None
)
tf
.
compat
.
v1
.
reset_default_graph
()
self
.
loaded
=
False
return
d
# def __del__(self):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment