Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Phoenix0005 opened this issue Jan 6, 2022 · 5 comments

Comments

@Phoenix0005
Copy link

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
Copy link

Vontean commented Mar 21, 2022

I have the same problem. How to solve it?

@mhashim-sama
Copy link

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

@mateosere
Copy link

Same issue here

@AmazingGabriel16
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants