'Getting flags parsing error while running EfficientDet-D0

After downloading the pre-trained model efficientdet-d0 (using Google automl repository), running the code below, gives me FATAL Flags parsing error. Any ideas how to fix this error? thank you.

!python model_inspect.py --runmode=saved_model_infer\
--saved_model_dir={saved_model_dir} \
--model_name={MODEL}  --input_image=testdata/img1.jpg\
--output_image_dir={serve_image_out} \
--min_score_thresh={min_score_thresh}  --max_boxes_to_draw={max_boxes_to_draw}

2022-04-26 12:47:34.531905: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory 2022-04-26 12:47:34.531923: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine. FATAL Flags parsing error: flag --min_score_thresh={min_score_thresh}: could not convert string to float: '{min_score_thresh}' Pass --helpshort or --helpfull to see help on flags.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source