From cf26ef03638486ffef306e80b47995d97a7eb29d Mon Sep 17 00:00:00 2001 From: zhiltsov-max Date: Tue, 14 Jul 2020 14:08:58 +0300 Subject: [PATCH] Convert points to float in import (#1898) * Convert points to float in import * update changelog --- CHANGELOG.md | 1 + cvat/apps/dataset_manager/bindings.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d2508ba4..83825c32 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Cursor position is reset after changing a text field () - Hidden points and cuboids can be selected to be groupped () - `outside` annotations should not be in exported images () +- `CVAT for video format` import error with interpolation () ### Security - diff --git a/cvat/apps/dataset_manager/bindings.py b/cvat/apps/dataset_manager/bindings.py index 787c7f8e..39251811 100644 --- a/cvat/apps/dataset_manager/bindings.py +++ b/cvat/apps/dataset_manager/bindings.py @@ -350,6 +350,7 @@ class TaskData: _shape['attributes'] = [self._import_attribute(label_id, attrib) for attrib in _shape['attributes'] if self._get_attribute_id(label_id, attrib.name)] + _shape['points'] = list(map(float, _shape['points'])) return _shape def _import_track(self, track): @@ -368,6 +369,7 @@ class TaskData: shape['attributes'] = [self._import_attribute(label_id, attrib) for attrib in shape['attributes'] if self._get_mutable_attribute_id(label_id, attrib.name)] + shape['points'] = list(map(float, shape['points'])) return _track