Anomaly-Transformer icon indicating copy to clipboard operation
Anomaly-Transformer copied to clipboard

异常检测测试自己的数据集的错误

Open MR-HOLO opened this issue 1 year ago • 0 comments

Traceback (most recent call last): File "/root/BESP2024_D_AI/BESP_2024_AD_V0/run.py", line 184, in exp.test(setting) File "/root/BESP2024_D_AI/BESP_2024_AD_V0/exp/exp_anomaly_detection.py", line 186, in test gt, pred = adjustment(gt, pred) File "/root/BESP2024_D_AI/BESP_2024_AD_V0/utils/tools.py", line 96, in adjustment if gt[i] == 1 and pred[i] == 1 and not anomaly_state: IndexError: index 2986761 is out of bounds for axis 0 with size 2986752

MR-HOLO avatar Sep 14 '24 09:09 MR-HOLO