diff --git a/app/apps/core/models.py b/app/apps/core/models.py index 4d0aebbecd55e3e052a96f4c9bd4db03d3348f1e..bb2a02462814cc41165e8e30d4744663f252e76c 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...