diff --git a/ffn/input/volume.py b/ffn/input/volume.py index c6d0539..c51ed94 100644 --- a/ffn/input/volume.py +++ b/ffn/input/volume.py @@ -280,7 +280,7 @@ def sample_coordinates( 'coord': [1, 3] XYZ int64 array 'volname': [1] string array """ - if config.sampling.bounding_boxes: + if config.sampling.bounding_boxes: boxes_cfg = [] volume_names = [] # Compile boxes and volumes strings. diff --git a/ffn/training/tracker.py b/ffn/training/tracker.py index 648b671..ec6b9d7 100644 --- a/ffn/training/tracker.py +++ b/ffn/training/tracker.py @@ -232,11 +232,7 @@ def slice_image( text += f'\n{volume_name}' - try: - - # font = PIL.ImageFont.load_default() - except (IOError, ValueError): - font = PIL.ImageFont.load_default() + font = PIL.ImageFont.load_default() draw.text((1, 1), text, fill='rgb(255,64,64)', font=font) del draw