Implement dice cross entropy loss#1409
Conversation
Signed-off-by: yiheng-wang-nv <[email protected]>
|
/black |
|
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 [email protected]
Fixes #1157 .
Status
Ready
Types of changes
./runtests.sh --codeformat --coverage../runtests.sh --quick.make htmlcommand in thedocs/folder.