When I run the file local_evaluation.py
, I get the following error:
Predicting Segmentation Masks: 100%|█████████████████████████████████████████████████████████████████████████████████████████| 1786/1786 [08:53<00:00, 3.35it/s]
Evaluating results: 74%|██████████████████████████████████████████████████████████████████████████▏ | 1324/1786 [03:07<01:05, 7.06it/s]
Traceback (most recent call last):
File "/Users/sourish/Projects/suadd-2023-semantic-segmentation-starter-kit/local_evaluation.py", line 100, in <module>
evaluate(LocalEvalConfig)
File "/Users/sourish/Projects/suadd-2023-semantic-segmentation-starter-kit/local_evaluation.py", line 76, in evaluate
all_metrics[fname] = calculate_metrics(semantic_annotation, semantic_prediction)
File "/Users/sourish/Projects/suadd-2023-semantic-segmentation-starter-kit/local_evaluation.py", line 38, in calculate_metrics
mean_iou_score = mean_iou(semantic_annotation, semantic_prediction)
File "/Users/sourish/Projects/suadd-2023-semantic-segmentation-starter-kit/local_evaluation.py", line 28, in mean_iou
numer = np.sum(class_annotation & class_prediction, axis=(0,1))
ValueError: operands could not be broadcast together with shapes (2250,1550) (2200,1550)
This is using the default random model.