Skip to content

Commit 2e2ff55

Browse files
bsekachevChris Lee-Messer
authored and
Chris Lee-Messer
committed
Don't save shapes with keyframe==False
1 parent 2739868 commit 2e2ff55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cvat/apps/annotation/cvat.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,8 @@ def load(file_object, annotations):
398398
shape['points'].extend(map(float, pair.split(',')))
399399

400400
if track is not None:
401-
track.shapes.append(annotations.TrackedShape(**shape))
401+
if shape["keyframe"]:
402+
track.shapes.append(annotations.TrackedShape(**shape))
402403
else:
403404
annotations.add_shape(annotations.LabeledShape(**shape))
404405
shape = None

0 commit comments

Comments
 (0)