diff --git a/app/apps/core/models.py b/app/apps/core/models.py index af53dac6e50a5fd43153403924d5a8310bee201a..4d0aebbecd55e3e052a96f4c9bd4db03d3348f1e 100644 --- a/app/apps/core/models.py +++ b/app/apps/core/models.py @@ -614,15 +614,16 @@ class DocumentPart(OrderedModel): # TODO: check model_type [None, 'recognition', 'segmentation'] # & seg_type [None, 'bbox', 'baselines'] - if model_.one_channel_mode == '1': - # TODO: need to binarize, probably not live... - if not self.bw_image: - self.binarize() - im = Image.open(self.bw_image.file.name) - elif model_.one_channel_mode == 'L': - im = Image.open(self.image.file.name).convert('L') - else: - 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... + # if not self.bw_image: + # self.binarize() + # im = Image.open(self.bw_image.file.name) + # elif model_.one_channel_mode == 'L': + # im = Image.open(self.image.file.name).convert('L') + # else: + # im = Image.open(self.image.file.name) options = { 'device': getattr(settings, 'KRAKEN_TRAINING_DEVICE', 'cpu'),