Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,10 @@ finetune_ldm_decoder


fid_eval_*
val_mock
val_mock

eval_st_sig_logs

requirements.test.txt

*.egg-info
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "WatermarkAttacker"]
path = WatermarkAttacker
url = https://github.com/Alphonsce/WatermarkAttacker
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 14,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -11,14 +11,15 @@
"\n",
"import seaborn as sns\n",
"import numpy as np\n",
"import os\n",
"\n",
"import matplotlib.pyplot as plt\n",
"sns.set_style(\"white\", {\"grid.color\": \".6\", \"grid.linestyle\": \":\"})"
]
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 15,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -48,7 +49,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 16,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -68,7 +69,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 17,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -140,41 +141,45 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 18,
"metadata": {},
"outputs": [],
"source": [
"for project in detection_projects:\n",
" os.makedirs(\"./detection\", exist_ok=True)\n",
" get_runs_df(project, resolution=True, runtime_limit=4 * 3600).to_csv(f\"./detection/{project}.csv\", index=False, columns=detection_cols)"
]
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 19,
"metadata": {},
"outputs": [],
"source": [
"for project in fid_projects:\n",
" os.makedirs(\"./fid\", exist_ok=True)\n",
" get_runs_df(project).sort_values(by=\"name\", ascending=False).to_csv(f\"./fid/{project}.csv\", index=False, columns=fid_cols)"
]
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 20,
"metadata": {},
"outputs": [],
"source": [
"for project in stable_signature_detection_projects:\n",
" os.makedirs(\"./detection\", exist_ok=True)\n",
" get_runs_df_stable_sig(project, runtime_limit=0).to_csv(f\"./detection/{project}.csv\", index=False, columns=stable_signature_detection_cols)"
]
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 21,
"metadata": {},
"outputs": [],
"source": [
"clip_different_message = \"clip_different_msg\"\n",
"os.makedirs(\"./detection\", exist_ok=True)\n",
"get_runs_df(clip_different_message, runtime_limit=0, resolution=True).sort_values(by=\"name\", ascending=False).to_csv(f\"./detection/{clip_different_message}.csv\", index=False, columns=detection_cols)"
]
}
Expand Down
337 changes: 0 additions & 337 deletions plots/diff_attacks/plotting.ipynb

This file was deleted.

Loading