Skip to content

Commit 59d66f3

Browse files
committed
Update version.py
1 parent 23e7684 commit 59d66f3

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

requirements_dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
superannotate_schemas>=v1.0.45dev4
1+
superannotate_schemas>=v1.0.45dev5
22

src/superannotate/lib/app/interface/sdk_interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2231,7 +2231,7 @@ def validate_annotations(
22312231
with open(annotations_json) as file:
22322232
annotation_data = json.loads(file.read())
22332233
response = Controller.validate_annotations(
2234-
project_type, annotation_data, allow_extra=False
2234+
project_type, annotation_data
22352235
)
22362236
if response.errors:
22372237
raise AppException(response.errors)

src/superannotate/lib/core/video_convertor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ class VideoFrameGenerator:
3232
def __init__(self, annotation_data: dict, fps: int):
3333
self.id_generator = iter(itertools.count(0))
3434
self._annotation_data = annotation_data
35-
self.duration = annotation_data["metadata"]["duration"] / (1000 * 1000)
35+
duration = annotation_data["metadata"]["duration"]
36+
duration = 0 if not duration else duration
37+
self.duration = duration / (1000 * 1000)
3638
self.fps = fps
3739
self.ratio = 1000 * 1000 / fps
3840
self._frame_id = 1

src/superannotate/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "4.3.5dev21"
1+
__version__ = "4.3.5dev22"

tests/integration/annotations/test_get_annotations_per_frame.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def annotations_path(self):
3838
return os.path.join(self.folder_path, self.ANNOTATIONS_PATH)
3939

4040
def test_video_annotation_upload(self):
41-
# sa.create_annotation_classes_from_classes_json(self.PROJECT_NAME, self.classes_path)
41+
sa.create_annotation_classes_from_classes_json(self.PROJECT_NAME, self.classes_path)
4242

4343
_, _, _ = sa.attach_items(
4444
self.PROJECT_NAME,
@@ -56,4 +56,3 @@ def test_video_annotation_upload(self):
5656
)
5757
)
5858
)
59-

0 commit comments

Comments
 (0)