From 41e2d1cdbb8d247794b0f654dc5d8272ef77ce7f Mon Sep 17 00:00:00 2001 From: Feng <15993649+Linku218@user.noreply.gitee.com> Date: Sat, 28 Jun 2025 02:19:01 +0000 Subject: [PATCH] update object_detect.py Signed-off-by: Feng <15993649+Linku218@user.noreply.gitee.com> --- .../src/object_detect.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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 7a3a1369b..0a8fa9741 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 -- Gitee