-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
CRF Post Processing as a MONAI Transform #2196
Comments
Should this issue be merged with #315? |
issue moved into #315 |
I'm reaching out because I've been trying to implement the same CRF postprocessing class (as you wrote above) in my post-processing pipeline and have been encountering some errors. I was wondering if you might be able to help me troubleshoot the issue or provide some guidance on how to properly apply this transform class.
Then following errors occur
|
the transform requires a dictionary input, but |
Thank you so much for the prompt response.
Using your advice, I tried to make some edits...
However, it still leads to other errors.
|
|
I am so sorry to bother you. Could you please let me know why this occurs at the terminal on VS code.
|
the command is only tested with Bash, not sure how to do the same in windows CLI, before you spend time compiling the module, you could also try the docker image releases https://hub.docker.com/r/projectmonai/monai/tags which has a compiled version, or use google colab and run |
Is your feature request related to a problem? Please describe.
In a number of deep learning based segmentation models, conditional random fields (CRFs) are used as a post processing step to process the output and produce segmentation maps that are more consistent with the underlying regions within an image.
Describe the solution you'd like
At the moment, MONAI provides CRF layers that can enable this. It may be beneficial to have dictionary/array Transforms that utilise CRF and do post processing - such that these can be used to compose a post processing transform that can perform the CRF in the post processing step.
Describe alternatives you've considered
Using CRF layer from MONAI as a separate model layer, that is attached to a model or the outputs from the model. It may be more convenient to separate this out into a Transform such that it can be quickly utilised in post processing steps.
Additional context
As an example, the following is an initial prototype to give an idea of how this may be approached:
Example usage of above as post processing would be:
Please let me know your thoughts about this, whether it makes sense to have as a Transform? If so, I am happy to work on this.
The text was updated successfully, but these errors were encountered: