我使用TensorFlow对象检测API训练模型。它工作得很好,我正试图为低端设备出口。我无法使用。
导出它。python models/research/object_detection/export_tflite_ssd_graph.py
--input_type image_tensor
--pipeline_config_path output/training/001/pipeline.config
--trained_checkpoint_prefix output/training/001/ckpt-40
--output_directory exported-models/tf_lite_inference_model add_postprocessing_op=true
显示错误。
export_tflite_ssd_graph_lib.export_tflite_graph(
File "C:Usersinspironanaconda3libsite-packagesobject_detectionexport_tflite_ssd_graph_lib.py", line 241, in export_tflite_graph
image = tf.placeholder(
File "C:Usersinspironanaconda3libsite-packagestensorflowpythonopsarray_ops.py", line 3176, in placeholder
raise RuntimeError("tf.placeholder() is not compatible with "
可以通过安装tf-nightly来解决。
python -m pip install tf-nightly
更多参考,请查看Issue on Tensorflow Model Repo。