From c7ec908248359da7cbdb1e3b7c3701cb052c8576 Mon Sep 17 00:00:00 2001 From: CaradryanLiang Date: Wed, 15 May 2024 22:02:38 -0700 Subject: [PATCH] fix FPR 01 missing in data_utils.py --- diffusers/scripts/exp_ldm_sd_2.sh | 0 diffusers/scripts/exp_ldm_sd_2_demo.sh | 0 diffusers/scripts/train_gsa.py | 0 diffusers/scripts/train_naive_loss.py | 0 diffusers/stable_copyright/data_utils.py | 2 +- 5 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 diffusers/scripts/exp_ldm_sd_2.sh create mode 100644 diffusers/scripts/exp_ldm_sd_2_demo.sh create mode 100644 diffusers/scripts/train_gsa.py create mode 100644 diffusers/scripts/train_naive_loss.py diff --git a/diffusers/scripts/exp_ldm_sd_2.sh b/diffusers/scripts/exp_ldm_sd_2.sh new file mode 100644 index 0000000..e69de29 diff --git a/diffusers/scripts/exp_ldm_sd_2_demo.sh b/diffusers/scripts/exp_ldm_sd_2_demo.sh new file mode 100644 index 0000000..e69de29 diff --git a/diffusers/scripts/train_gsa.py b/diffusers/scripts/train_gsa.py new file mode 100644 index 0000000..e69de29 diff --git a/diffusers/scripts/train_naive_loss.py b/diffusers/scripts/train_naive_loss.py new file mode 100644 index 0000000..e69de29 diff --git a/diffusers/stable_copyright/data_utils.py b/diffusers/stable_copyright/data_utils.py index 1e0688d..c805333 100644 --- a/diffusers/stable_copyright/data_utils.py +++ b/diffusers/stable_copyright/data_utils.py @@ -66,7 +66,7 @@ def test(member_scores, nonmember_scores, experiment, output_path, threshold_pat output['TPR_at_1_threshold'] = TPR_at_1_threshold output['FPR_at_1_threshold'] = FPR_at_1_threshold output['TPR_at_01_threshold'] = TPR_at_01_threshold - output['FPR_at_1_threshold'] = FPR_at_01_threshold + output['FPR_at_01_threshold'] = FPR_at_01_threshold output['AUROC'] = auc output['TPR'] = TPR_list output['FPR'] = FPR_list