From 9fec0c223bdc9a69c6e68475de30f62875001ea5 Mon Sep 17 00:00:00 2001 From: Boris Sekachev <40690378+bsekachev@users.noreply.github.com> Date: Wed, 27 Mar 2019 14:50:17 +0300 Subject: [PATCH] Fixed tensorflow annotation without OpenVINO (#359) --- cvat/apps/tf_annotation/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cvat/apps/tf_annotation/views.py b/cvat/apps/tf_annotation/views.py index 32a629bf..a3f893c3 100644 --- a/cvat/apps/tf_annotation/views.py +++ b/cvat/apps/tf_annotation/views.py @@ -8,7 +8,6 @@ from django.core.exceptions import ObjectDoesNotExist from django.shortcuts import render from rules.contrib.views import permission_required, objectgetter from cvat.apps.authentication.decorators import login_required -from cvat.apps.auto_annotation.inference_engine import make_plugin, make_network from cvat.apps.engine.models import Task as TaskModel from cvat.apps.engine import annotation, task @@ -33,6 +32,8 @@ def load_image_into_numpy(image): def run_inference_engine_annotation(image_list, labels_mapping, treshold): + from cvat.apps.auto_annotation.inference_engine import make_plugin, make_network + def _normalize_box(box, w, h, dw, dh): xmin = min(int(box[0] * dw * w), w) ymin = min(int(box[1] * dh * h), h)