Traceback (most recent call last):


 "/usr/src/homeassistant/homeassistant/components/prometheus/__init__.py", line 160, in _metric

return self._metrics[metric]
KeyError: 'sensor_unit_°'

Traceback (most recent call last):


 "tools/train_net.py", line 201, in <module>

main()


 "tools/train_net.py", line 197, in main

run_test(cfg, model, args.distributed)


 "tools/train_net.py", line 128, in run_test

output_folder=output_folder,


 "/home/drl/workspace/spikelet/4/graindetection2/maskrcnn-benchmark/maskrcnn_benchmark/engine/inference.py", line 120, in inference

**extra_args)


 "/home/drl/workspace/spikelet/4/graindetection2/maskrcnn-benchmark/maskrcnn_benchmark/data/datasets/evaluation/__init__.py", line 22, in evaluate

return coco_evaluation(**args)


 "/home/drl/workspace/spikelet/4/graindetection2/maskrcnn-benchmark/maskrcnn_benchmark/data/datasets/evaluation/coco/__init__.py", line 23, in coco_evaluation

expected_results_sigma_tol=expected_results_sigma_tol,


 "/home/drl/workspace/spikelet/4/graindetection2/maskrcnn-benchmark/maskrcnn_benchmark/data/datasets/evaluation/coco/coco_eval.py", line 44, in do_coco_evaluation

coco_results["bbox"] = prepare_for_coco_detection(predictions, dataset)


 "/home/drl/workspace/spikelet/4/graindetection2/maskrcnn-benchmark/maskrcnn_benchmark/data/datasets/evaluation/coco/coco_eval.py", line 88, in prepare_for_coco_detection

mapped_labels = [dataset.contiguous_category_id_to_json_id[i] for i in labels]


 "/home/drl/workspace/spikelet/4/graindetection2/maskrcnn-benchmark/maskrcnn_benchmark/data/datasets/evaluation/coco/coco_eval.py", line 88, in <listcomp>

mapped_labels = [dataset.contiguous_category_id_to_json_id[i] for i in labels]
KeyError: 18.0`
