x4nth055 / emotion-recognition-using-speech

Building and training Speech Emotion Recognizer that predicts human emotions using Python, Sci-kit learn and Keras
MIT License
579 stars 231 forks source link

Error while running the pretrained model: No such file or directory: 'train_custom.csv' #35

Open Phoenix0005 opened 2 years ago

Phoenix0005 commented 2 years ago

FileNotFoundError Traceback (most recent call last)

in () 7 rec = EmotionRecognizer(model=my_model, emotions=['sad', 'neutral', 'happy'], balance=True, verbose=0) 8 # train the model ----> 9 rec.train() 10 # check the test accuracy for that model 11 print("Test score:", rec.test_score()) 10 frames /usr/local/lib/python3.7/dist-packages/pandas/io/parsers.py in __init__(self, src, **kwds) 2008 kwds["usecols"] = self.usecols 2009 -> 2010 self._reader = parsers.TextReader(src, **kwds) 2011 self.unnamed_cols = self._reader.unnamed_cols 2012 pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader.__cinit__() pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._setup_parser_source() FileNotFoundError: [Errno 2] No such file or directory: 'train_custom.csv'
Vontean commented 2 years ago

I have the same problem. How to solve it?

mhashim-sama commented 2 years ago

I am also facing the same issue If anyone has solved this then please share the solution

mateosere commented 2 years ago

Same issue here

AmazingGabriel16 commented 2 years ago

Same issue here, even find the location of where it's requesting the file train_custom.csv

Followed the stack trace and went to emotion_recognition.py. That's all I could find really, I'm just really unsure as well on how to solve it.

AmazingGabriel16 commented 2 years ago

Hey there, I've managed to find a solution:

Solution: Make sure that the terminal is operating in the same directory level as the rest of the emotion recognition using speech files

image

In this screenshot, I've just right clicked and opened the terminal in that directory path