Skip to content

Commit

Permalink
fixed dump of interpolation points object && statistics calculation (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
azhavoro committed Jan 30, 2020
1 parent b918aeb commit e062c23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cvat/apps/engine/data_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,8 @@ def interpolate(shape0, shape1):
prev_shape = shape

# TODO: Need to modify a client and a database (append "outside" shapes for polytracks)
if not prev_shape["outside"] and prev_shape["type"] == models.ShapeType.RECTANGLE:
if not prev_shape["outside"] and (prev_shape["type"] == models.ShapeType.RECTANGLE
or prev_shape["type"] == models.ShapeType.POINTS):
shape = copy.copy(prev_shape)
shape["frame"] = end_frame
shapes.extend(interpolate(prev_shape, shape))
Expand Down
3 changes: 2 additions & 1 deletion cvat/apps/engine/static/engine/js/shapes.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ class ShapeModel extends Listener {
}

if (visibleFrame != null) {
if (this._type === 'interpolation_box') {
if (this._type === 'interpolation_box'
|| this._type === 'interpolation_points') {
counter += window.cvat.player.frames.stop - visibleFrame + 1;
}
else {
Expand Down

0 comments on commit e062c23

Please sign in to comment.