Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(12) | Call(12) | Derive(0) | Import(0)
src/a/n/antispoofing.verification.gmm-1.0.2/antispoofing/verification/gmm/script/train_ubm.py antispoofing.verification.gmm(Download)
# grab all files in the train/enrollment subset more_files = db.files(directory=inputdir, extension='.hdf5', cls=('enroll'), groups=('train'),) train_files.extend(more_files.values())
src/a/n/antispoofing.verification.gmm-1.0.2/antispoofing/verification/gmm/script/build_score_files.py antispoofing.verification.gmm(Download)
print "Querying database for model names...", sys.stdout.flush() client_dict = db.files(cls='enroll', groups=('devel')) dev_client = set() for key, value in client_dict.iteritems(): client_id = value.split('_')[0].split('/')[2] dev_client.add(client_id) dev_client = sorted(list(dev_client)) client_dict = db.files(cls='enroll', groups=('test'))
sys.stdout.flush() if not args.protocol: dev_real_dict = db.files(cls='real', groups=('devel')) else: dev_real_dict = db.files(cls=('real', 'attack'), groups=('devel'),
sys.stdout.flush() if not args.protocol: test_real_dict = db.files(cls='real', groups=('test')) else: test_real_dict = db.files(cls=('real', 'attack'), groups=('test'),
src/a/n/antispoofing.verification.gmm-1.0.2/antispoofing/verification/gmm/script/feature_extract.py antispoofing.verification.gmm(Download)
import bob db = bob.db.replay.Database() files = db.files(cls=('real', 'attack', 'enroll'), directory=args.inputdir, extension='.mov')
src/a/n/antispoofing.verification.gmm-1.0.2/antispoofing/verification/gmm/script/score.py antispoofing.verification.gmm(Download)
sys.stdout.flush() devel_enroll_list = db.files(cls='enroll', groups=('devel',)) devel_client_list = set() for key, value in devel_enroll_list.iteritems():
print "%d (devel) models" % len(devel_client_list) test_enroll_list = db.files(cls='enroll', groups=('test')) test_client_list = set() for key, value in test_enroll_list.iteritems():
src/a/n/antispoofing.verification.gmm-1.0.2/antispoofing/verification/gmm/script/generate_statistics.py antispoofing.verification.gmm(Download)
# Run for attacks and real-accesses for the development and test groups process = db.files(cls=('attack','real'), groups=('devel', 'test')) # finally, if we are on a grid environment, just find what I have to process.
src/a/n/antispoofing.verification.gmm-1.0.2/antispoofing/verification/gmm/script/enrol.py antispoofing.verification.gmm(Download)
# Enrollment files process = db.files(cls="enroll", groups=("devel", "test")) # Temporary hack to get model ids - note: there is no client data that can be