Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ffn/input/volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 1 addition & 5 deletions ffn/training/tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading