Facing the below error when trying to run Tensorflow Object Detection api

社会主义新天地 提交于 2020-04-12 07:25:52

问题


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'![enter image description here](https://i.stack.imgur.com/aP7BV.jpg)![enter image description here](https://i.stack.imgur.com/MfRIh.jpg)

来源:https://stackoverflow.com/questions/60709867/facing-the-below-error-when-trying-to-run-tensorflow-object-detection-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!