Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Eldies committed Aug 29, 2024
1 parent fed5b10 commit 168d512
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cvat-core/src/annotations-objects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2918,7 +2918,7 @@ export class SkeletonTrack extends Track {
parentID: this.clientID,
readOnlyFields: ['group', 'zOrder', 'source', 'rotation'],
});
}).sort((a: Annotation, b: Annotation) => a.label.id - b.label.id);
}).filter(Boolean).sort((a: Annotation, b: Annotation) => a.label.id - b.label.id);
}

public updateFromServerResponse(body: SerializedTrack): void {
Expand Down
4 changes: 3 additions & 1 deletion cvat/apps/dataset_manager/annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def has_overlap(a, b):

prev_shape = shape

if not prev_shape['outside'] and prev_shape['frame'] <= stop:
if prev_shape is not None and not prev_shape['outside'] and prev_shape['frame'] <= stop:
return True

return False
Expand Down Expand Up @@ -552,6 +552,8 @@ def _calc_objects_similarity(obj0, obj1, start_frame, overlap, dimension):
return 0

def _modify_unmatched_object(self, obj, end_frame):
if not obj["shapes"]:
return
shape = obj["shapes"][-1]
if not shape["outside"]:
shape = deepcopy(shape)
Expand Down

0 comments on commit 168d512

Please sign in to comment.