CUFCTL / face-recognition

A GPU-accelerated real-time face recognition system based on classical machine learning algorithms
MIT License
23 stars 11 forks source link

MATLAB script throwing error on TrainFiles line 36 of CreateDatabase.m #15

Closed ctargon closed 8 years ago

ctargon commented 8 years ago

not sure when someone last modified this file, but its throwing an error of the following:

run_ica(false) Error using vertcat Number of fields in structure arrays being concatenated do not match. Concatenation of structure arrays requires that these arrays have the same set of fields.

Error in CreateDatabase (line 36) TrainFiles = [TrainFiles; entries];

Anyone recently change this file?

arlindohall commented 8 years ago

Do you have the wrong folder name for where the images are? Did you run it with the script?

Miller Hall Computer Engineering Clemson University 2016

On Oct 17, 2016 18:05, "ctargon" notifications@github.com wrote:

not sure when someone last modified this file, but its throwing an error of the following:

run_ica(false) Error using vertcat Number of fields in structure arrays being concatenated do not match. Concatenation of structure arrays requires that these arrays have the same set of fields.

Error in CreateDatabase (line 36) TrainFiles = [TrainFiles; entries];

Anyone recently change this file?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/CUFCTFACE/face-recognition/issues/15, or mute the thread https://github.com/notifications/unsubscribe-auth/AFr9PpQ-phmRfS-ivJwrUJHSmXQSup8xks5q0_ERgaJpZM4KZKQt .

ctargon commented 8 years ago

yep me and Will both ran it with the scripts and without the scripts. still same errors

arlindohall commented 8 years ago

Did we ever resolve this?

ctargon commented 8 years ago

So the issue is primarily a MacOS issue. MacOS doesn't have the "shuf" command that is standard in linux. You can download a package that installs it as "gshuf" for MacOS so we could change a script to use that command when running on MacOS possibly. Additionally, Matlab is reading the orl_faces directory and including .DS_Store (a MacOS hidden file) and "." and "..", which was crashing the code. I think this is primarily a MacOS issue that we can talk about at the next meeting, but for now we can close this issue.