Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GSoC2024] Added quality reporting for Tag annotations #7582

Merged
merged 42 commits into from
May 8, 2024
Merged
Changes from 4 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
ed4ccf1
fixed quality report of label type Tag by emulating them as Bbox
Viditagarwal7479 Mar 9, 2024
693eaba
fixed black formating
Viditagarwal7479 Mar 9, 2024
dbd9852
Merge branch 'opencv:develop' into quality_report
Viditagarwal7479 Mar 10, 2024
3e0679f
Merge branch 'develop' into quality_report
Viditagarwal7479 Mar 11, 2024
2aa6c41
Fixed sending `/events` requests from logged out users (#7608)
klakhov Mar 29, 2024
32bb06a
Revert "Merge branch 'develop' into quality_report"
Viditagarwal7479 Mar 30, 2024
fb8e4ba
merged origin/develop
Viditagarwal7479 Mar 30, 2024
5ae8e5d
Merge branch 'develop' into quality_report
Viditagarwal7479 Mar 30, 2024
04fe596
added custom label matching function
Viditagarwal7479 Mar 30, 2024
366e60f
not to use annotations of type label for grouping conflict
Viditagarwal7479 Mar 30, 2024
817b65c
removed earlier bbox emulation changes for label annotation
Viditagarwal7479 Mar 30, 2024
19c5ad5
removed unused imports
Viditagarwal7479 Mar 30, 2024
3fceef5
reverted unnecessary changes, occurred while reverting to a previous …
Viditagarwal7479 Mar 30, 2024
a01f90b
added some information about Jaccard Index for developers
Viditagarwal7479 Mar 30, 2024
f987998
fixed file changed while reverting to previous commit
Viditagarwal7479 Mar 30, 2024
58d1a6c
added changelog entry
Viditagarwal7479 Mar 31, 2024
10df009
fixed implementation error while filter annotations which can have group
Viditagarwal7479 Mar 31, 2024
7686d5e
updated the test db
Viditagarwal7479 Mar 31, 2024
1246f82
dumped json files after test db update
Viditagarwal7479 Mar 31, 2024
d3689a6
redumped the json as had accidently reverted a change
Viditagarwal7479 Mar 31, 2024
0a94ea3
fixed the custom label matcher function to use class function
Viditagarwal7479 Apr 1, 2024
dfd791f
modified the output of frame result and computation of annotation_com…
Viditagarwal7479 Apr 1, 2024
e7fc6fc
fixed misuse of overall pairwise distance instead of shape type pairw…
Viditagarwal7479 Apr 1, 2024
06b48df
redumped the testing db by recomputing the quality report for task ha…
Viditagarwal7479 Apr 1, 2024
b5f58cd
dumped json files for the updated testing db
Viditagarwal7479 Apr 1, 2024
63ef2be
Merge branch 'develop' into quality_report
zhiltsov-max Apr 2, 2024
9ecc2b9
redumped testing db and json
Viditagarwal7479 Apr 3, 2024
6eb0fdf
reverted the dump to the origin/develop and again made changes in tes…
Viditagarwal7479 Apr 3, 2024
6ec3d2b
updated the distance function while matching labels
Viditagarwal7479 Apr 3, 2024
17e171a
Merge branch 'develop' into quality_report
Viditagarwal7479 Apr 3, 2024
3317cb8
Merge branch 'develop' into quality_report
Viditagarwal7479 Apr 4, 2024
90ac5aa
added dist_thresh as a function parameter for label based match segment
Viditagarwal7479 Apr 8, 2024
f93a79a
Merge branch 'develop' into quality_report
Viditagarwal7479 Apr 8, 2024
fc5cead
Update cvat/apps/quality_control/quality_reports.py
zhiltsov-max Apr 9, 2024
cd39b9e
fixed incorrect usage of shape_unmatched_ann instead of unmatched_ann
Viditagarwal7479 Apr 9, 2024
0c70c6b
Merge branch 'develop' into quality_report
Viditagarwal7479 Apr 9, 2024
72fe5af
Merge branch 'develop' into quality_report
Viditagarwal7479 Apr 10, 2024
6784587
Merge branch 'develop' into quality_report
zhiltsov-max Apr 10, 2024
11bff88
Merge branch 'develop' into quality_report
zhiltsov-max Apr 11, 2024
28196c3
Add missing type annotation
zhiltsov-max Apr 11, 2024
5b73e63
Merge branch 'develop' into quality_report
zhiltsov-max May 7, 2024
f1050b3
Merge branch 'develop' into quality_report
zhiltsov-max May 8, 2024
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
22 changes: 22 additions & 0 deletions cvat/apps/quality_control/quality_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import django_rq
import numpy as np
from attrs import asdict, define, fields_dict
from datumaro.components.annotation import Bbox, Label
from datumaro.util import dump_json, parse_json
from django.conf import settings
from django.db import transaction
Expand Down Expand Up @@ -156,6 +157,7 @@ class ComparisonParameters(_Serializable):
dm.AnnotationType.polygon,
dm.AnnotationType.polyline,
dm.AnnotationType.skeleton,
dm.AnnotationType.label,
Viditagarwal7479 marked this conversation as resolved.
Show resolved Hide resolved
]

compare_attributes: bool = True
Expand Down Expand Up @@ -618,6 +620,26 @@ def _convert_tag(self, tag):
for dm_ann in converted:
dm_ann.id = tag.id

new_annotations = []
for ann in converted:
if isinstance(ann, Label):
new_annotations.append(
Bbox(
0,
0,
1,
1,
id=ann.id,
label=ann.label,
group=ann.group,
z_order=0,
attributes={"occluded": False, "rotation": 0.0},
)
)
else:
new_annotations.append(ann)
converted = new_annotations

self._factory.remember_conversion(tag, converted)
return converted

Expand Down
Loading