-
Notifications
You must be signed in to change notification settings - Fork 84
730 retinal oct rpd segmentation #748
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
730 retinal oct rpd segmentation #748
Conversation
…files.yaml. Fixed case-sensitivity for .png/.PNG in dataset/data.py. Made confidence threshold an external argument.
… instructions in readme.
@yiheng-wang-nv here is my draft PR |
ci/install_scripts/install_retinalOCT_RPD_segmentation_dependency.sh
Outdated
Show resolved
Hide resolved
Hi @ybagdasa , thanks for the PR contribution. For |
Format test can be fixed according to: https://github.com/Project-MONAI/model-zoo/actions/runs/14742610314/job/42137993243?pr=748#step:7:67 |
I will look at this PR later this week |
@yiheng-wang-nv When running flake8 on the code it flags a lot of mixed-case naming conventions (N800 flags). A lot of the naming comes from the pycocotools api which used mixed-case naming for functions and variables. Having everything lowercase will probably hinder the readability of the code at this point. Is this a strict requirement or can I somehow skip it? |
ci/install_scripts/install_retinalOCT_RPD_segmentation_dependency.sh
Outdated
Show resolved
Hide resolved
Signed-off-by: Yiheng Wang <vennw@nvidia.com>
Hi @ybagdasa , sorry I cannot see the error you mentioned, the error I saw is from |
…dical-ml/monai-model-zoo into 730-retinalOCT_RPD_segmentation
@yiheng-wang-nv |
Signed-off-by: Yiheng Wang <vennw@nvidia.com>
Hi @ybagdasa , thanks for the updates and providing me the permissions. I pushed a commit to fix the black and pre-commit issues. Now, our CI can reach to the flake8 errors: https://github.com/Project-MONAI/model-zoo/actions/runs/15105923819/job/42454628204?pr=748 I think we can skip N802, N803 and N806 errors, but others may need to be solved |
Signed-off-by: Yiheng Wang <vennw@nvidia.com>
Hi @ybagdasa , I updated, and could you help to resolve other issues? Like line too long (https://github.com/Project-MONAI/model-zoo/actions/runs/15106735909/job/42456940644?pr=748) |
@yiheng-wang-nv I was able to do ./runtests.sh up through pytype. The error popped up here: |
Hi @ybagdasa , thanks for the updates. The issue does not happen in github's workflow, thus we can ignore it (may due to different environment). I will help to solve the pre-merge CPU related issues this week, then this PR can be merged. |
Signed-off-by: Yiheng Wang <vennw@nvidia.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ybagdasa and @yiheng-wang-nv I've had a look through the contribution and had a few comments to make. I haven't tried running it but from the conversation it seems it's being tested a lot anyway so I'm sure that's fine. I am concerned that there's a lot of code here and very little actual bundle definition, this code is coming from existing sources so that's understandable as an adaptation into the bundle format. I would still suggest looking at how to reduce this code somehow by using existing libraries perhaps. It's not clear what a lot of the code does either and would benefit with a lot more commentary/docstrings in at least the top level definitions.
I see that Miniconda is being used in the tests now, I think I missed why this was. This required a number of changes to other test scripts so I wonder if it's needed. It might help to provide an environment.yaml file to define what environment to construct rather than rely on commands, this might clean up some of the logic.
The flake complaints relate to variable names as you see, I would suggest fixing these or using the ignore comments if you don't want to change this code vs. the original source.
Thanks!
…hon 3.10. Modified metadata.json, README.md, and ./docs/requirements.txt files accordingly.
Hi @ybagdasa @yiheng-wang-nv this is definitely making progress. If we have a working build for Python 3.10 we can look into removing the Miniconda use in the CICD system and simplify the implementation. Other than that the code is well commented and a few remaining issues can be addressed easily I think. |
@ericspod @yiheng-wang-nv I will change the install instructions in the readme to reflect the current working configuration. Other than that, is there anything else left to resolve for this PR? |
Hi @ybagdasa , can I confirm now the model supports to work on python 3.10? If so, no other comments on my side. After you push the readme changes, I will revert the conda CI changes and ensure the model works. |
…dical-ml/monai-model-zoo into 730-retinalOCT_RPD_segmentation
Hi @ybagdasa , could you fix the pre commit issue? https://results.pre-commit.ci/run/github/490124346/1753149419.xfcqB10AQdC5-UPubS5znQ |
…dical-ml/monai-model-zoo into 730-retinalOCT_RPD_segmentation
Done :) |
@yiheng-wang-nv @ericspod Is there anything else I need to do for this? |
Hi @ybagdasa if you've addressed things then please turn this into a full PR (not a draft) and @yiheng-wang-nv can have one more look at things. I'll enable tests and see how they do as well. |
Signed-off-by: Yiheng Wang <vennw@nvidia.com>
Signed-off-by: Yiheng Wang <vennw@nvidia.com>
/build |
Hi @ybagdasa I reverted the py3.9 related changes, this PR can merge after passing all py3.10 based tests |
Signed-off-by: Yiheng Wang <vennw@nvidia.com>
/build |
Fixes # .
Description
This is a proposed segmentation model to add to the model zoo.
Status
Ready for review/work in progress.
Please ensure all the checkboxes:
./runtests.sh --codeformat
.version
andchangelog
inmetadata.json
if changing an existing bundle.CONTRIBUTING.md
).monai
,pytorch
andnumpy
are correct inmetadata.json
.eval_metrics
of the provided weights and TorchScript modules.large_file.yml
./home/your_name/
for"bundle_root"
).