Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.ip.tensorflow_extractor
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
Show more breadcrumbs
bob
bob.ip.tensorflow_extractor
Commits
2895148f
Commit
2895148f
authored
5 years ago
by
Tiago de Freitas Pereira
Browse files
Options
Downloads
Patches
Plain Diff
This might have solved the dask issue
parent
b2044c7f
No related branches found
No related tags found
1 merge request
!17
WIP: Added ArcFace model
Pipeline
#39985
failed
5 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/ip/tensorflow_extractor/FaceNet.py
+8
-3
8 additions, 3 deletions
bob/ip/tensorflow_extractor/FaceNet.py
with
8 additions
and
3 deletions
bob/ip/tensorflow_extractor/FaceNet.py
+
8
−
3
View file @
2895148f
...
@@ -107,8 +107,14 @@ class FaceNet(object):
...
@@ -107,8 +107,14 @@ class FaceNet(object):
return
img
[
None
,
...]
return
img
[
None
,
...]
def
load_model
(
self
):
def
load_model
(
self
):
tf
.
compat
.
v1
.
reset_default_graph
()
session_conf
=
tf
.
ConfigProto
(
intra_op_parallelism_threads
=
1
,
inter_op_parallelism_threads
=
1
)
self
.
graph
=
tf
.
Graph
()
self
.
graph
=
tf
.
Graph
()
self
.
session
=
tf
.
compat
.
v1
.
Session
(
graph
=
self
.
graph
)
self
.
session
=
tf
.
compat
.
v1
.
Session
(
graph
=
self
.
graph
,
config
=
session_conf
)
if
self
.
model_path
is
None
:
if
self
.
model_path
is
None
:
self
.
model_path
=
self
.
get_modelpath
()
self
.
model_path
=
self
.
get_modelpath
()
...
@@ -188,8 +194,7 @@ class FaceNet(object):
...
@@ -188,8 +194,7 @@ class FaceNet(object):
def
__setstate__
(
self
,
d
):
def
__setstate__
(
self
,
d
):
# Handling unpicklable objects
# Handling unpicklable objects
self
.
__dict__
=
d
self
.
__dict__
=
d
self
.
load_model
()
def
__getstate__
(
self
):
def
__getstate__
(
self
):
# Handling unpicklable objects
# Handling unpicklable objects
...
...
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