python - ImportError: No module named 'nets' -
i trying convert trained_checkpoint final frozen model export_inference_graph.py script provided in tensorflow/models,but following error results. , yes,i have setup $pythonpath "models/slim" still error,can me out?
$ echo $pythonpath :/home/ishara/tensorflow_models/models:/home/ishara/tensorflow_models/models/slim
*****************************problem****************************************************************************
$sudo python3 object_detection/export_inference_graph.py --input_type image_tensor --pipeline_config_path = "ssd_inception_v2_pets.config" --trained_checkpoint_prefix="output/model.ckpt-78543" --output_directory="birds_inference_graph.pb" traceback (most recent call last): file "object_detection/export_inference_graph.py", line 74, in <module> object_detection import exporter file "/usr/local/lib/python3.5/dist-packages/object_detection-0.1-py3.5.egg/object_detection/exporter.py", line 28, in <module> file "/usr/local/lib/python3.5/dist-packages/object_detection-0.1-py3.5.egg/object_detection/builders/model_builder.py", line 30, in <module> file "/usr/local/lib/python3.5/dist-packages/object_detection-0.1-py3.5.egg/object_detection/models/faster_rcnn_inception_resnet_v2_feature_extractor.py", line 28, in <module> importerror: no module named 'nets'
i have been struggling days now,tried many solutions nothing work using ubuntu 16.04 tensorflow-gpu version.
i did same error, because had missed out put slim package tensorflow/models folder. slim package on https://github.com/tensorflow/models
wiki
Comments
Post a Comment