thuml / Anomaly-Transformer

About Code release for "Anomaly Transformer: Time Series Anomaly Detection with Association Discrepancy" (ICLR 2022 Spotlight), https://openreview.net/forum?id=LzQQ89U1qm_
MIT License
758 stars 199 forks source link

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

Open MR-HOLO opened 2 months ago

MR-HOLO commented 2 months ago

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