HoomKh commited on
Commit
6f4a3b0
·
verified ·
1 Parent(s): 3f8c9c4
Files changed (1) hide show
  1. runner.py +37 -37
runner.py CHANGED
@@ -1,37 +1,37 @@
1
- # -----------------------------------------------------------------------------
2
- # This Python script is the primary entry point called by our judge. It runs
3
- # your code to generate anomaly scores, then evaluates those scores to produce
4
- # the final results.
5
- # -----------------------------------------------------------------------------
6
-
7
- import subprocess
8
-
9
- # Step 1: Generate anomaly scores
10
- subprocess.run(["./run.sh"], check=True)
11
-
12
- # Step 2: Evaluate the generated scores
13
- subprocess.run(
14
- [
15
- "python3",
16
- "evaluation/eval_main.py",
17
- "--device",
18
- "0",
19
- "--data_path",
20
- "./data/",
21
- "--dataset_name",
22
- "rayan_dataset",
23
- "--class_name",
24
- "all",
25
- "--output_dir",
26
- "./output",
27
- "--output_scores_dir",
28
- "./output_scores",
29
- "--save_csv",
30
- "True",
31
- "--save_json",
32
- "True",
33
- "--class_name_mapping_dir",
34
- "./evaluation/class_name_mapping.json",
35
- ],
36
- check=True,
37
- )
 
1
+ # -----------------------------------------------------------------------------
2
+ # This Python script is the primary entry point called by our judge. It runs
3
+ # your code to generate anomaly scores, then evaluates those scores to produce
4
+ # the final results.
5
+ # -----------------------------------------------------------------------------
6
+
7
+ import subprocess
8
+
9
+ # Step 1: Generate anomaly scores
10
+ subprocess.run(["run.sh"], check=True)
11
+
12
+ # Step 2: Evaluate the generated scores
13
+ subprocess.run(
14
+ [
15
+ "python3",
16
+ "evaluation/eval_main.py",
17
+ "--device",
18
+ "0",
19
+ "--data_path",
20
+ "./data/",
21
+ "--dataset_name",
22
+ "rayan_dataset",
23
+ "--class_name",
24
+ "all",
25
+ "--output_dir",
26
+ "./output",
27
+ "--output_scores_dir",
28
+ "./output_scores",
29
+ "--save_csv",
30
+ "True",
31
+ "--save_json",
32
+ "True",
33
+ "--class_name_mapping_dir",
34
+ "./evaluation/class_name_mapping.json",
35
+ ],
36
+ check=True,
37
+ )