Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when I try to python train.py, test sets with lfw data sets ,error #26

Open
molyswu opened this issue Nov 9, 2018 · 0 comments
Open

Comments

@molyswu
Copy link

molyswu commented Nov 9, 2018

Traceback (most recent call last):
File "train.py", line 542, in
main(parse_arguments(sys.argv[1:]))
File "train.py", line 213, in main
label_batch, lfw_paths, actual_issame, args.lfw_batch_size, args.lfw_nrof_folds, log_dir, step, summary_writer,best_accuracy,saver_save,model_dir,subdir)
File "train.py", line 313, in evaluate
_, _, accuracy, val, val_std, far = lfw.evaluate(emb_array, actual_issame, nrof_folds=nrof_folds)
File "/home/yjzx/Downloads/Additive-Margin-Softmax/lfw.py", line 43, in evaluate
np.asarray(actual_issame), 1e-3, nrof_folds=nrof_folds)
File "/home/yjzx/Downloads/Additive-Margin-Softmax/facenet.py", line 566, in calculate_val
val[fold_idx], far[fold_idx] = calculate_val_far(threshold, dist[test_set], actual_issame[test_set])
File "/home/yjzx/Downloads/Additive-Margin-Softmax/facenet.py", line 580, in calculate_val_far
val = float(true_accept) / float(n_same)
far = float(false_accept) / float(n_diff)
ZeroDivisionError: float division by zero

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant