Skip to content

Fix zero-size array error in get_mask_boxes when mask is empty#22

Open
heyuanliu-intel wants to merge 1 commit into
wenbinc-Bin:hpufrom
heyuanliu-intel:bug_fix
Open

Fix zero-size array error in get_mask_boxes when mask is empty#22
heyuanliu-intel wants to merge 1 commit into
wenbinc-Bin:hpufrom
heyuanliu-intel:bug_fix

Conversation

@heyuanliu-intel

Copy link
Copy Markdown

Fix zero-size array error in get_mask_boxes when mask is empty

  • Handle empty masks in get_mask_boxes by returning None
  • Update get_aug_mask to gracefully handle None bbox and zero slice sizes
  • Prevents ValueError when body segmentation finds no body in a frame

- Handle empty masks in get_mask_boxes by returning None
- Update get_aug_mask to gracefully handle None bbox and zero slice sizes
- Prevents ValueError when body segmentation finds no body in a frame
@mengker33

Copy link
Copy Markdown
Collaborator

@heyuanliu-intel, please change the merge branch to hpu branch。

@heyuanliu-intel
heyuanliu-intel changed the base branch from main to hpu January 23, 2026 07:36
@heyuanliu-intel

Copy link
Copy Markdown
Author

modified.

@mengker33

Copy link
Copy Markdown
Collaborator

LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants