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

The link of pretrained model is dead #1

Open
zhhsf opened this issue Jul 20, 2024 · 5 comments
Open

The link of pretrained model is dead #1

zhhsf opened this issue Jul 20, 2024 · 5 comments

Comments

@zhhsf
Copy link

zhhsf commented Jul 20, 2024

Hi,

Would you please update the download link of multi_site_2d_transformer_Unet_mit_b5_0.81.pth and pmb_2d_transformer_Unet_mit_b5.pth?

Thanks

Hua

@jinghangli98
Copy link
Owner

I am working on a pypi package as well. Should be released with the model by end of the week

@jinghangli98
Copy link
Owner

The PyPI package installation and the command line installation should be good now. Let me know if you encounter any issues

@zhhsf
Copy link
Author

zhhsf commented Jul 28, 2024

Hi,

Thank you for the quick update. The code runs smoothly, but the segmentation results are poor in the corpus callosum, basal ganglia, and external capsule areas.

Hua
wmh_seg_result

@jinghangli98
Copy link
Owner

During training we did not include the lesions on our 7T FLAIR images in the corpus callosum in order to match the segmentation masks provided by the WMH segmentation challenge. For other regions, perhaps you can try turning the fast flag off, which is running inference axially, sagittally, and coronally. For command line usage, I believe the default is doing the prediction in these three views. In python you can set fast to False like so.

from wmh_seg import wmh_seg
import nibabel as nib
img = nib.load('FLAIR.nii').get_fdata()
out = wmh_seg(img,  batch=1, fast=False)

We have another model that can include the hyperintensities in the corpus callosum area. I can update the code to allow the flexibility choosing models.

@zhhsf
Copy link
Author

zhhsf commented Jul 28, 2024

Thanks for your answer! Would you please provide the download link of the model including corpus callosum?

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