Skip to content

ConvertBoxToStandardModed cannot handle empty boxes #5990

Closed

Description

@Can-Zhao

Describe the bug
When input boxes are empty [], it got error since the boxes are supposed to have shape [N,4] or [N,6].

ValueError: Currently we support only boxes with shape [N,4] or [N,6], got boxes with shape torch.Size([1, 0])

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Install '....'
  3. Run commands '....'

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment

Ensuring you use the relevant python executable, please paste the output of:

python -c 'import monai; monai.config.print_debug_info()'

Additional context
Add any other context about the problem here.

Activity

  1. self-assigned this
    on Feb 14, 2023
  2. added a commit that references this issue on Mar 25, 2023
    c0aace5
  3. added 2 commits that reference this issue on Mar 28, 2023
    6680469
    f783abb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions