You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "evaluate_patients.py", line 400, in
metrics_acdc.main(path_gt, path_pred, path_eval)
File "/home/sivajyothi/acdc_segmenter/metrics_acdc.py", line 312, in main
df = compute_metrics_on_directories_raw(path_gt, path_pred)
File "/home/sivajyothi/acdc_segmenter/metrics_acdc.py", line 109, in compute_metrics_on_directories_raw
hausdorff_list.append(hd(gt_binary, pred_binary, voxelspacing=zooms, connectivity=1))
File "/home/sivajyothi/acdc_segmenter/src/medpy/medpy/metric/binary.py", line 348, in hd
hd1 = __surface_distances(result, reference, voxelspacing, connectivity).max()
File "/home/sivajyothi/acdc_segmenter/src/medpy/medpy/metric/binary.py", line 1166, in __surface_distances
raise RuntimeError('The second supplied array does not contain any binary object.')
RuntimeError: The second supplied array does not contain any binary object.
I'm getting this error while evaluating the model.
As mentioned in the previous issue i reinstalled matplotlib, but i'm getting this error. Can you please help me to resolve this issue???
The text was updated successfully, but these errors were encountered:
This probably does not have to do with the model, since it seems your problem comes from the fact that it asks you for binary data and you may be giving it, multi-class data maybe?
Traceback (most recent call last):
File "evaluate_patients.py", line 400, in
metrics_acdc.main(path_gt, path_pred, path_eval)
File "/home/sivajyothi/acdc_segmenter/metrics_acdc.py", line 312, in main
df = compute_metrics_on_directories_raw(path_gt, path_pred)
File "/home/sivajyothi/acdc_segmenter/metrics_acdc.py", line 109, in compute_metrics_on_directories_raw
hausdorff_list.append(hd(gt_binary, pred_binary, voxelspacing=zooms, connectivity=1))
File "/home/sivajyothi/acdc_segmenter/src/medpy/medpy/metric/binary.py", line 348, in hd
hd1 = __surface_distances(result, reference, voxelspacing, connectivity).max()
File "/home/sivajyothi/acdc_segmenter/src/medpy/medpy/metric/binary.py", line 1166, in __surface_distances
raise RuntimeError('The second supplied array does not contain any binary object.')
RuntimeError: The second supplied array does not contain any binary object.
I'm getting this error while evaluating the model.
As mentioned in the previous issue i reinstalled matplotlib, but i'm getting this error. Can you please help me to resolve this issue???
The text was updated successfully, but these errors were encountered: