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

Switch Scribbles optimisation to numpymaxflow #751

Merged

Conversation

masadcv
Copy link
Collaborator

@masadcv masadcv commented Apr 21, 2022

Signed-off-by: masadcv [email protected]

Recent update to scribbles added torchmaxflow as dependency. As it is targetted for specific pytorch versions, it limits the usable pytorch version to specific versions (see #746).
Also see related discussion to this at: #731

This PR changes the dependency to numpymaxflow - a numpy-based maxflow implementation. This will release any pytorch version dependencies from monai label.

I have tested this on Ubuntu. May need to be tested for installation and a scribbles example on Windows.

masadcv added 2 commits April 21, 2022 19:06
Signed-off-by: masadcv <[email protected]>
Signed-off-by: masadcv <[email protected]>
@SachidanandAlle SachidanandAlle merged commit d09ec5a into Project-MONAI:main Apr 23, 2022
@SachidanandAlle
Copy link
Collaborator

The basic functionality looks good to me.. you can continue to improve further on accuracy (specially edges) as another task.
This is helpful (by not forcing specific torch dependency)

@SachidanandAlle SachidanandAlle added the 0.4.0 Targeted to Release version 0.4 label Apr 23, 2022
@masadcv
Copy link
Collaborator Author

masadcv commented Apr 23, 2022

Many thanks! Will looking into improving this further in coming days

@masadcv masadcv deleted the swtich-scribbles-to-numpymaxflow branch April 23, 2022 14:31
@SachidanandAlle
Copy link
Collaborator

FYI.. I have verified it on both windows and ubuntu... windows all good..

@masadcv
Copy link
Collaborator Author

masadcv commented Apr 23, 2022

Thanks for confirming this! I really need to set everything up in a Windows env...

Douwe-Spaanderman pushed a commit to Douwe-Spaanderman/MONAILabel that referenced this pull request Dec 9, 2022
* switch to numpymaxflow

Signed-off-by: masadcv <[email protected]>

* fix flake8

Signed-off-by: masadcv <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.4.0 Targeted to Release version 0.4
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants