Skip to content

Adding a network CellSamWrapper - #7981

Merged
KumoLiu merged 13 commits into
Project-MONAI:devfrom
myron:v2d
Aug 10, 2024
Merged

KumoLiu merged 13 commits into
Project-MONAI:devfrom
myron:v2d

Conversation

@myron

@myron myron commented Aug 2, 2024

Copy link
Copy Markdown
Collaborator

Adding a network CellSamWrapper, a thin wrapper around SAM, which can be used for 2D segmentation tasks.

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • Breaking change (fix or new feature that would cause existing functionality to change).
  • New tests added to cover the changes.
  • Integration tests passed locally by running ./runtests.sh -f -u --net --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick --unittests --disttests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

am and others added 2 commits August 1, 2024 19:18
Signed-off-by: am <am>
for more information, see https://pre-commit.ci

Signed-off-by: am <am>
Comment thread monai/networks/nets/cell_sam_wrapper.py Outdated
Comment thread monai/networks/nets/cell_sam_wrapper.py Outdated

@KumoLiu KumoLiu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, overall looks good me, several minor comments inline.

Comment thread monai/networks/nets/cell_sam_wrapper.py
Comment thread monai/networks/nets/cell_sam_wrapper.py
Comment thread monai/networks/nets/cell_sam_wrapper.py
Comment thread tests/test_cell_sam_wrapper.py Outdated
Comment thread monai/networks/nets/cell_sam_wrapper.py
@KumoLiu

KumoLiu commented Aug 7, 2024

Copy link
Copy Markdown
Contributor

Hi @myron, please help include the segment_anything in the requirements-dev.txt, then it will be installed in the ci env and test all the things. Thanks!

@myron

myron commented Aug 9, 2024

Copy link
Copy Markdown
Collaborator Author

Hi @myron, please help include the segment_anything in the requirements-dev.txt, then it will be installed in the ci env and test all the things. Thanks!

Hi, I can do it, but I don't think we should do it, it's a very limited use case, and I don't think we should ask every developer to install it.

@KumoLiu

KumoLiu commented Aug 9, 2024

Copy link
Copy Markdown
Contributor

Hi, I can do it, but I don't think we should do it, it's a very limited use case, and I don't think we should ask every developer to install it.

Hi @myron, yes we need to include that, then all the test cases can be tested correctly. Users don't need to install "requirement-dev", they can choose what they want to install like pip install monai["nibabel"].

myron added 2 commits August 9, 2024 10:36
Signed-off-by: myron <amyronenko@nvidia.com>
@myron

myron commented Aug 9, 2024

Copy link
Copy Markdown
Collaborator Author

Hi @myron, please help include the segment_anything in the requirements-dev.txt, then it will be installed in the ci env and test all the things. Thanks!

added

@myron

myron commented Aug 9, 2024

Copy link
Copy Markdown
Collaborator Author

all done, please check

pre-commit-ci Bot and others added 2 commits August 9, 2024 17:51
Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>

@KumoLiu KumoLiu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@myron Thanks for the quick update. Just push a commit help fix format issue.

@KumoLiu

KumoLiu commented Aug 10, 2024

Copy link
Copy Markdown
Contributor

/build

Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Comment thread requirements-dev.txt
Comment thread requirements-dev.txt
Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
@KumoLiu

KumoLiu commented Aug 10, 2024

Copy link
Copy Markdown
Contributor

/build

@KumoLiu
KumoLiu merged commit 6243031 into Project-MONAI:dev Aug 10, 2024
rcremese pushed a commit to rcremese/MONAI that referenced this pull request Sep 2, 2024
Adding a network CellSamWrapper, a thin wrapper around SAM, which can be
used for 2D segmentation tasks.



### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [ ] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.

---------

Signed-off-by: am <am>
Signed-off-by: myron <amyronenko@nvidia.com>
Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Co-authored-by: am <am>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants