17000cyh / IMDiffusion

54 stars 7 forks source link

UnboundLocalError: local variable 'labels' referenced before assignment and KeyError: 'machine-1-1' #4

Open huqiulan opened 1 month ago

huqiulan commented 1 month ago

run: python compute_score.py --dataset_name SMD issue1: Traceback (most recent call last): File "compute_score.py", line 281, in best_f, best_proper, best_infor, threshold_infor_dict = compute_one_subset_one_strategy( File "compute_score.py", line 215, in compute_one_subset_one_strategy residual_list, labels UnboundLocalError: local variable 'labels' referenced before assignment

run: python ensemble_proper.py --dataset_name SMD issue2: ensemble for SMD in 30-3-skip-strategy ... length of pkl path list is 0 Traceback (most recent call last): File "ensemble_proper.py", line 461, in compute_one_data(args.dataset_name) File "ensemble_proper.py", line 446, in compute_one_data compute_one_strategy(data_id,strategy_name, File "ensemble_proper.py", line 320, in compute_one_strategy last_step_threshold = threshold_dict[machine_number] IMD-issue2 IMD-issue1

WSake commented 3 weeks ago

您好,请问您解决这个问题了吗?我也是在最后遇到了这个问题。

huqiulan commented 3 weeks ago

我也没解决这个问题,发邮件问了作者,作者也没回复,请问你现在有什么思路改这个代码了吗?

------------------ 原始邮件 ------------------ 发件人: "17000cyh/IMDiffusion" @.>; 发送时间: 2024年6月30日(星期天) 晚上6:55 @.>; @.**@.>; 主题: Re: [17000cyh/IMDiffusion] UnboundLocalError: local variable 'labels' referenced before assignment and KeyError: 'machine-1-1' (Issue #4)

您好,请问您解决这个问题了吗?我也是在最后遇到了这个问题

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>