Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.bio.vein
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.bio.vein
Commits
da405d2d
Commit
da405d2d
authored
2 years ago
by
André MAYORAZ
Browse files
Options
Downloads
Patches
Plain Diff
[db] Follow new database class format
parent
d6a34b66
No related branches found
No related tags found
1 merge request
!65
refactor for bob.bio.base!300
Pipeline
#67740
failed
2 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/bio/vein/database/utfvp.py
+9
-37
9 additions, 37 deletions
bob/bio/vein/database/utfvp.py
bob/bio/vein/database/verafinger_contactless.py
+9
-21
9 additions, 21 deletions
bob/bio/vein/database/verafinger_contactless.py
with
18 additions
and
58 deletions
bob/bio/vein/database/utfvp.py
+
9
−
37
View file @
da405d2d
...
...
@@ -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
"
,
]
This diff is collapsed.
Click to expand it.
bob/bio/vein/database/verafinger_contactless.py
+
9
−
21
View file @
da405d2d
...
...
@@ -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
"
,
]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment