tf_trt_models icon indicating copy to clipboard operation
tf_trt_models copied to clipboard

ImportError: No module named 'object_detection'

Open VincentDuf opened this issue 6 years ago • 1 comments

Hi, I'm trying to use the repository to test TF-TRT on the JetsonTX2 but when using python3 I try this: from tf_trt_models.detection import download_detection_model

I get the error ImportError: No module named 'object_detection'

What is weird is when I try the same command but in python (not python3), I have another error: ImportError: No module named google.protobuf The installation went all well, some ideas ? Thanks

VincentDuf avatar Nov 26 '18 15:11 VincentDuf

Add the path to object_detection in your terminal.

export PYTHONPATH=$PYTHONPATH:`pwd`:`pwd`/slim

This is also outlined in Tensorflow Object detection API here

Sri-vatsa avatar Mar 14 '19 07:03 Sri-vatsa