fixed dump of interpolation points object && statistics calculation (#1108)

main
Andrey Zhavoronkov 6 years ago committed by GitHub
parent b918aeb224
commit e062c2309e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -357,7 +357,8 @@ class TrackManager(ObjectManager):
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))

@ -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 {

Loading…
Cancel
Save