Commit 34dc0447 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Use bob.extension.rc

parent 43838d32
Pipeline #14494 canceled with stages
in 4 minutes and 38 seconds
#!/usr/bin/env python
from bob.db.uvad import Database
uvad_directory = "[UVAD_DIRECTORY]"
database = Database(
database = Database()
......@@ -3,6 +3,7 @@ from bob.pad.base.database import FileListPadDatabase
from bob.pad.face.database import VideoPadFile
from bob.pad.face.utils import frames, number_of_frames
import numpy
from bob.extension import rc
class File(VideoPadFile):
......@@ -13,7 +14,7 @@ class File(VideoPadFile):
class Database(FileListPadDatabase):
"""The database interface for the UVAD dataset."""
def __init__(self, original_directory=None,
def __init__(self, original_directory=rc[''],
bio_file_class=None, name='uvad',
original_extension=None, **kwargs):
if bio_file_class is None:
......@@ -8,6 +8,10 @@
This package provides an interface to the Unicamp Video-Attack Database
(`UVAD`_) database. The original data files need to be downloaded separately.
After you have downloaded the dataset, you need to configure bob.db.uvad to
find the dataset::
$ bob config set /path/to/downloaded/dataset
If you use this database, please cite the following publication::
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment