POSTECH-IMLAB / FaceSpoofingDetection

GNU Lesser General Public License v3.0
24 stars 31 forks source link

Steps to run the program #3

Open cserezwan opened 6 years ago

cserezwan commented 6 years ago

Hello. Can you please explain the steps to run this code? Like how to run this program.

cserezwan commented 6 years ago

While running the train and testing file it's showing the following error: image

Can anyone give me the solution of this error?

kimna4 commented 6 years ago

Hello, Sorry for the late reply. I modified my code for readability.

First of all, you should down load Database for face spoofing such as CASIA, Idiap and MSU. Folder structure is like below. CASIA -> test_release -> image files -> train_release -> image files

Idiap -> test -> image files -> train -> image files

MSUMFSD-> "each folders of client" -> image files

Secondly, I used LibSVM. So, you have to include libSVM for Matlab.

And, just run "training.m" <--- spend so many time. If you want simple test, just run for a database. After finishing upper step, run "trainingAndTesting_JGP.m"

Following upper step, you can run this program.

cserezwan commented 6 years ago

Thanks for the reply. I've followed your instructions to run the program. Now I'm having a different problem. While running the "trainingAndTesting_JGP.m" file, I'm getting the following error:

`Undefined function or variable 'getHTER'.

Error in trainingAndTesting_JPG (line 343) [acc HTER ] = getHTER( Idiap_predict_label, Idiap_TestLabel, numFrames);`

image

Can you please give me some instructions to solve this error? Thanks in advance.

kimna4 commented 6 years ago

I uploaded the 'getHTER.m' file. You can use it. Thank you.

cserezwan commented 6 years ago

Thanks for the file.