Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.bio.face
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.face
Commits
be046ae2
Commit
be046ae2
authored
3 years ago
by
Tiago de Freitas Pereira
Browse files
Options
Downloads
Patches
Plain Diff
FRGC dataset
parent
d493de11
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bob/bio/face/database/__init__.py
+2
-0
2 additions, 0 deletions
bob/bio/face/database/__init__.py
bob/bio/face/database/frgc.py
+63
-0
63 additions, 0 deletions
bob/bio/face/database/frgc.py
bob/bio/face/test/test_databases.py
+21
-0
21 additions, 0 deletions
bob/bio/face/test/test_databases.py
with
86 additions
and
0 deletions
bob/bio/face/database/__init__.py
+
2
−
0
View file @
be046ae2
...
@@ -12,6 +12,7 @@ from .multipie import MultipieDatabase
...
@@ -12,6 +12,7 @@ from .multipie import MultipieDatabase
from
.ijbc
import
IJBCDatabase
from
.ijbc
import
IJBCDatabase
from
.replaymobile
import
ReplayMobileBioDatabase
from
.replaymobile
import
ReplayMobileBioDatabase
from
.fargo
import
FargoBioDatabase
from
.fargo
import
FargoBioDatabase
from
.frgc
import
FRGCDatabase
from
.meds
import
MEDSDatabase
from
.meds
import
MEDSDatabase
from
.morph
import
MorphDatabase
from
.morph
import
MorphDatabase
from
.casia_africa
import
CasiaAfricaDatabase
from
.casia_africa
import
CasiaAfricaDatabase
...
@@ -52,5 +53,6 @@ __appropriate__(
...
@@ -52,5 +53,6 @@ __appropriate__(
CasiaAfricaDatabase
,
CasiaAfricaDatabase
,
PolaThermalDatabase
,
PolaThermalDatabase
,
CBSRNirVis2Database
,
CBSRNirVis2Database
,
FRGCDatabase
,
)
)
__all__
=
[
_
for
_
in
dir
()
if
not
_
.
startswith
(
"
_
"
)]
__all__
=
[
_
for
_
in
dir
()
if
not
_
.
startswith
(
"
_
"
)]
This diff is collapsed.
Click to expand it.
bob/bio/face/database/frgc.py
0 → 100644
+
63
−
0
View file @
be046ae2
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :
# Tiago de Freitas Pereira <tiago.pereira@idiap.ch>
"""
Multipie database implementation
"""
from
bob.bio.base.database
import
CSVDataset
from
bob.bio.base.database
import
CSVToSampleLoaderBiometrics
from
bob.bio.face.database.sample_loaders
import
EyesAnnotations
from
bob.extension
import
rc
from
bob.extension.download
import
get_file
import
bob.io.base
from
sklearn.pipeline
import
make_pipeline
class
FRGCDatabase
(
CSVDataset
):
"""
Face Recognition Grand Test dataset
"""
def
__init__
(
self
,
protocol
):
# Downloading model if not exists
urls
=
FRGCDatabase
.
urls
()
filename
=
get_file
(
"
frgc.tar.gz
"
,
urls
,
file_hash
=
"
328d2c71ae19a41679defa9585b3140f
"
)
self
.
annotation_type
=
"
eyes-center
"
self
.
fixed_positions
=
None
super
().
__init__
(
filename
,
protocol
,
csv_to_sample_loader
=
make_pipeline
(
CSVToSampleLoaderBiometrics
(
data_loader
=
bob
.
io
.
base
.
load
,
dataset_original_directory
=
rc
[
"
bob.db.frgc.directory
"
]
if
rc
[
"
bob.db.frgc.directory
"
]
else
""
,
extension
=
"
.JPG
"
,
),
EyesAnnotations
(),
),
)
@staticmethod
def
protocols
():
# TODO: Until we have (if we have) a function that dumps the protocols, let's use this one.
return
[
"
2.0.1
"
,
"
2.0.2
"
,
"
2.0.3
"
,
]
@staticmethod
def
urls
():
return
[
"
https://www.idiap.ch/software/bob/databases/latest/frgc.tar.gz
"
,
"
http://www.idiap.ch/software/bob/databases/latest/frgc.tar.gz
"
,
]
This diff is collapsed.
Click to expand it.
bob/bio/face/test/test_databases.py
+
21
−
0
View file @
be046ae2
...
@@ -408,6 +408,27 @@ def test_casia_africa():
...
@@ -408,6 +408,27 @@ def test_casia_africa():
assert
len
(
database
.
probes
())
==
2426
assert
len
(
database
.
probes
())
==
2426
def
test_frgc
():
from
bob.bio.face.database
import
FRGCDatabase
database
=
FRGCDatabase
(
"
2.0.1
"
)
assert
len
(
database
.
background_model_samples
())
==
12776
assert
len
(
database
.
references
())
==
7572
assert
len
(
database
.
probes
())
==
8456
database
=
FRGCDatabase
(
"
2.0.2
"
)
assert
len
(
database
.
background_model_samples
())
==
12776
assert
len
(
database
.
references
())
==
1893
assert
len
(
database
.
probes
())
==
8456
database
=
FRGCDatabase
(
"
2.0.4
"
)
assert
len
(
database
.
background_model_samples
())
==
12776
assert
len
(
database
.
references
())
==
7572
assert
len
(
database
.
probes
())
==
4228
def
test_polathermal
():
def
test_polathermal
():
from
bob.bio.face.database
import
PolaThermalDatabase
from
bob.bio.face.database
import
PolaThermalDatabase
...
...
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