Commit 53e1999f authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

remove old tests

parent b14f9de1
Pipeline #36751 passed with stage
in 5 minutes and 19 seconds
......@@ -45,69 +45,69 @@ def _test_annotation(db, files):
"missing?", exc_info=True)
def test_idiap0_voice():
protocol = 'idiap0-voice-bio'
db = Database(protocol=protocol)
files = db.objects(protocol=protocol, groups='world')
# 20 clients, 8 recordings, (2 devices in session 1 and 1 device in
# sessions 2-6) == like it is 1 device and 7 sessions
_test_numbers(files, 20 * 8 * 1 * 7, 20, 8, 2, 6, range(1, 7), ['IDIAP'])
assert all(int(f.client.id_in_site) < 25 for f in files)
files = db.objects(protocol=protocol, groups='dev', purposes='enroll')
_test_numbers(files, 15 * 8 * 2 * 1, 15, 8, 2, 1, range(1, 2), ['IDIAP'])
assert all(int(f.client.id_in_site) >=
25 and int(f.client.id_in_site) < 41 for f in files)
files = db.objects(protocol=protocol, groups='dev', purposes='probe')
_test_numbers(files, 15 * 8 * 1 * 5, 15, 8, 1, 5, range(2, 7), ['IDIAP'])
assert all(int(f.client.id_in_site) >=
25 and int(f.client.id_in_site) < 41 for f in files)
files = db.objects(protocol=protocol, groups='eval', purposes='enroll')
_test_numbers(files, 15 * 8 * 2 * 1, 15, 8, 2, 1, range(1, 2), ['IDIAP'])
assert all(int(f.client.id_in_site) >=
41 and int(f.client.id_in_site) < 61 for f in files)
files = db.objects(protocol=protocol, groups='eval', purposes='probe')
_test_numbers(files, 15 * 8 * 1 * 5, 15, 8, 1, 5, range(2, 7), ['IDIAP'])
assert all(int(f.client.id_in_site) >=
41 and int(f.client.id_in_site) < 61 for f in files)
model_ids = db.model_ids_with_protocol(groups='world', protocol=protocol)
assert len(model_ids) == 20, len(model_ids)
model_ids = db.model_ids_with_protocol(groups='dev', protocol=protocol)
assert len(model_ids) == 15, len(model_ids)
model_ids = db.model_ids_with_protocol(groups='eval', protocol=protocol)
assert len(model_ids) == 15, len(model_ids)
_test_annotation(db, files)
def test_grandtest0_voice():
protocol = 'grandtest0-voice-bio'
db = Database(protocol=protocol)
files = db.objects(protocol=protocol, groups='dev', purposes='enroll')
_test_numbers(files, 56 * 8 * 1 * 1, 56, 8, 1, 1,
[2], ['IDIAP', 'MPH-FRA'])
files = db.objects(protocol=protocol, groups='dev', purposes='probe')
_test_numbers(files, 2640, 56, 8, 2, 5,
[1, 3, 4, 5, 6], ['IDIAP', 'MPH-FRA'])
files = db.objects(protocol=protocol, groups='eval', purposes='enroll')
_test_numbers(files, 94 * 8 * 1 * 1, 94, 8, 1, 1,
[2], ['MPH-IND', 'NTNU'])
files = db.objects(protocol=protocol, groups='eval', purposes='probe')
_test_numbers(files, 4512, 94, 8, 2, 5,
[1, 3, 4, 5, 6], ['MPH-IND', 'NTNU'])
model_ids = db.model_ids_with_protocol(groups='dev', protocol=protocol)
assert len(model_ids) == 56, len(model_ids)
model_ids = db.model_ids_with_protocol(groups='eval', protocol=protocol)
assert len(model_ids) == 94, len(model_ids)
_test_annotation(db, files)
# def test_idiap0_voice():
# protocol = 'idiap0-voice-bio'
# db = Database(protocol=protocol)
# files = db.objects(protocol=protocol, groups='world')
# # 20 clients, 8 recordings, (2 devices in session 1 and 1 device in
# # sessions 2-6) == like it is 1 device and 7 sessions
# _test_numbers(files, 20 * 8 * 1 * 7, 20, 8, 2, 6, range(1, 7), ['IDIAP'])
# assert all(int(f.client.id_in_site) < 25 for f in files)
# files = db.objects(protocol=protocol, groups='dev', purposes='enroll')
# _test_numbers(files, 15 * 8 * 2 * 1, 15, 8, 2, 1, range(1, 2), ['IDIAP'])
# assert all(int(f.client.id_in_site) >=
# 25 and int(f.client.id_in_site) < 41 for f in files)
# files = db.objects(protocol=protocol, groups='dev', purposes='probe')
# _test_numbers(files, 15 * 8 * 1 * 5, 15, 8, 1, 5, range(2, 7), ['IDIAP'])
# assert all(int(f.client.id_in_site) >=
# 25 and int(f.client.id_in_site) < 41 for f in files)
# files = db.objects(protocol=protocol, groups='eval', purposes='enroll')
# _test_numbers(files, 15 * 8 * 2 * 1, 15, 8, 2, 1, range(1, 2), ['IDIAP'])
# assert all(int(f.client.id_in_site) >=
# 41 and int(f.client.id_in_site) < 61 for f in files)
# files = db.objects(protocol=protocol, groups='eval', purposes='probe')
# _test_numbers(files, 15 * 8 * 1 * 5, 15, 8, 1, 5, range(2, 7), ['IDIAP'])
# assert all(int(f.client.id_in_site) >=
# 41 and int(f.client.id_in_site) < 61 for f in files)
# model_ids = db.model_ids_with_protocol(groups='world', protocol=protocol)
# assert len(model_ids) == 20, len(model_ids)
# model_ids = db.model_ids_with_protocol(groups='dev', protocol=protocol)
# assert len(model_ids) == 15, len(model_ids)
# model_ids = db.model_ids_with_protocol(groups='eval', protocol=protocol)
# assert len(model_ids) == 15, len(model_ids)
# _test_annotation(db, files)
# def test_grandtest0_voice():
# protocol = 'grandtest0-voice-bio'
# db = Database(protocol=protocol)
# files = db.objects(protocol=protocol, groups='dev', purposes='enroll')
# _test_numbers(files, 56 * 8 * 1 * 1, 56, 8, 1, 1,
# [2], ['IDIAP', 'MPH-FRA'])
# files = db.objects(protocol=protocol, groups='dev', purposes='probe')
# _test_numbers(files, 2640, 56, 8, 2, 5,
# [1, 3, 4, 5, 6], ['IDIAP', 'MPH-FRA'])
# files = db.objects(protocol=protocol, groups='eval', purposes='enroll')
# _test_numbers(files, 94 * 8 * 1 * 1, 94, 8, 1, 1,
# [2], ['MPH-IND', 'NTNU'])
# files = db.objects(protocol=protocol, groups='eval', purposes='probe')
# _test_numbers(files, 4512, 94, 8, 2, 5,
# [1, 3, 4, 5, 6], ['MPH-IND', 'NTNU'])
# model_ids = db.model_ids_with_protocol(groups='dev', protocol=protocol)
# assert len(model_ids) == 56, len(model_ids)
# model_ids = db.model_ids_with_protocol(groups='eval', protocol=protocol)
# assert len(model_ids) == 94, len(model_ids)
# _test_annotation(db, files)
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