mirror of
https://github.com/deepinsight/insightface.git
synced 2026-05-15 12:52:47 +00:00
remove cfp_ff, do ver on flip only
This commit is contained in:
@@ -235,8 +235,11 @@ def test(data_set, mx_model, batch_size):
|
||||
|
||||
embeddings = embeddings_list[0].copy()
|
||||
embeddings = sklearn.preprocessing.normalize(embeddings)
|
||||
_, _, accuracy, val, val_std, far = evaluate(embeddings, issame_list, nrof_folds=10)
|
||||
acc1, std1 = np.mean(accuracy), np.std(accuracy)
|
||||
acc1 = 0.0
|
||||
std1 = 0.0
|
||||
#_, _, accuracy, val, val_std, far = evaluate(embeddings, issame_list, nrof_folds=10)
|
||||
#acc1, std1 = np.mean(accuracy), np.std(accuracy)
|
||||
|
||||
#print('Validation rate: %2.5f+-%2.5f @ FAR=%2.5f' % (val, val_std, far))
|
||||
#embeddings = np.concatenate(embeddings_list, axis=1)
|
||||
embeddings = embeddings_list[0] + embeddings_list[1]
|
||||
|
||||
@@ -416,7 +416,7 @@ def train_net(args):
|
||||
|
||||
ver_list = []
|
||||
ver_name_list = []
|
||||
for name in ['lfw','cfp_ff','cfp_fp','agedb_30']:
|
||||
for name in ['lfw','cfp_fp','agedb_30']:
|
||||
path = os.path.join(args.data_dir,name+".bin")
|
||||
if os.path.exists(path):
|
||||
data_set = verification.load_bin(path, image_size)
|
||||
|
||||
Reference in New Issue
Block a user