Skip to content

ConvertBoxToStandardModed cannot handle empty boxes #5990

@Can-Zhao

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.

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