google / automl

Google Brain AutoML
Apache License 2.0
6.25k stars 1.45k forks source link

FATAL Flags parsing error #1151

Closed fereshteramez closed 2 years ago

fereshteramez commented 2 years ago

After downloading the pre-trained model efficientdet-d0, running the code below, gives me FATAL Flags parsing error:

!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.

Any ideas? Thank you.

mingxingtan commented 2 years ago

Looks like your min_score_thresh is a string, but it should be a float value.