edge_eval_python icon indicating copy to clipboard operation
edge_eval_python copied to clipboard

Error in edges_eval_img

Open Melkor007 opened this issue 3 years ago • 4 comments

Hi, I tried to run your code and encountered an error in function edges_eval_img(): TypeError: 'int' object is not subscriptable. I looked into it and found this line hard to understand: gt = [g.item()[1] for g in loadmat(gt)["groundTruth"][0]] # 0: Segmentation, 1: Boundaries as I understand it, "loadmat(gt)["groundTruth"]" altogether should be a 2-D numpy array for a ground truth image, but in that case g.item()[1] makes no sense. So what is the right data format of gt?

Melkor007 avatar Mar 30 '22 15:03 Melkor007

I stuck in the same problem too. QAQ

chencn2020 avatar Mar 30 '22 16:03 chencn2020