diff --git a/python/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_picture/src/object_detect.py b/python/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_picture/src/object_detect.py index 7a3a1369b14ce859e66e32dbcf0ec6b86e04d5e0..0a8fa97418904bbd64e243d6c45332748c123abb 100644 --- a/python/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_picture/src/object_detect.py +++ b/python/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_picture/src/object_detect.py @@ -1,10 +1,13 @@ import sys -sys.path.append("../../../../common") -sys.path.append("../") import os -import numpy as np import acl -import acllite_utils as utils +path = os.path.dirname(os.path.abspath(__file__)) +sys.path.append(os.path.join(path, "..")) +sys.path.append(os.path.join(path, "../../../../common/")) +sys.path.append(os.path.join(path, "../../../../common/acllite")) +import numpy as np + + from PIL import Image, ImageDraw, ImageFont from acllite_imageproc import AclLiteImageProc import constants as const