EricLee0224/PAD

question about the test code

2466885875 opened this issue · 2 comments

(pad) zlx@cvlab-1:~/PAD$ python auroc_test.py --obj 01Gorilla
/home/zlx/anaconda3/envs/pad/lib/python3.8/site-packages/torchvision/transforms/transforms.py:280: UserWarning: Argument interpolation should be of type InterpolationMode instead of int. Please, use InterpolationMode enum.
warnings.warn(
Traceback (most recent call last):
File "auroc_test.py", line 244, in
precision, recall, thresholds = precision_recall_curve(gt_mask.flatten(), scores.flatten())
File "/home/zlx/anaconda3/envs/pad/lib/python3.8/site-packages/sklearn/utils/_param_validation.py", line 214, in wrapper
return func(*args, **kwargs)
File "/home/zlx/anaconda3/envs/pad/lib/python3.8/site-packages/sklearn/metrics/_ranking.py", line 952, in precision_recall_curve
fps, tps, thresholds = _binary_clf_curve(
File "/home/zlx/anaconda3/envs/pad/lib/python3.8/site-packages/sklearn/metrics/_ranking.py", line 806, in _binary_clf_curve
check_consistent_length(y_true, y_score, sample_weight)
File "/home/zlx/anaconda3/envs/pad/lib/python3.8/site-packages/sklearn/utils/validation.py", line 407, in check_consistent_length
raise ValueError(
ValueError: Found input variables with inconsistent numbers of samples: [12995584, 3913728]

Hi~ I wanna confirm first if you have run all the test samples, if not, it is normal to encounter such problems.