To calculate the semantic segmentation oAcc, the denominator at ForAINet/PointCloudSegmentation/torch_points3d/datasets/panoptic/treeins_set1.py(204)final_eval() is originally written as sum(true_positive_classes[sem_classcount_final])/float(sum(positive_classes[[sem_classcount_final]])), however, this will raise the error: TypeError: only size-1 arrays can be converted to Python scalars. The bug is fixed by removing the brackets of [sem_classcount_final] in the denominator, which I suspect is a typo. The corrected line should be: sum(true_positive_classes[sem_classcount_final])/float(sum(positive_classes[sem_classcount_final])).
To calculate the semantic segmentation oAcc, the denominator at
ForAINet/PointCloudSegmentation/torch_points3d/datasets/panoptic/treeins_set1.py(204)final_eval()
is originally written assum(true_positive_classes[sem_classcount_final])/float(sum(positive_classes[[sem_classcount_final]]))
, however, this will raise the error:TypeError: only size-1 arrays can be converted to Python scalars
. The bug is fixed by removing the brackets of[sem_classcount_final]
in the denominator, which I suspect is a typo. The corrected line should be:sum(true_positive_classes[sem_classcount_final])/float(sum(positive_classes[sem_classcount_final]))
.