From 40fe468196d23728ce6e1012292adf274b388b29 Mon Sep 17 00:00:00 2001 From: Ben Hoff Date: Thu, 20 Jun 2019 15:00:48 -0400 Subject: [PATCH] LabeledDataSerializer requires list, not string (#508) --- cvat/apps/auto_annotation/model_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cvat/apps/auto_annotation/model_manager.py b/cvat/apps/auto_annotation/model_manager.py index 4196202a..d33d48b3 100644 --- a/cvat/apps/auto_annotation/model_manager.py +++ b/cvat/apps/auto_annotation/model_manager.py @@ -9,6 +9,7 @@ import os import rq import shutil import tempfile +import itertools from django.db import transaction from django.utils import timezone @@ -251,7 +252,7 @@ class Results(): return { "label": label, "frame": frame_number, - "points": " ".join("{},{}".format(pair[0], pair[1]) for pair in points), + "points": list(itertools.chain.from_iterable(points)), "attributes": attributes or {}, }