xxxliu95 / DGNet

Semi-supervised Meta-learning with Disentanglement for Domain-generalised Medical Image Segmentation
31 stars 7 forks source link

How do you calculate hausdorff distance? #9

Closed nekomiao123 closed 3 years ago

nekomiao123 commented 3 years ago

I noticed that you use the hausdorff distance as one of the metrics. But I could not find your code about calculating this distance. So I tried to use the scipy library to calculate. I found that the results are quite different. I always get larger results than the results given in the paper. So could you show me the code?

xxxliu95 commented 3 years ago

Hi code updated. Please find the calculation in inference.py. The parameters in the current version are not tuned hence the distance is larger. Please see the discussion in another issue. I will update the training soon.

nekomiao123 commented 3 years ago

Thanks a lot!