diff --git a/deploy/python/infer.py b/deploy/python/infer.py index 99d3b3f44d1eafd8a6560aa5c85c6531d6cdb649..ec2ab48dad3306ef649cbea85a934603c81fb8a7 100644 --- a/deploy/python/infer.py +++ b/deploy/python/infer.py @@ -12,7 +12,16 @@ # See the License for the specific language governing permissions and # limitations under the License. -import os +from __future__ import absolute_import +from __future__ import division +from __future__ import print_function + +import os, sys +# add python path of PadleDetection to sys.path +parent_path = os.path.abspath(os.path.join(__file__, *(['..'] * 3))) +if parent_path not in sys.path: + sys.path.append(parent_path) + import argparse import time import yaml