Skip to content

Commit

Permalink
Pass a tuple in word cloud, not np array
Browse files Browse the repository at this point in the history
  • Loading branch information
IanCa committed Jul 16, 2024
1 parent 61ffbd5 commit 09722a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hed/tools/visualization/tag_word_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def load_and_resize_mask(mask_path, width=None, height=None):
scale = original_size[1] / height
output_size = original_size / scale

mask_image = mask_image.resize(output_size.astype(int), Image.LANCZOS)
mask_image = mask_image.resize(tuple(output_size.astype(int)), Image.LANCZOS)

mask_image_array = np.array(mask_image)
# Treat transparency (alpha < 128) or white (R>127, G>127, B>127) as white, else black
Expand Down

0 comments on commit 09722a6

Please sign in to comment.