From 011d0719942c45ca9f2a022a2ffb89cc87cf7934 Mon Sep 17 00:00:00 2001 From: Robin Tissot <tissotrobin@gmail.com> Date: Thu, 19 Nov 2020 09:00:27 +0100 Subject: [PATCH] Fixes broken segmentation. --- app/apps/core/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/apps/core/models.py b/app/apps/core/models.py index 4d0aebbe..bb2a0246 100644 --- a/app/apps/core/models.py +++ b/app/apps/core/models.py @@ -614,6 +614,7 @@ class DocumentPart(OrderedModel): # TODO: check model_type [None, 'recognition', 'segmentation'] # & seg_type [None, 'bbox', 'baselines'] + im = Image.open(self.image.file.name) # will be fixed sometime in the future # if model_.one_channel_mode == '1': # # TODO: need to binarize, probably not live... -- GitLab