luanshiyinyang / FacialExpressionRecognition

人脸识别之表情识别项目相关源码
GNU General Public License v3.0
699 stars 155 forks source link

Why can't I use the absolute path? #50

Open waitingfor-you opened 3 months ago

waitingfor-you commented 3 months ago

Traceback (most recent call last): File "C:\Users\Acer\Desktop\ちよこ\src\recognition_camera.py", line 106, in predict_expression() File "C:\Users\Acer\Desktop\ちよこ\src\recognition_camera.py", line 80, in predict_expression faces = blaze_detect(frame) File "C:\Users\Acer\Desktop\ちよこ\src\blazeface__init.py", line 26, in blaze_detect faceDetector = blazeFaceDetector(modelType, scoreThreshold, iouThreshold) File "C:\Users\Acer\Desktop\ちよこ\src\blazeface\blazeFaceDetector.py", line 25, in init self.initializeModel(type) File "C:\Users\Acer\Desktop\ちよこ\src\blazeface\blazeFaceDetector.py", line 34, in initializeModel self.interpreter = tf.lite.Interpreter(model_path=r'C:\Users\Acer\Desktop\ちよこ\src\blazeface\weights\face_detection_back.tflite') File "C:\Users\Acer.conda\envs\FER\lib\site-packages\tensorflow\lite\python\interpreter.py", line 198, in init__ model_path, self._custom_op_registerers)) ValueError: Could not open 'C:\Users\Acer\Desktop\ちよこ\src\blazeface\weights\face_detection_back.tflite'. [ WARN:1] terminating async callback