NifTK / NiftyNet

[unmaintained] An open-source convolutional neural networks platform for research in medical image analysis and image-guided therapy
http://niftynet.io
Apache License 2.0
1.36k stars 403 forks source link

Segmentation loss #427

Closed poorneshwaran closed 5 years ago

poorneshwaran commented 5 years ago

I have used your code from past week. It works good, recently i got error like "segmentation loss: Could not import object"dice" from "dense_vnet_abdominal_ct.dice_hinge". Module not found dense_vnet_abdominal_ct.

Are you matched or default to maintain "dense_vnet_abdominal_ct.dice_hinge" by dense_vnet_abdominal_ct folder.

python version =3.6 conda tensorflow 1.14 these are the package I'm using

ericspod commented 5 years ago

Can you give us the ini file you used and a full stack trace of the error?

poorneshwaran commented 5 years ago

I put the niftynet inside the folder like [my-folder/niftynet]. And I download dense_vnet_abdominal_ct_zoo in outside folder. the above error disappear. In the code , join the path like home,extension[default]. I found the home + extension + dense_vnet_abdominal_ct.dice_hinge is globally defined.

ericspod commented 5 years ago

Does that resolve your issue? I think the path to that directory is indeed hard coded somewhere.

poorneshwaran commented 5 years ago

The issue is resolved. thanks for your support Kerfoot.