parser.add_option("-i","--path_evaluation",dest="evaluation_path",help="Path to evaluation input.",default="./input/evaluation_data")
parser.add_option("--model_folder",dest="model_folder",help="Path to the model to evaluate.",default="./out/trained_models/frcnn_model/exported_model")
parser.add_option("-o","--path_output",dest="output_path",help="Path to base folder for output data.",default='./out')
print('[INFO] Finished conversion for ObjectDetectionMetrics.')
parser.add_option("-i","--predictions_file",dest="predictions_file",help="Path to predictions file as input.",default="../out/evaluation_ws_base/predictions.txt")
parser.add_option("-o","--path_output",dest="output_path",help="Path to output folder.",default='../out/convertedForObjectDetectionMetrics_ws_base')
(options,args)=parser.parse_args()
ifnotPath(options.predictions_file).is_file():
parser.error('Error: Could not find the prediction file. Check the path passed to -i or --prediction_file')
output_path=Path(options.output_path)
shutil.rmtree(str(output_path))
predictions_file=options.predictions_file
convertGroundtruths(output_path)
convertDetections(output_path,predictions_file)
print('[INFO] Finished conversion for ObjectDetectionMetrics.')
print('[INFO] Saved to folder {}'.format(str(output_path)))