Fix TF bind keyboard interrupt

This commit is contained in:
allegroai 2021-03-06 00:46:22 +02:00
parent 912f6f5ba2
commit 2682754aaf

View File

@ -375,6 +375,8 @@ class EventTrainsWriter(object):
val = val[:, :, [2, 1, 0]] val = val[:, :, [2, 1, 0]]
else: else:
val = val[:, :, [0, 1, 2]] val = val[:, :, [0, 1, 2]]
except KeyboardInterrupt:
raise
except Exception as e: except Exception as e:
logger = LoggerRoot.get_base_logger(TensorflowBinding) logger = LoggerRoot.get_base_logger(TensorflowBinding)
logger.warning('Failed decoding debug image [%s, %s, %s]' % (width, height, color_channels)) logger.warning('Failed decoding debug image [%s, %s, %s]' % (width, height, color_channels))