HuXiaoling / TopoLoss

Code for the NeurIPS 2019 paper: Topology-Preserving Deep Image Segmentation
MIT License
155 stars 24 forks source link

problem about "cofaces_of_persistence_pairs" #13

Open KaijunGao opened 2 years ago

KaijunGao commented 2 years ago

hi, I'm running topoloss.py, but I have a problem. My input image has 7 holes, but the calculation results of len(pairs_lh[0][0]) is only 6, and bcp_lh and dcp_lh are 6 too. At the same time, note that the starting and ending points of bcp_lh and dcp_lh do not correspond. No matter how I change pictures, the number will always be one less. I want to ask, is this a gudhi library problem or a debugging problem?

HuXiaoling commented 2 years ago

Really sorry for late reply. Could you please elaborate your problem? Such as attaching the sample images here. You are also recommended to use the offline file topoloss.py and the GUDHI library to have a further check.