Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.pad.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.pad.face
Commits
83e7a7d6
Commit
83e7a7d6
authored
6 years ago
by
Guillaume HEUSCH
Browse files
Options
Downloads
Patches
Plain Diff
[config] added config for maskattack db
parent
da1e8cb8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!72
Add maskattack db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/pad/face/config/maskattack.py
+45
-0
45 additions, 0 deletions
bob/pad/face/config/maskattack.py
with
45 additions
and
0 deletions
bob/pad/face/config/maskattack.py
0 → 100644
+
45
−
0
View file @
83e7a7d6
#!/usr/bin/env python
"""
`MSU MFSD`_ is a database for face PAD experiments.
Database created at MSU, for face-PAD experiments. The public version of the database contains
280 videos corresponding to 35 clients. The videos are grouped as
'
genuine
'
and
'
attack
'
.
The attack videos have been constructed from the genuine ones,
and consist of three kinds: print, iPad (video-replay), and iPhone (video-replay).
Face-locations are also provided for each frame of each video, but some (6 videos) face-locations are not reliable,
because the videos are not correctly oriented.
The reference citation is [WHJ15]_.
You can download the raw data of the `MSU MFSD`_ database by following
the link.
.. include:: links.rst
"""
from
bob.pad.face.database
import
MaskAttackPadDatabase
# Directory where the data files are stored.
# This directory is given in the .bob_bio_databases.txt file located in your home directory
original_directory
=
"
[YOUR_MASK_ATTACK_DIRECTORY]
"
"""
Value of ``~/.bob_bio_databases.txt`` for this database
"""
original_extension
=
"
.avi
"
# extension is not used to load the data in the HLDI of this database
database
=
MaskAttackPadDatabase
(
protocol
=
'
classification
'
,
original_directory
=
original_directory
,
original_extension
=
original_extension
,
)
"""
The :py:class:`bob.pad.base.database.PadDatabase` derivative with MSU MFSD
database settings.
.. warning::
This class only provides a programmatic interface to load data in an orderly
manner, respecting usage protocols. It does **not** contain the raw
data files. You should procure those yourself.
Notice that ``original_directory`` is set to ``[YOUR_MSU_MFSD_DIRECTORY]``.
You must make sure to create ``${HOME}/.bob_bio_databases.txt`` setting this
value to the place where you actually installed the Replay-Mobile Database, as
explained in the section :ref:`bob.pad.face.baselines`.
"""
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