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
7c03658e
Commit
7c03658e
authored
Apr 13, 2021
by
Xinyi ZHANG
Committed by
Tiago de Freitas Pereira
Jun 01, 2021
Browse files
”chang_gpu”
parent
902cbe59
Changes
4
Hide whitespace changes
Inline
Side-by-side
bob/bio/face/extractor/opencv_caffe.py
View file @
7c03658e
...
...
@@ -40,15 +40,14 @@ class opencv_model(TransformerMixin, BaseEstimator):
.. note::
This structure only can be used for CAFFE pretrained model.
**Parameters:**
use_gpu: True or False.
"""
def
__init__
(
self
,
use_gpu
=
False
,
**
kwargs
):
def
__init__
(
self
,
**
kwargs
):
super
().
__init__
(
**
kwargs
)
self
.
model
=
None
self
.
use_gpu
=
use_gpu
internal_path
=
pkg_resources
.
resource_filename
(
__name__
,
os
.
path
.
join
(
"data"
,
"opencv_model"
),
...
...
bob/bio/face/extractor/pytorch_model.py
View file @
7c03658e
...
...
@@ -28,14 +28,13 @@ class pytorch_loaded_model(TransformerMixin, BaseEstimator):
The extracted features can be combined with different the algorithms.
**Parameters:**
use_gpu: True or False.
"""
def
__init__
(
self
,
use_gpu
=
False
,
**
kwargs
):
def
__init__
(
self
,
**
kwargs
):
super
().
__init__
(
**
kwargs
)
self
.
model
=
None
self
.
use_gpu
=
use_gpu
internal_path
=
pkg_resources
.
resource_filename
(
__name__
,
os
.
path
.
join
(
"data"
,
"resnet"
),
...
...
@@ -109,10 +108,9 @@ class pytorch_library_model(TransformerMixin, BaseEstimator):
use_gpu: True or False.
"""
def
__init__
(
self
,
model
=
None
,
use_gpu
=
False
,
**
kwargs
):
def
__init__
(
self
,
model
=
None
,
**
kwargs
):
super
().
__init__
(
**
kwargs
)
self
.
model
=
model
self
.
use_gpu
=
use_gpu
internal_path
=
pkg_resources
.
resource_filename
(
__name__
,
os
.
path
.
join
(
"data"
,
"resnet"
),
...
...
bob/bio/face/extractor/tf_model.py
View file @
7c03658e
...
...
@@ -29,14 +29,11 @@ class tf_model(TransformerMixin, BaseEstimator):
The extracted features can be combined with different the algorithms.
**Parameters:**
use_gpu: True or False.
"""
def
__init__
(
self
,
use_gpu
=
False
,
**
kwargs
):
def
__init__
(
self
,
**
kwargs
):
super
().
__init__
(
**
kwargs
)
self
.
model
=
None
self
.
use_gpu
=
use_gpu
internal_path
=
pkg_resources
.
resource_filename
(
__name__
,
os
.
path
.
join
(
"data"
,
"resnet"
),
...
...
conda/meta.yaml
View file @
7c03658e
...
...
@@ -43,8 +43,6 @@ requirements:
-
scikit-image {{ scikit_image }}
-
six {{ six }}
-
tensorflow {{ tensorflow }}
# [linux]
-
mxnet {{ mxnet }}
-
opencv-pyrhon {{ opencv_python }}
run
:
-
python
-
setuptools
...
...
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