simonefinelli / ASL-Real-time-Recognition

Recognize the American Sign Language in a video stream and translate it to American word by word.
MIT License
16 stars 2 forks source link

IndexError: list index out of range #1

Open SoulMateWF opened 2 years ago

SoulMateWF commented 2 years ago

PS C:\MyProject\ASL-Real-time-Recognition-main> python train_model.py Traceback (most recent call last): File "train_model.py", line 28, in labels = labels_to_number(TRAIN_PATH) File "C:\MyProject\ASL-Real-time-Recognition-main\data_utils.py", line 12, in labels_to_number classes = [i.split(os.path.sep)[3] for i in glob.glob(path + '')] File "C:\MyProject\ASL-Real-time-Recognition-main\data_utils.py", line 12, in classes = [i.split(os.path.sep)[3] for i in glob.glob(path + '')] IndexError: list index out of range

simonefinelli commented 2 years ago

SoulMateWF only now I have seen the open problem, so I apologize for the late reply.

Anyway, I took a look at the problem and in my opinion it could be due to a path problem. I see that you are working under Windows, unfortunately the code was developed and tested in a Linux environment.

You can try to copy the whole project to google drive and use Google Colab to run the tests.

Let me know if you have any further problems.