Skip to content
Snippets Groups Projects
Commit da405d2d authored by André MAYORAZ's avatar André MAYORAZ
Browse files

[db] Follow new database class format

parent d6a34b66
No related branches found
No related tags found
1 merge request!65refactor for bob.bio.base!300
Pipeline #67740 failed
......@@ -154,19 +154,19 @@ class UtfvpDatabase(CSVDatabase):
that generated the model being matched. So, there are 1299 probes per model.
"""
name = "utfvp"
category = "vein"
dataset_protocols_name = "utfvp.tar.gz"
dataset_protocols_urls = [
"https://www.idiap.ch/software/bob/databases/latest/vein/utfvp-fe51ba85.tar.gz",
"http://www.idiap.ch/software/bob/databases/latest/vein/utfvp-fe51ba85.tar.gz",
]
dataset_protocols_hash = "fe51ba85"
def __init__(self, protocol):
# Downloading model if not exists
urls = UtfvpDatabase.urls()
filename = get_file(
"utfvp.tar.gz",
urls,
file_hash="fe51ba85",
)
super().__init__(
name="utfvp",
dataset_protocols_path=filename,
name=self.name,
protocol=protocol,
transformer=make_pipeline(
FileSampleLoader(
......@@ -180,31 +180,3 @@ class UtfvpDatabase(CSVDatabase):
),
score_all_vs_all=True,
)
@staticmethod
def protocols():
# TODO: Until we have (if we have) a function that dumps the protocols, let's use this one.
return [
"nom",
"full",
"1vsall",
"nomLeftRing",
"nomRightRing",
"nomLeftMiddle",
"nomRightMiddle",
"nomLeftIndex",
"nomRightIndex",
"fullLeftRing",
"fullRightRing",
"fullLeftMiddle",
"fullRightMiddle",
"fullLeftIndex",
"fullRightIndex",
]
@staticmethod
def urls():
return [
"https://www.idiap.ch/software/bob/databases/latest/vein/utfvp-fe51ba85.tar.gz",
"http://www.idiap.ch/software/bob/databases/latest/vein/utfvp-fe51ba85.tar.gz",
]
......@@ -50,18 +50,18 @@ class VerafingerContactless(CSVDatabase):
* Probes : session 3, 4 &5
"""
name = "verafinger_contactless"
category = "vein"
dataset_protocols_name = "verafinger_contactless.tar.gz"
dataset_protocols_urls = [
"https://www.idiap.ch/software/bob/databases/latest/vein/verafinger_contactless-656ef935.tar.gz",
"http://www.idiap.ch/software/bob/databases/latest/vein/verafinger_contactless-656ef935.tar.gz",
]
dataset_protocols_hash = "656ef935"
def __init__(self, protocol):
urls = VerafingerContactless.urls()
filename = get_file(
"verafinger_contactless.tar.gz",
urls,
file_hash="656ef935",
)
super().__init__(
name="verafinger_contactless",
dataset_protocols_path=filename,
name=self.name,
protocol=protocol,
transformer=FileSampleLoader(
data_loader=bob.io.base.load,
......@@ -72,15 +72,3 @@ class VerafingerContactless(CSVDatabase):
),
score_all_vs_all=True,
)
@staticmethod
def protocols():
# TODO: Until we have (if we have) a function that dumps the protocols, let's use this one.
return ["nom"]
@staticmethod
def urls():
return [
"https://www.idiap.ch/software/bob/databases/latest/vein/verafinger_contactless-656ef935.tar.gz",
"http://www.idiap.ch/software/bob/databases/latest/vein/verafinger_contactless-656ef935.tar.gz",
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment