Commit f3c6860b authored by 赵威's avatar 赵威

update path

parent a60a7ee1
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
...@@ -10,8 +10,7 @@ import numpy as np ...@@ -10,8 +10,7 @@ import numpy as np
import requests import requests
from PIL import Image from PIL import Image
# BASE_DIR = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) BASE_DIR = os.getcwd()
BASE_DIR = os.path.abspath(os.path.join(os.getcwd(), "../.."))
MODELS_DIR = os.path.join(BASE_DIR, "_models") MODELS_DIR = os.path.join(BASE_DIR, "_models")
FACEREC_PATH = os.path.join(MODELS_DIR, "dlib_face_recognition_resnet_model_v1.dat") FACEREC_PATH = os.path.join(MODELS_DIR, "dlib_face_recognition_resnet_model_v1.dat")
SHAPE_PATH = os.path.join(MODELS_DIR, "shape_predictor_68_face_landmarks.dat") SHAPE_PATH = os.path.join(MODELS_DIR, "shape_predictor_68_face_landmarks.dat")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment