-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Implement dice cross entropy loss #1409
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
Conversation
Signed-off-by: yiheng-wang-nv <vennw@nvidia.com>
|
/black |
wyli
left a comment
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.
thanks!
|
I was trying to import DiceCELoss as I found it in the documentation of MONAI, but I keep receiving an ImportError. Does this mean this is still in progress or might there be some kind of issue? Thanks! |
Hi @sdesutter , could you post the error message here? The loss should be imported without errors as the corresponding unit test checked. I just downloaded the latest docker image ( docker pull projectmonai/monai:latest ) and tried to import this loss function and it also worked. |
The error I'm getting is: |
|
Inside of python, could you run: I wonder if, for example, you are using an older version of the code. |
This is what I got: MONAI version: 0.4.0 Optional dependencies: |
|
Ok, you're using version 0.4.0, and this feature was implemented after that. You'll probably want the master branch: Once you have the master branch, the printed config output should have something like: Here, 22 is the number of commits since the previous tag, 0.4.0, and |
This worked, the import is working now. |
Signed-off-by: yiheng-wang-nv vennw@nvidia.com
Fixes #1157 .
Status
Ready
Types of changes
./runtests.sh --codeformat --coverage../runtests.sh --quick.make htmlcommand in thedocs/folder.