You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: superannotate/consensus_benchmark/benchmark.py
+25-29Lines changed: 25 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -14,19 +14,22 @@
14
14
15
15
16
16
defbenchmark(
17
-
gt_project_name,
18
-
project_names,
17
+
project,
18
+
gt_folder,
19
+
folder_names,
19
20
export_root=None,
20
21
image_list=None,
21
22
annot_type='bbox',
22
23
show_plots=False
23
24
):
24
-
"""Computes benchmark score for each instance of given images that are present both gt_project_name project and projects in project_names list:
25
+
"""Computes benchmark score for each instance of given images that are present both gt_project_name project and projects in folder_names list:
25
26
26
-
:param gt_project_name: Project name that contains the ground truth annotations
27
-
:type gt_project_name: str
28
-
:param project_names: list of project names to aggregate through
29
-
:type project_names: list of str
27
+
:param project: project name or metadata of the project
28
+
:type project: str or dict
29
+
:param gt_folder: project folder name that contains the ground truth annotations
30
+
:type gt_folder: str
31
+
:param folder_names: list of folder names in the project for which the scores will be computed
32
+
:type folder_names: list of str
30
33
:param export_root: root export path of the projects
31
34
:type export_root: Pathlike (str or Path)
32
35
:param image_list: List of image names from the projects list that must be used. If None, then all images from the projects list will be used. Default: None
@@ -36,6 +39,8 @@ def benchmark(
36
39
:param show_plots: If True, show plots based on results of consensus computation. Default: False
Copy file name to clipboardExpand all lines: superannotate/consensus_benchmark/consensus.py
+20-19Lines changed: 20 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -14,16 +14,19 @@
14
14
15
15
16
16
defconsensus(
17
-
project_names,
17
+
project,
18
+
folder_names,
18
19
export_root=None,
19
20
image_list=None,
20
21
annot_type='bbox',
21
22
show_plots=False
22
23
):
23
24
"""Computes consensus score for each instance of given images that are present in at least 2 of the given projects:
24
25
25
-
:param project_names: list of project names to aggregate through
26
-
:type project_names: list of str
26
+
:param project: project name or metadata of the project
27
+
:type project: str or dict
28
+
:param folder_names: list of folder names in the project for which the scores will be computed
29
+
:type folder_names: list of str
27
30
:param export_root: root export path of the projects
28
31
:type export_root: Pathlike (str or Path)
29
32
:param image_list: List of image names from the projects list that must be used. If None, then all images from the projects list will be used. Default: None
@@ -33,26 +36,24 @@ def consensus(
33
36
:param show_plots: If True, show plots based on results of consensus computation. Default: False
0 commit comments