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

About BraTS sample result #212

Closed
springbreeze7111 opened this issue Feb 19, 2025 · 5 comments
Closed

About BraTS sample result #212

springbreeze7111 opened this issue Feb 19, 2025 · 5 comments

Comments

@springbreeze7111
Copy link

Thanks to this effort, I tried to reproduce the BRATS2021 dataset, and I modified the saved file to NII format. I wondered why the final sample result was an MRI image without a mask, how do I get the result of the generated prediction mask to compute the metric?

@springbreeze7111 springbreeze7111 closed this as not planned Won't fix, can't repro, duplicate, stale Feb 19, 2025
@FelixzeroSun
Copy link

Can I ask u how do you solve this problem

@springbreeze7111
Copy link
Author

Can I ask u how do you solve this problem

I modify the return value saved by the sample script, specifically in line 136 of segmentation_sample. I change the sample to cal, which is what looks like the predicted mask, and then modify the code behind it to save it in .nii format, and then go back and calculate the metrics. This is my current idea and I'm trying it all over again.

@FelixzeroSun
Copy link

FelixzeroSun commented Feb 19, 2025

Can I ask u how do you solve this problem

I modify the return value saved by the sample script, specifically in line 136 of segmentation_sample. I change the sample to cal, which is what looks like the predicted mask, and then modify the code behind it to save it in .nii format, and then go back and calculate the metrics. This is my current idea and I'm trying it all over again.

Thanks for your reply!
Do you mean this line from the first screenshot to the second one?
Did you do any other modifications?
Thanks in advance!

Image

Image

@springbreeze7111
Copy link
Author

Can I ask u how do you solve this problem

I modify the return value saved by the sample script, specifically in line 136 of segmentation_sample. I change the sample to cal, which is what looks like the predicted mask, and then modify the code behind it to save it in .nii format, and then go back and calculate the metrics. This is my current idea and I'm trying it all over again.

Thanks for your reply! Do you mean this line from the first screenshot to the second one? Did you do any other modifications? Thanks in advance!

Image

Image

Right, as modified in your second picture. My other modifications are mainly for the file saving format changes in the source code. For example, at the end of the sample script you can see that the author saved the output as a jpg, which I changed to save it in the same .nii format as the original dataset. For the previous modification of the return you can see #106 (comment) . This discussion has shown what all the return values represent.

@FelixzeroSun
Copy link

Thanks for your help, and I finally figure it out. You made my day bro!

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