Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.bio.face
Commits
5e1e99e1
Commit
5e1e99e1
authored
Jul 02, 2020
by
Tiago de Freitas Pereira
Browse files
Patched the serialization mechenism
parent
7961dac3
Changes
4
Hide whitespace changes
Inline
Side-by-side
bob/bio/face/extractor/DCTBlocks.py
View file @
5e1e99e1
...
...
@@ -140,7 +140,7 @@ class DCTBlocks(TransformerMixin, BaseEstimator):
return
self
def
__getstate__
(
self
):
d
=
dict
(
self
.
__dict__
)
d
=
self
.
__dict__
.
copy
(
)
d
.
pop
(
"dct_features"
)
return
d
...
...
bob/bio/face/extractor/GridGraph.py
View file @
5e1e99e1
...
...
@@ -8,7 +8,7 @@ import bob.io.base
import
numpy
import
math
from
bob.bio.base.extractor
import
Extractor
import
copy
class
GridGraph
(
Extractor
):
"""Extracts Gabor jets in a grid structure [GHW12]_ using functionalities from :ref:`bob.ip.gabor <bob.ip.gabor>`.
...
...
@@ -278,11 +278,12 @@ class GridGraph(Extractor):
pass
def
__getstate__
(
self
):
d
=
dict
(
self
.
__dict__
)
d
=
self
.
__dict__
.
copy
(
)
d
.
pop
(
"gwt"
)
d
.
pop
(
"_aligned_graph"
)
if
"_graph"
in
d
:
d
.
pop
(
"_graph"
)
return
d
def
__setstate__
(
self
,
d
):
...
...
bob/bio/face/extractor/LGBPHS.py
View file @
5e1e99e1
...
...
@@ -281,7 +281,7 @@ class LGBPHS(TransformerMixin, BaseEstimator):
return
_extract
(
X
)
def
__getstate__
(
self
):
d
=
dict
(
self
.
__dict__
)
d
=
self
.
__dict__
.
copy
(
)
d
.
pop
(
"lbp"
)
d
.
pop
(
"gwt"
)
return
d
...
...
bob/bio/face/preprocessor/FaceCrop.py
View file @
5e1e99e1
...
...
@@ -347,7 +347,7 @@ class FaceCrop(Base):
def
__getstate__
(
self
):
d
=
dict
(
self
.
__dict__
)
d
=
self
.
__dict__
.
copy
(
)
d
.
pop
(
"mask_rng"
)
d
.
pop
(
"cropper"
)
return
d
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment