Skip to content
Snippets Groups Projects
Commit 29073826 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Merge branch 'label' into 'master'

Add padfile to label. Useful for deeplearning

See merge request !25
parents 925411b9 f947066f
No related branches found
No related tags found
1 merge request!25Add padfile to label. Useful for deeplearning
Pipeline #
...@@ -6,6 +6,23 @@ from . import evaluation ...@@ -6,6 +6,23 @@ from . import evaluation
from . import script from . import script
from . import test from . import test
def padfile_to_label(padfile):
"""Returns an integer presenting the label of the current sample.
Parameters
----------
padfile : :any:`bob.pad.base.database.PadFile`
A pad file.
Returns
-------
bool
True (1) if it is a bona-fide sample, False (O) otherwise.
"""
return padfile.attack_type is None
def get_config(): def get_config():
"""Returns a string containing the configuration information. """Returns a string containing the configuration information.
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment