Skip to content

Commit

Permalink
fix 'NoneType' object has no attribute 'copy' error
Browse files Browse the repository at this point in the history
  • Loading branch information
vorozhkog committed Oct 25, 2024
1 parent 9d52384 commit 3cb92d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def export_as_masks(api: sly.Api):
int(overlay.shape[1] * (g.RESIZE_PERCENT / 100)),
overlay.shape[2],
)
array_to_write = array_to_write.resize(new_dimensions)
array_to_write.resize(new_dimensions)

sly.image.write(
os.path.join(human_masks_dir, mask_img_name),
Expand Down

0 comments on commit 3cb92d0

Please sign in to comment.