Skip to content
Snippets Groups Projects
Commit cc5c340e authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

[dask] Making some entry-points picklable

parent 6e65c5db
No related branches found
No related tags found
2 merge requests!64Dask pipelines,!63WIP: Facecrop as functools
Pipeline #37645 failed
#!/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
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment