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
34a6ea0a
Commit
34a6ea0a
authored
5 years ago
by
Tiago de Freitas Pereira
Browse files
Options
Downloads
Patches
Plain Diff
Fixed mistake with the face cropper
parent
87f0ff11
No related branches found
No related tags found
1 merge request
!64
Dask pipelines
Pipeline
#39214
failed
5 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/bio/face/preprocessor/INormLBP.py
+1
-1
1 addition, 1 deletion
bob/bio/face/preprocessor/INormLBP.py
bob/bio/face/preprocessor/utils.py
+2
-0
2 additions, 0 deletions
bob/bio/face/preprocessor/utils.py
with
3 additions
and
1 deletion
bob/bio/face/preprocessor/INormLBP.py
+
1
−
1
View file @
34a6ea0a
...
@@ -77,7 +77,7 @@ class INormLBP(Base):
...
@@ -77,7 +77,7 @@ class INormLBP(Base):
self
.
radius
=
radius
self
.
radius
=
radius
self
.
is_circular
=
is_circular
self
.
is_circular
=
is_circular
self
.
compare_to_average
=
compare_to_average
self
.
compare_to_average
=
compare_to_average
self
.
elbp_type
=
elbp_type
self
.
elbp_type
=
elbp_type
self
.
cropper
=
load_cropper
(
face_cropper
)
self
.
cropper
=
load_cropper
(
face_cropper
)
self
.
_init_non_pickables
()
self
.
_init_non_pickables
()
...
...
This diff is collapsed.
Click to expand it.
bob/bio/face/preprocessor/utils.py
+
2
−
0
View file @
34a6ea0a
...
@@ -10,6 +10,8 @@ def load_cropper(face_cropper):
...
@@ -10,6 +10,8 @@ def load_cropper(face_cropper):
cropper
=
None
cropper
=
None
elif
isinstance
(
face_cropper
,
six
.
string_types
):
elif
isinstance
(
face_cropper
,
six
.
string_types
):
cropper
=
bob
.
bio
.
base
.
load_resource
(
face_cropper
,
"
preprocessor
"
)
cropper
=
bob
.
bio
.
base
.
load_resource
(
face_cropper
,
"
preprocessor
"
)
elif
isinstance
(
face_cropper
,
(
FaceCrop
,
FaceDetect
)):
cropper
=
face_cropper
else
:
else
:
raise
ValueError
(
"
The given face cropper type is not understood
"
)
raise
ValueError
(
"
The given face cropper type is not understood
"
)
...
...
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