Coverage for src/bob/bio/spear/config/database/nist_sre04to16.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.3.2, created at 2023-12-06 22:04 +0100

1#!/usr/bin/env python 

2# @author: Yannick Dayer <yannick.dayer@idiap.ch> 

3# @date: Tue 12 Apr 2022 09:36:40 UTC+02 

4 

5"""Default configuration file for the NIST-SRE database. 

6 

7Use this file (defined as ``nist-sre04to16`` in ``entry-points``) as parameter to the 

8``bob bio pipeline`` commands:: 

9 

10 $ bob bio pipeline simple nist-sre04to16 [...] 

11 

12This database uses the NIST-SRE 2016 to evaluate the performance of a system. Other 

13datasets from NIST are used as training data. 

14 

15Three protocols are available. They have the same dev and eval groups. The differences 

16are in the training set: 

17 - core: Selected set of files from the NIST-SRE database with labels. 

18 - core-aug: Augmented data with reverberation or background noise (music, noise, 

19 speech/babble). 

20 - unlabeled: Includes data that were not labeled. 

21 

22 

23Bob does not provide the data files for its databases. 

24After downloading the NIST-SRE database files, configure their location using:: 

25 

26 $ bob config set bob.db.nist_sre04to16.directory /path/to/nist-sre-root/ 

27 

28This folder (pointed to by the ``bob config`` command) should contain the following 

29subfolders: 

30 - ``nist_sre/SRE16``: used for dev and eval groups for enrollment and scoring. 

31 - ``Switchboard_2_Phase_II/dbase``: used for training. 

32 - ``Switchboard_2_Phase_III/dbase``: used for training. 

33 - ``Switchboard_Cellular_Part1/dbase``: used for training. 

34 - ``Switchboard_Cellular_Part2/dbase``: used for training. 

35 - ``nist_sre/SRE04``: used for training. 

36 - ``nist_sre/SRE05``: used for training. 

37 - ``nist_sre/SRE06``: used for training. 

38 - ``nist_sre/SRE08``: used for training. 

39 - ``nist_sre/SRE10``: used for training. 

40""" 

41 

42from bob.bio.spear.database import NistSRE04To16Database 

43 

44if "protocol" not in locals(): 

45 protocol = "core" 

46 

47database = NistSRE04To16Database(protocol=protocol)