Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inference with point prompt #23

Open
tinalmas opened this issue Sep 13, 2023 · 1 comment
Open

Inference with point prompt #23

tinalmas opened this issue Sep 13, 2023 · 1 comment

Comments

@tinalmas
Copy link

tinalmas commented Sep 13, 2023

Dear Author, thanks for the nice work! My question is about the inference with point prompt. From the paper, ' For inference with point prompt, we calculate the center of the prompts and then crop a small patch surrounding this center, which has the same size as that for training, and do inference on the particular patch.' Do you mean that you only need to predict the segmentation result on one small patch where the point is in the center? What if the tumor is larger than the small patch?In this way, will the method be applicable to organ segmentation, since the organ could be much larger? Thanks!

@peterant330
Copy link
Collaborator

Dear Author, thanks for the nice work! My question is about the inference with point prompt. From the paper, ' For inference with point prompt, we calculate the center of the prompts and then crop a small patch surrounding this center, which has the same size as that for training, and do inference on the particular patch.' Do you mean that you only need to predict the segmentation result on one small patch where the point is in the center? What if the tumor is larger than the small patch?In this way, will the method be applicable to organ segmentation, since the organ could be much larger? Thanks!

Yes, you are right. Actually, the size of the patch is a very important hyper-parameter. We select the patch size according to the size of tumors in the training set so that it can cover most of the cases. For organ segmentation, one way is to increase the patch size during the training, or you can use multiple prompts and conduct inference for each prompt (maybe using a sliding window inference method) and finally integrate all the predictions.

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

No branches or pull requests

2 participants