-
Notifications
You must be signed in to change notification settings - Fork 16
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
BAMF - NNUnet Liver CT #50
Conversation
@LennyN95 , this one is ready for review and merge :) |
Hi Rahul, Great! Here's a checklist of some points to be resolved (most of which transfer to the other open PRs, too):
Once all points are resolved, please be prepared to provide us with two or three example cases (that is, an example image and a segmentation generated via your model) so that we can run the MHub implementation locally and validate the output against the provided delineation as a sanity check. Best, |
@LennyN95 , I am back to these repos and hoping to close them all in the next 1-2 days. For this PR, I am getting an error while using custom module:
Let me know if I missed anything. Once this is good to go, the other two MRs would be minimal work. Thanks! |
I could not reproduce the issue you described. I did a test build and If you run |
HI @LennyN95 , thanks for the detailed comments and suggestions. I have resolved all of them and updated this MR. Regarding the base image, I have the following:
|
I still get the same error:
|
Hey @rahul99, did you re-build the image? Please try this: # pull the latest image again
docker pull mhubai/base:latest
# confirm you have the newest base image (d8382753d763)
docker images | grep mhubai/base
# change wd to the dockerfiles folder of the model
cd models/bamf_nnunet_ct_liver/dockerfiles
# build the model (pulling from your fork)
docker build -t dev/bamf_nnunet_ct_liver --build-arg MHUB_MODELS_REPO=https://github.com/bamf-health/mhub-models::bamf_nnunet_ct_liver --no-cache . Then try running |
Great news! We still have some checks failing due to some missing fields in the For the test phase, we will require a public example to verify the model works correctly.
|
Hey @LennyN95 , the build was probably failing due to |
@LennyN95 , apologies the following fields were still missing from meta.json:
Updating them now... |
Updated the PR. Let me know if it goes through. I will prepare test data in the mean time |
the sanity check failed again with the following error:
It looks like its looking for |
Great catch @rahul99! Sorry for the confusion, I updated the documentation and we'll stick with the US spelling for now. |
@LennyN95 , I am getting the following error after latest changes:
I think we are missing one more parameter in the decorator? I checked similar declaration in your modules (for example nnunet-runner) but couldn't find anything. Please advice :) |
@rahul99 The second argument should be the path (I forgot to mention in my example, I'm sorry...). @IO.Output('out_data', 'bamf_processed.nrrd', 'nrrd:mod=seg:processor=bamf', data='in_data', the="keep the two largest connected components of the segmentation and remove all other ones") |
/test sample:
idc_version: 17.0
data:
- SeriesInstanceUID: 1.3.6.1.4.1.14519.5.2.1.3344.4008.288401067690076379005498612621
aws_url: s3://idc-open-data/722f2824-9c7a-4342-9b96-213b70a94768/*
path: dicom
reference:
url: https://www.dropbox.com/scl/fi/50ktdmzp91v5gqgl4ogv7/bamf_nnunet_ct_liver.zip?rlkey=qvya90xufkic5iebpoywl1g9j&dl=0 Test Results (24.03.28_17.30.31_kb1YE6N1mX)id: bb9d29b3-cf32-4a9d-ba08-e6c18cad6bb5
date: '2024-03-28 17:53:33'
checked_files:
- file: bamf_nnunet_ct_liver.seg.dcm
path: /app/test/src/1.3.6.1.4.1.14519.5.2.1.3344.4008.288401067690076379005498612621/bamf_nnunet_ct_liver.seg.dcm
checks:
- checker: DicomsegContentCheck
notes:
- label: Segment Count
description: The number of segments identified in the inspected dicomseg file.
info: 1
summary:
files_missing: 0
files_extra: 0
checks:
DicomsegContentCheck:
files: 1
conclusion: true |
@rahul99 could you upload 1-5 images for the model card that show the model in action? This is not a hard requirement, thus I moved on with the push. However, from a UX perspective, visuals add a great value to the model page and also help readers to quickly recognize a model (especially as the model card is made to look similar across all models, images can be a great help here). |
No description provided.