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

Extend server tests for dataset manager. #3192

Merged
merged 54 commits into from
Jun 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
8989d6a
add tests
Mar 12, 2021
476060c
small fix
Mar 12, 2021
867c0a8
revert settings.settings.json
Mar 12, 2021
a41c3ea
add number bug
Mar 12, 2021
884badd
revert test_formats.py
Mar 14, 2021
31c1f2b
move rest api tests to other file
Mar 14, 2021
4db0928
add new tests
Mar 15, 2021
a4ba5a8
Fixed HTTP_400 code
mzuevx Mar 23, 2021
9d848bb
Remove extra files
mzuevx Mar 23, 2021
fa665ab
Remove extra files
mzuevx Mar 23, 2021
7efb86f
Merge branch 'develop' into mz/server_test_dataset_manager
yasakova-anastasia Mar 24, 2021
2673d18
Disable real API tests due for precommit timeout failures
mzuevx Mar 24, 2021
f13230b
Reenable 1 test to check CI completion
mzuevx Mar 24, 2021
8e87759
Merge branch 'mz/server_test_dataset_manager' of https://github.com/m…
yasakova-anastasia Mar 25, 2021
d5e1bb5
Add Market-1501 to tests
yasakova-anastasia Mar 25, 2021
2fcbb8f
Enable all tests without exceptions
mzuevx Mar 25, 2021
4b166ad
Merge branch 'mz/server_test_dataset_manager' of https://github.com/m…
mzuevx Mar 26, 2021
908d1e1
some fixes
yasakova-anastasia Mar 29, 2021
254889f
Merge branch 'develop' into mz/server_test_dataset_manager
yasakova-anastasia Mar 29, 2021
cfe22a4
Add ICDAR to tests
yasakova-anastasia Mar 29, 2021
07b7c4d
Move test data to /tmp/cvat
mzuevx Mar 30, 2021
4608d36
Merge branch 'mz/server_test_dataset_manager' of https://github.com/m…
mzuevx Mar 30, 2021
9c8879b
Merge branch 'develop' of https://github.com/openvinotoolkit/cvat int…
mzuevx Apr 14, 2021
8202829
Extra changes
mzuevx Apr 22, 2021
4e0f703
Merge branch 'mz/server_test_dataset_manager' of https://github.com/m…
msmirn1x May 13, 2021
df20b6a
Extend server tests for dataset manager
msmirn1x May 13, 2021
f840aac
Add test for #2924 issue
msmirn1x May 18, 2021
e5a010b
fix export dataset test
msmirn1x May 18, 2021
205134f
fix tests
msmirn1x May 27, 2021
5479ab2
Merge branch 'develop' of https://github.com/openvinotoolkit/cvat int…
msmirn1x May 27, 2021
002fb2d
code review
msmirn1x May 28, 2021
b5e15af
Test refactoring and code review
msmirn1x Jun 1, 2021
35482c4
Small fix
msmirn1x Jun 1, 2021
0ef79a5
Put back test test_api_v1_tasks_annotations_dump_and_upload_with_datu…
msmirn1x Jun 2, 2021
55055d0
Merge branch 'develop' of https://github.com/openvinotoolkit/cvat int…
msmirn1x Jun 2, 2021
a12f3d8
Small corrections of test test_api_v1_tasks_annotations_dump_and_uplo…
msmirn1x Jun 2, 2021
c80db55
Change download file logic.
msmirn1x Jun 3, 2021
49c50d9
Fix a typo.
msmirn1x Jun 3, 2021
e2e8c2e
Remove Pylint warnings.
msmirn1x Jun 3, 2021
e91b7a0
Remove useless lines.
msmirn1x Jun 3, 2021
5e722b9
fix a typo.
msmirn1x Jun 4, 2021
a4c9d0d
Remove duplicated polygon pounts test.
msmirn1x Jun 4, 2021
c82e979
Merge develop
msmirn1x Jun 8, 2021
9e11dc1
Remove useless import.
msmirn1x Jun 8, 2021
ed011c1
Fix merge issues.
msmirn1x Jun 8, 2021
273c727
Use download_file function.
msmirn1x Jun 8, 2021
2380e54
Don't skip Widerface format
msmirn1x Jun 8, 2021
7270800
Merge branch 'develop' of https://github.com/openvinotoolkit/cvat int…
msmirn1x Jun 10, 2021
72e2a4f
Refactoring.
msmirn1x Jun 10, 2021
0592294
Add asserts test_api_v1_unit_test_on_normalize_shape_function
msmirn1x Jun 17, 2021
1ae6e9e
Remove useless import.
msmirn1x Jun 18, 2021
3215d49
Changed values for label attributes.
msmirn1x Jun 21, 2021
7c95cd4
Removed test for dead code.
msmirn1x Jun 22, 2021
bcf2d63
Removed dead code.
msmirn1x Jun 22, 2021
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
18 changes: 0 additions & 18 deletions cvat/apps/dataset_manager/annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,24 +436,6 @@ def _modify_unmached_object(obj, end_frame):
obj["interpolated_shapes"].append(last_interpolated_shape)
obj["interpolated_shapes"].append(shape)

@staticmethod
def normalize_shape(shape):
points = list(shape["points"])
if len(points) == 2:
points.extend(points) # duplicate points for single point case
points = np.asarray(points).reshape(-1, 2)
broken_line = geometry.LineString(points)
points = []
for off in range(0, 100, 1):
p = broken_line.interpolate(off / 100, True)
points.append(p.x)
points.append(p.y)

shape = copy(shape)
shape["points"] = points

return shape

@staticmethod
def get_interpolated_shapes(track, start_frame, end_frame):
def copy_shape(source, frame, points=None):
Expand Down
Loading