问题
Facing the below error when trying to run Tensorflow Object Detection api
TypeError Traceback (most recent call last) <ipython-input-10-333ebdc7ae83> in <module>
1 model_name = 'ssd_mobilenet_v1_coco_2017_11_17'
----> 2 detection_model = load_model(model_name)
<ipython-input-4-f8a3c92a04a4> in load_model(model_name)
9 model_dir = pathlib.Path(model_dir)/"saved_model"
10
---> 11 model = tf.saved_model.load(str(model_dir))
12 model = model.signatures['serving_default']
13
~\Anaconda3\lib\site-packages\tensorflow_core\python\util\deprecation.py in new_func(*args, **kwargs) 'in a future version' if date is None else ('after %s' % date) instructions)
--> 324 return func(*args, **kwargs)
325 return tf_decorator.make_decorator(
326 func, new_func, 'deprecated',
TypeError: load() missing 2 required positional arguments: 'tags' and 'export_dir'
来源:https://stackoverflow.com/questions/60709867/facing-the-below-error-when-trying-to-run-tensorflow-object-detection-api