oarriaga / face_classification

Real-time face detection and emotion/gender classification using fer2013/imdb datasets with a keras CNN model and openCV.
MIT License
5.59k stars 1.59k forks source link

raise IOError(f'No file or directory found at {filepath_str}') #159

Open kwlaial opened 2 years ago

kwlaial commented 2 years ago

image

I have encountered this issue when I run the video_emotion_gender_demo.py ,may I know how can I solve this issue? Thank you!

Hyrtsi commented 2 years ago

Which folder are you running the script from? I guess it's expecting you to run it from src folder. If this is not clear for you, let me put it this way.

  1. Navigate to the face_classification/src directory
  2. Run the script from there: python3 video_emotion_gender_demo

The script has hardcoded paths for the directories and expects you to run the script from that exact folder. I suspect you're running it from some location outside the repository and that's why the error arises.