add box mode convert in box_utils#4254
Conversation
Signed-off-by: Can Zhao <[email protected]>
Signed-off-by: Can Zhao <[email protected]>
|
Hi @Can-Zhao , Thanks for putting together the first PR for the detection task. What do you think? Thanks in advance. |
Thank you so much Nic! I will split it into small PRs! |
Signed-off-by: Can Zhao <[email protected]>
Signed-off-by: Can Zhao <[email protected]>
Signed-off-by: Can Zhao <[email protected]>
Signed-off-by: Can Zhao <[email protected]>
Signed-off-by: Can Zhao <[email protected]>
Hi Nic. I think it should be ready for review. Thank you so much! |
Signed-off-by: Can Zhao <[email protected]>
Signed-off-by: Can Zhao <[email protected]>
Signed-off-by: Can Zhao <[email protected]>
Signed-off-by: Can Zhao <[email protected]>
|
/black |
There was a problem hiding this comment.
Thanks for putting together the utilities.
Put some minor comments inline.
I see several mappings of box mode and spatial dims in the code logic, like:
int(bbox.shape[1] / 2), int(len(mode) / 2)
Maybe we should define it easier and clearer to use?
For example: associate properties bounding box, mode, spatial dims, etc. as a class and define several class functions to do the mode conversion?
@wyli @dongyang0122 What do you think?
Thanks in advance.
Signed-off-by: Can Zhao <[email protected]>
There was a problem hiding this comment.
Hi @Can-Zhao ,
Thanks for your quick update.
It overall looks good to me now, just some minor comments left:
- Please add your new
Enumandconvert_to_listto:
https://github.com/Project-MONAI/MONAI/blob/dev/monai/utils/__init__.py - Please add these new components to the docs.
- Ensure all the CI tests can pass.
@wyli Could you please also help take a look? Do you have any other comments?
Thanks.
Signed-off-by: Can Zhao <[email protected]>
Signed-off-by: Can Zhao <[email protected]>
Signed-off-by: Can Zhao <[email protected]>
Thank you Nic.
|
Signed-off-by: Can Zhao <[email protected]>
Signed-off-by: Can Zhao <[email protected]>
|
Hi @Can-Zhao , Please add Thanks. |
|
/black |
Signed-off-by: monai-bot <[email protected]>
Signed-off-by: Can Zhao <[email protected]>
Done. Thanks! |
Signed-off-by: Can Zhao <[email protected]>
Signed-off-by: Can Zhao <[email protected]>
wyli
left a comment
There was a problem hiding this comment.
thanks, I put some docstring update suggestions
Signed-off-by: Can Zhao <[email protected]>
|
/black |
|
/build |
Signed-off-by: Wenqi Li <[email protected]>
|
/build |
|
/build |
Signed-off-by: Can Zhao [email protected]
Fixes #3571 .
Description
Add box mode converters into box_utils
Status
Ready
Types of changes
./runtests.sh -f -u --net --coverage../runtests.sh --quick --unittests --disttests.make htmlcommand in thedocs/folder.