Commit 0578bf49 authored by Yannick DAYER's avatar Yannick DAYER

[py] Create main protocols config files, fix setup

Remove some protocols in verafinger,
Add some protocols in putvein and utfvp

Adapt setup.py to follow new structure

Fix some relative paths imports
parent 6866c8b1
Pipeline #44408 failed with stage
in 11 minutes and 43 seconds
# author: Yannick Dayer <yannick.dayer@idiap.ch>
# Fri 16 Oct 2020 14:50:51 UTC+02
# This is a config file for bob.bio.vein
# It defines the database protocol to use with the Database Interface for the
# VeraFinger dataset, defined ar bob.db.verafinger.
# It is defined as a resource in the setup file of this package.
# Usage:
# $ bob bio pipelines vanilla-biometrics <pipeline> Cropped-B verafinger
# or:
# $ bob bio pipelines vanilla-biometrics -p <pipeline> Cropped-B verafinger
# The protocol resource must be specified before the database resource.
protocol = 'Cropped-B'
# author: Yannick Dayer <yannick.dayer@idiap.ch>
# Fri 16 Oct 2020 14:50:54 UTC+02
# This is a config file for bob.bio.vein
# It defines the database protocol to use with the Database Interface for the
# VeraFinger dataset, defined ar bob.db.verafinger.
# It is defined as a resource in the setup file of this package.
# Usage:
# $ bob bio pipelines vanilla-biometrics <pipeline> Cropped-Fifty verafinger
# or:
# $ bob bio pipelines vanilla-biometrics -p <pipeline> Cropped-Fifty verafinger
# The protocol resource must be specified before the database resource.
protocol = 'Cropped-Fifty'
# author: Yannick Dayer <yannick.dayer@idiap.ch>
# Fri 16 Oct 2020 14:51:06 UTC+02
# This is a config file for bob.bio.vein
# It defines the database protocol to use with the Database Interface for the
# VeraFinger dataset, defined ar bob.db.verafinger.
# It is defined as a resource in the setup file of this package.
# Usage:
# $ bob bio pipelines vanilla-biometrics <pipeline> Fifty verafinger
# or:
# $ bob bio pipelines vanilla-biometrics -p <pipeline> Fifty verafinger
# The protocol resource must be specified before the database resource.
protocol = 'Fifty'
......@@ -3,7 +3,7 @@
# This is a config file for bob.bio.vein
# It defines the database protocol to use with the Database Interface for the
# 3D Fingervein dataset, defined ar bob.db.fv3d.
# 3D Fingervein dataset, defined at bob.db.fv3d.
# It is defined as a resource in the setup file of this package.
......@@ -14,6 +14,10 @@
# The protocol resource must be specified before the database resource.
# Available protocols are:
# 'central', 'left', 'right', 'stitched'
# This will be the default protocol if none is specified.
protocol = 'central'
......@@ -3,7 +3,7 @@
# This is a config file for bob.bio.vein
# It defines the database protocol to use with the Database Interface for the
# 3D Fingervein dataset, defined ar bob.db.fv3d.
# 3D Fingervein dataset, defined at bob.db.fv3d.
# It is defined as a resource in the setup file of this package.
......@@ -14,4 +14,8 @@
# The protocol resource must be specified before the database resource.
# Available protocols are:
# 'central', 'left', 'right', 'stitched'
protocol = 'left'
......@@ -3,7 +3,7 @@
# This is a config file for bob.bio.vein
# It defines the database protocol to use with the Database Interface for the
# 3D Fingervein dataset, defined ar bob.db.fv3d.
# 3D Fingervein dataset, defined at bob.db.fv3d.
# It is defined as a resource in the setup file of this package.
......@@ -14,4 +14,8 @@
# The protocol resource must be specified before the database resource.
# Available protocols are:
# 'central', 'left', 'right', 'stitched'
protocol = 'right'
......@@ -3,7 +3,7 @@
# This is a config file for bob.bio.vein
# It defines the database protocol to use with the Database Interface for the
# 3D Fingervein dataset, defined ar bob.db.fv3d.
# 3D Fingervein dataset, defined at bob.db.fv3d.
# It is defined as a resource in the setup file of this package.
......@@ -14,4 +14,8 @@
# The protocol resource must be specified before the database resource.
# Available protocols are:
# 'central', 'left', 'right', 'stitched'
protocol = 'stitched'
# author: Yannick Dayer <yannick.dayer@idiap.ch>
# Wed 21 Oct 2020 11:27:19 UTC+02
# This is a config file for bob.bio.vein
# It defines the database protocol to use with the Database Interface for the
# Put Vein dataset, defined at bob.db.putvein.
# It is defined as a resource in the setup file of this package.
# Usage:
# $ bob bio pipelines vanilla-biometrics <pipeline> wrist-LR-1 putvein
# or:
# $ bob bio pipelines vanilla-biometrics -p <pipeline> wrist-LR-1 putvein
# The protocol resource must be specified before the database resource.
# Available protocols are (some require the creation of your own config file):
# 'palm-L_1', 'palm-LR_1', 'palm-R_1', 'palm-RL_1', 'palm-R_BEAT_1',
# 'palm-L_4', 'palm-LR_4', 'palm-R_4', 'palm-RL_4', 'palm-R_BEAT_4',
# 'wrist-L_1', 'wrist-LR_1', 'wrist-R_1', 'wrist-RL_1', 'wrist-R_BEAT_1',
# 'wrist-L_4', 'wrist-LR_4', 'wrist-R_4', 'wrist-RL_4', 'wrist-R_BEAT_4'
protocol = 'palm-LR_1'
# author: Yannick Dayer <yannick.dayer@idiap.ch>
# Wed 21 Oct 2020 11:27:19 UTC+02
# This is a config file for bob.bio.vein
# It defines the database protocol to use with the Database Interface for the
# Put Vein dataset, defined at bob.db.putvein.
# It is defined as a resource in the setup file of this package.
# Usage:
# $ bob bio pipelines vanilla-biometrics <pipeline> wrist-LR-1 putvein
# or:
# $ bob bio pipelines vanilla-biometrics -p <pipeline> wrist-LR-1 putvein
# The protocol resource must be specified before the database resource.
# Available protocols are (some require the creation of your own config file):
# 'palm-L_1', 'palm-LR_1', 'palm-R_1', 'palm-RL_1', 'palm-R_BEAT_1',
# 'palm-L_4', 'palm-LR_4', 'palm-R_4', 'palm-RL_4', 'palm-R_BEAT_4',
# 'wrist-L_1', 'wrist-LR_1', 'wrist-R_1', 'wrist-RL_1', 'wrist-R_BEAT_1',
# 'wrist-L_4', 'wrist-LR_4', 'wrist-R_4', 'wrist-RL_4', 'wrist-R_BEAT_4'
protocol = 'palm-LR_4'
# author: Yannick Dayer <yannick.dayer@idiap.ch>
# Wed 21 Oct 2020 11:27:08 UTC+02
# This is a config file for bob.bio.vein
# It defines the database protocol to use with the Database Interface for the
# Put Vein dataset, defined at bob.db.putvein.
# It is defined as a resource in the setup file of this package.
# Usage:
# $ bob bio pipelines vanilla-biometrics <pipeline> wrist-LR-1 putvein
# or:
# $ bob bio pipelines vanilla-biometrics -p <pipeline> wrist-LR-1 putvein
# The protocol resource must be specified before the database resource.
# Available protocols are (some require the creation of your own config file):
# 'palm-L_1', 'palm-LR_1', 'palm-R_1', 'palm-RL_1', 'palm-R_BEAT_1',
# 'palm-L_4', 'palm-LR_4', 'palm-R_4', 'palm-RL_4', 'palm-R_BEAT_4',
# 'wrist-L_1', 'wrist-LR_1', 'wrist-R_1', 'wrist-RL_1', 'wrist-R_BEAT_1',
# 'wrist-L_4', 'wrist-LR_4', 'wrist-R_4', 'wrist-RL_4', 'wrist-R_BEAT_4'
# This will be the default protocol if none is specified.
protocol = 'wrist-LR_1'
# author: Yannick Dayer <yannick.dayer@idiap.ch>
# Wed 21 Oct 2020 11:27:00 UTC+02
# This is a config file for bob.bio.vein
# It defines the database protocol to use with the Database Interface for the
# Put Vein dataset, defined at bob.db.putvein.
# It is defined as a resource in the setup file of this package.
# Usage:
# $ bob bio pipelines vanilla-biometrics <pipeline> wrist-LR-1 putvein
# or:
# $ bob bio pipelines vanilla-biometrics -p <pipeline> wrist-LR-1 putvein
# The protocol resource must be specified before the database resource.
# Available protocols are (some require the creation of your own config file):
# 'palm-L_1', 'palm-LR_1', 'palm-R_1', 'palm-RL_1', 'palm-R_BEAT_1',
# 'palm-L_4', 'palm-LR_4', 'palm-R_4', 'palm-RL_4', 'palm-R_BEAT_4',
# 'wrist-L_1', 'wrist-LR_1', 'wrist-R_1', 'wrist-RL_1', 'wrist-R_BEAT_1',
# 'wrist-L_4', 'wrist-LR_4', 'wrist-R_4', 'wrist-RL_4', 'wrist-R_BEAT_4'
protocol = 'wrist-LR_4'
# author: Yannick Dayer <yannick.dayer@idiap.ch>
# Fri 16 Oct 2020 14:50:47 UTC+02
# Wed 21 Oct 2020 10:32:56 UTC+02
# This is a config file for bob.bio.vein
# It defines the database protocol to use with the Database Interface for the
# VeraFinger dataset, defined ar bob.db.verafinger.
# utfvp dataset, defined at bob.db.utfvp.
# It is defined as a resource in the setup file of this package.
# Usage:
# $ bob bio pipelines vanilla-biometrics <pipeline> B verafinger
# $ bob bio pipelines vanilla-biometrics <pipeline> full utfvp
# or:
# $ bob bio pipelines vanilla-biometrics -p <pipeline> B verafinger
# $ bob bio pipelines vanilla-biometrics -p <pipeline> full utfvp
# The protocol resource must be specified before the database resource.
protocol = 'B'
# Available protocols are (some require the creation of your own config file):
# '1vsall', 'full', 'fullLeftIndex', 'fullLeftMiddle', 'fullLeftRing',
# 'fullRightIndex', 'fullRightMiddle', 'fullRightRing', 'nom', 'nomLeftIndex',
# 'nomLeftMiddle', 'nomLeftRing', 'nomRightIndex', 'nomRightMiddle',
# 'nomRightRing'
protocol = 'full'
# author: Yannick Dayer <yannick.dayer@idiap.ch>
# Wed 21 Oct 2020 10:30:22 UTC+02
# This is a config file for bob.bio.vein
# It defines the database protocol to use with the Database Interface for the
# utfvp dataset, defined at bob.db.utfvp.
# It is defined as a resource in the setup file of this package.
# Usage:
# $ bob bio pipelines vanilla-biometrics <pipeline> nom utfvp
# or:
# $ bob bio pipelines vanilla-biometrics -p <pipeline> nom utfvp
# The protocol resource must be specified before the database resource.
# Available protocols are (some require the creation of your own config file):
# '1vsall', 'full', 'fullLeftIndex', 'fullLeftMiddle', 'fullLeftRing',
# 'fullRightIndex', 'fullRightMiddle', 'fullRightRing', 'nom', 'nomLeftIndex',
# 'nomLeftMiddle', 'nomLeftRing', 'nomRightIndex', 'nomRightMiddle',
# 'nomRightRing'
# This will be the default protocol if none is specified.
protocol = 'nom'
# author: Yannick Dayer <yannick.dayer@idiap.ch>
# Wed 21 Oct 2020 10:34:41 UTC+02
# This is a config file for bob.bio.vein
# It defines the database protocol to use with the Database Interface for the
# utfvp dataset, defined at bob.db.utfvp.
# It is defined as a resource in the setup file of this package.
# Usage:
# $ bob bio pipelines vanilla-biometrics <pipeline> 1vsall utfvp
# or:
# $ bob bio pipelines vanilla-biometrics -p <pipeline> 1vsall utfvp
# The protocol resource must be specified before the database resource.
# Available protocols are (some require the creation of your own config file):
# '1vsall', 'full', 'fullLeftIndex', 'fullLeftMiddle', 'fullLeftRing',
# 'fullRightIndex', 'fullRightMiddle', 'fullRightRing', 'nom', 'nomLeftIndex',
# 'nomLeftMiddle', 'nomLeftRing', 'nomRightIndex', 'nomRightMiddle',
# 'nomRightRing'
protocol = 'full'
......@@ -3,7 +3,7 @@
# This is a config file for bob.bio.vein
# It defines the database protocol to use with the Database Interface for the
# VeraFinger dataset, defined ar bob.db.verafinger.
# VeraFinger dataset, defined at bob.db.verafinger.
# It is defined as a resource in the setup file of this package.
......@@ -14,4 +14,9 @@
# The protocol resource must be specified before the database resource.
protocol = 'Cropped-Fifty'
# Available protocols are (some require the creation of your own config file):
# 'B', 'Cropped-B', 'Cropped-Fifty', 'Cropped-Full', 'Cropped-Nom', 'Fifty',
# 'Full', 'Nom'
protocol = 'Cropped-Full'
......@@ -3,7 +3,7 @@
# This is a config file for bob.bio.vein
# It defines the database protocol to use with the Database Interface for the
# VeraFinger dataset, defined ar bob.db.verafinger.
# VeraFinger dataset, defined at bob.db.verafinger.
# It is defined as a resource in the setup file of this package.
......@@ -14,4 +14,9 @@
# The protocol resource must be specified before the database resource.
protocol = 'cropped-Nom'
# Available protocols are (some require the creation of your own config file):
# 'B', 'Cropped-B', 'Cropped-Fifty', 'Cropped-Full', 'Cropped-Nom', 'Fifty',
# 'Full', 'Nom'
protocol = 'Cropped-Nom'
......@@ -3,7 +3,7 @@
# This is a config file for bob.bio.vein
# It defines the database protocol to use with the Database Interface for the
# VeraFinger dataset, defined ar bob.db.verafinger.
# VeraFinger dataset, defined at bob.db.verafinger.
# It is defined as a resource in the setup file of this package.
......@@ -14,4 +14,9 @@
# The protocol resource must be specified before the database resource.
# Available protocols are (some require the creation of your own config file):
# 'B', 'Cropped-B', 'Cropped-Fifty', 'Cropped-Full', 'Cropped-Nom', 'Fifty',
# 'Full', 'Nom'
protocol = 'Full'
......@@ -3,7 +3,7 @@
# This is a config file for bob.bio.vein
# It defines the database protocol to use with the Database Interface for the
# VeraFinger dataset, defined ar bob.db.verafinger.
# VeraFinger dataset, defined at bob.db.verafinger.
# It is defined as a resource in the setup file of this package.
......@@ -14,6 +14,11 @@
# The protocol resource must be specified before the database resource.
# Available protocols are (some require the creation of your own config file):
# 'B', 'Cropped-B', 'Cropped-Fifty', 'Cropped-Full', 'Cropped-Nom', 'Fifty',
# 'Full', 'Nom'
# This will be the default protocol if none is specified.
protocol = 'Nom'
......@@ -136,9 +136,9 @@ def main(user_input=None):
sys.exit(e)
if args['<database>'] == 'fv3d':
from ..configurations.fv3d import database as db
from bob.bio.vein.config.fv3d import database as db
elif args['<database>'] == 'verafinger':
from ..configurations.verafinger import database as db
from bob.bio.vein.config.verafinger import database as db
else:
raise schema.SchemaError('Database %s is not supported' % \
args['<database>'])
......
......@@ -219,9 +219,9 @@ def main(user_input=None):
sys.exit(e)
if args['<database>'] == 'fv3d':
from ..configurations.fv3d import database as db
from bob.bio.vein.config.fv3d import database as db
elif args['<database>'] == 'verafinger':
from ..configurations.verafinger import database as db
from bob.bio.vein.config.verafinger import database as db
database_replacement = "%s/.bob_bio_databases.txt" % os.environ["HOME"]
db.replace_directories(database_replacement)
......
......@@ -270,9 +270,9 @@ def main(user_input=None):
sys.exit(e)
if args['<database>'] == 'fv3d':
from ..configurations.fv3d import database as db
from bob.bio.vein.config.fv3d import database as db
elif args['<database>'] == 'verafinger':
from ..configurations.verafinger import database as db
from bob.bio.vein.config.verafinger import database as db
database_replacement = "%s/.bob_bio_databases.txt" % os.environ["HOME"]
db.replace_directories(database_replacement)
......
......@@ -32,55 +32,55 @@ setup(
entry_points={
'bob.bio.config': [
# protocols TODO: add all protocols
# protocols (must be specified before the database in the cmd)
# verafinger
'Nom = bob.bio.vein.configurations.database.protocol.Nom',
'Cropped-Nom = bob.bio.vein.configurations.database.protocol.cropped_Nom',
'B = bob.bio.vein.configurations.database.protocol.b',
'Cropped-B = bob.bio.vein.configurations.database.protocol.cropped_b',
'Full = bob.bio.vein.configurations.database.protocol.full',
'Cropped-Full = bob.bio.vein.configurations.database.protocol.cropped_full',
'Fifty = bob.bio.vein.configurations.database.protocol.fifty',
'Cropped-Fifty = bob.bio.vein.configurations.database.protocol.cropped_fifty',
'Nom = bob.bio.vein.config.database.protocol_verafinger.nom',
'Cropped-Nom = bob.bio.vein.config.database.protocol_verafinger.cropped_nom',
'Full = bob.bio.vein.config.database.protocol_verafinger.full',
'Cropped-Full = bob.bio.vein.config.database.protocol_verafinger.cropped_full',
# utfvp
# 'nom = bob.bio.vein.configurations.database.protocol.nom',
'nom = bob.bio.vein.config.database.protocol_utfvp.nom',
'full = bob.bio.vein.config.database.protocol_utfvp.full',
'1vsall = bob.bio.vein.config.database.protocol_utfvp.one_vs_all',
# fv3d
'central = bob.bio.vein.configurations.database.protocol.central',
'left = bob.bio.vein.configurations.database.protocol.left',
'right = bob.bio.vein.configurations.database.protocol.right',
'stitched = bob.bio.vein.configurations.database.protocol.stitched',
'central = bob.bio.vein.config.database.protocol_fv3d.central',
'left = bob.bio.vein.config.database.protocol_fv3d.left',
'right = bob.bio.vein.config.database.protocol_fv3d.right',
'stitched = bob.bio.vein.config.database.protocol_fv3d.stitched',
# putvein
# 'wrist-LR_1 = bob.bio.vein.configurations.database.protocol.wristLR_1',
# TODO That will be a LOT of protocols, for putvein...
'wrist-LR-1 = bob.bio.vein.config.database.protocol_putvein.wrist_lr_1',
'wrist-LR-4 = bob.bio.vein.config.database.protocol_putvein.wrist_lr_4',
'palm-LR-1 = bob.bio.vein.config.database.protocol_putvein.palm_lr_1',
'palm-LR-4 = bob.bio.vein.config.database.protocol_putvein.palm_lr_4',
# legacy databases
'verafinger = bob.bio.vein.configurations.database.verafinger',
'utfvp = bob.bio.vein.configurations.database.utfvp',
'fv3d = bob.bio.vein.configurations.database.fv3d',
'putvein = bob.bio.vein.configurations.database.putvein',
'verafinger = bob.bio.vein.config.database.verafinger',
'utfvp = bob.bio.vein.config.database.utfvp',
'fv3d = bob.bio.vein.config.database.fv3d',
'putvein = bob.bio.vein.config.database.putvein',
# legacy baselines
'mc = bob.bio.vein.configurations.maximum_curvature',
'rlt = bob.bio.vein.configurations.repeated_line_tracking',
'wld = bob.bio.vein.configurations.wide_line_detector',
'mc = bob.bio.vein.config.maximum_curvature',
'rlt = bob.bio.vein.config.repeated_line_tracking',
'wld = bob.bio.vein.config.wide_line_detector',
# other (legacy)
'parallel = bob.bio.vein.configurations.parallel',
'gridio4g48 = bob.bio.vein.configurations.gridio4g48',
'grid = bob.bio.vein.configurations.gridio4g48',
'parallel = bob.bio.vein.config.parallel',
'gridio4g48 = bob.bio.vein.config.gridio4g48',
'grid = bob.bio.vein.config.gridio4g48',
],
'bob.bio.database': [
'verafinger = bob.bio.vein.configurations.database.verafinger:database',
'utfvp = bob.bio.vein.configurations.database.utfvp:database',
'fv3d = bob.bio.vein.configurations.database.fv3d:database',
'putvein = bob.bio.vein.configurations.database.putvein:database',
'verafinger = bob.bio.vein.config.database.verafinger:database',
'utfvp = bob.bio.vein.config.database.utfvp:database',
'fv3d = bob.bio.vein.config.database.fv3d:database',
'putvein = bob.bio.vein.config.database.putvein:database',
],
'bob.bio.pipeline': [
'wld = bob.bio.vein.configurations.wide_line_detector:pipeline',
'mc = bob.bio.vein.configurations.maximum_curvature:pipeline',
'rlt = bob.bio.vein.configurations.repeated_line_tracking:pipeline',
'wld = bob.bio.vein.config.wide_line_detector:pipeline',
'mc = bob.bio.vein.config.maximum_curvature:pipeline',
'rlt = bob.bio.vein.config.repeated_line_tracking:pipeline',
],
'console_scripts': [
......
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