Commit cc5c340e authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

[dask] Making some entry-points picklable

parent 6e65c5db
Pipeline #37645 failed with stage
in 6 minutes and 46 seconds
#!/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
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment