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
cc5c340e
Commit
cc5c340e
authored
5 years ago
by
Tiago de Freitas Pereira
Browse files
Options
Downloads
Patches
Plain Diff
[dask] Making some entry-points picklable
parent
6e65c5db
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!64
Dask pipelines
,
!63
WIP: Facecrop as functools
Pipeline
#37645
failed
5 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/bio/face/config/preprocessor/face_detect.py
+3
-2
3 additions, 2 deletions
bob/bio/face/config/preprocessor/face_detect.py
with
3 additions
and
2 deletions
bob/bio/face/config/preprocessor/face_detect.py
+
3
−
2
View file @
cc5c340e
#!/usr/bin/env python
import
bob.bio.face
import
functools
# Detects the face and eye landmarks crops it using the detected eyes
preprocessor
=
bob
.
bio
.
face
.
preprocessor
.
FaceDetect
(
preprocessor
=
functools
.
partial
(
bob
.
bio
.
face
.
preprocessor
.
FaceDetect
,
face_cropper
=
'
face-crop-eyes
'
,
use_flandmark
=
True
)
# Detects the face amd crops it without eye detection
preprocessor_no_eyes
=
bob
.
bio
.
face
.
preprocessor
.
FaceDetect
(
preprocessor_no_eyes
=
functools
.
partial
(
bob
.
bio
.
face
.
preprocessor
.
FaceDetect
,
face_cropper
=
'
face-crop-eyes
'
,
use_flandmark
=
False
)
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