-
Notifications
You must be signed in to change notification settings - Fork 28
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
About running #14
Comments
me 2.how did u solve it? |
|
not yet
|
Hi,try to modify dataset_paths.py |
How did you modify it? I also encountered this problem! |
I also encountered this issuse, how to solve it, please? |
|
It's useful. Thank you very much! |
help |
Length of dataset: 0
Traceback (most recent call last):
File "/content/UniversalFakeDetect/train.py", line 70, in
ap, r_acc, f_acc, acc = validate(model.model, val_loader)
File "/content/UniversalFakeDetect/validate.py", line 116, in validate
ap = average_precision_score(y_true, y_pred)
File "/usr/local/lib/python3.10/dist-packages/sklearn/metrics/_ranking.py", line 234, in average_precision_score
return _average_binary_score(
File "/usr/local/lib/python3.10/dist-packages/sklearn/metrics/_base.py", line 75, in _average_binary_score
return binary_metric(y_true, y_score, sample_weight=sample_weight)
File "/usr/local/lib/python3.10/dist-packages/sklearn/metrics/_ranking.py", line 207, in _binary_uninterpolated_average_precision
precision, recall, _ = precision_recall_curve(
File "/usr/local/lib/python3.10/dist-packages/sklearn/metrics/_ranking.py", line 878, in precision_recall_curve
fps, tps, thresholds = _binary_clf_curve(
File "/usr/local/lib/python3.10/dist-packages/sklearn/metrics/_ranking.py", line 787, in _binary_clf_curve
tps = stable_cumsum(y_true * weight)[threshold_idxs]
File "/usr/local/lib/python3.10/dist-packages/sklearn/utils/extmath.py", line 1142, in stable_cumsum
out.take(-1, axis=axis), expected, rtol=rtol, atol=atol, equal_nan=True
IndexError: cannot do a non-empty take from an empty axes.
How can i fix it?Is my dataset causing that error?
The text was updated successfully, but these errors were encountered: