Skip to content
Snippets Groups Projects
Commit 5e25cb0c authored by Olegs NIKISINS's avatar Olegs NIKISINS
Browse files

Added a few entry points for VideoFaceCrop and Grid

parent 82afb9b8
No related branches found
No related tags found
1 merge request!2LBP+SVM, IQM+SVM experiments and documentation
Pipeline #
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :
from bob.bio.base.grid import Grid
# Configuration to run on computation cluster:
idiap = Grid(
training_queue='32G',
number_of_preprocessing_jobs=32,
preprocessing_queue='4G-io-big',
number_of_extraction_jobs=32,
extraction_queue='8G-io-big',
number_of_projection_jobs=32,
projection_queue='8G-io-big',
number_of_enrollment_jobs=32,
enrollment_queue='8G-io-big',
number_of_scoring_jobs=50,
scoring_queue='8G-io-big',
)
# Configuration to run on user machines:
idiap_user_machines = Grid(
training_queue='32G',
number_of_preprocessing_jobs=32,
preprocessing_queue='4G',
number_of_extraction_jobs=32,
extraction_queue='8G',
number_of_projection_jobs=32,
projection_queue='8G',
number_of_enrollment_jobs=32,
enrollment_queue='8G',
number_of_scoring_jobs=50,
scoring_queue='8G',
)
#!/usr/bin/env python
from bob.pad.face.preprocessor import VideoFaceCrop
#=======================================================================================
# Define instances here:
cropped_image_size = (100, 100) # The size of the resulting face
cropped_positions = { 'topleft' : (0,0) , 'bottomright' : cropped_image_size}
fixed_positions = None
mask_sigma = None # The sigma for random values areas outside image
mask_neighbors = 5 # The number of neighbors to consider while extrapolating
mask_seed = None # The seed for generating random values during extrapolation
color_channel = 'gray' # Convert image to gray-scale format
video_face_crop_preproc_100_100 = VideoFaceCrop(cropped_image_size = cropped_image_size,
cropped_positions = cropped_positions,
fixed_positions = fixed_positions,
mask_sigma = mask_sigma,
mask_neighbors = mask_neighbors,
mask_seed = None,
color_channel = color_channel)
...@@ -93,10 +93,22 @@ setup( ...@@ -93,10 +93,22 @@ setup(
'version.py = bob.pad.face.script.version:main', 'version.py = bob.pad.face.script.version:main',
], ],
# registered databases:
'bob.pad.database': [ 'bob.pad.database': [
'replay = bob.pad.face.config.database.replay:database', 'replay = bob.pad.face.config.database.replay:database',
], ],
# registered preprocessors:
'bob.pad.preprocessor': [
'video-face-crop-preproc-100 = bob.pad.face.config.preprocessor.video_face_crop:video_face_crop_preproc_100_100',
],
# registered grid configurations:
'bob.pad.grid': [
'idiap = bob.pad.face.config.grid:idiap',
'idiap-user-machines = bob.pad.face.config.grid:idiap_user_machines',
],
}, },
# Classifiers are important if you plan to distribute this package through # Classifiers are important if you plan to distribute this package through
......
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