yaojieliu / ECCV20-STDN

Source code for ECCV 2020 paper: On Disentangling Spoof Trace for Generic Face Anti-Spoofing
http://cvlab.cse.msu.edu/project-face-anti.html
Other
152 stars 35 forks source link

what are scores mean? #18

Open AtefehBaniasadi opened 3 years ago

AtefehBaniasadi commented 3 years ago

Hi

First of all, thank you for sharing your codes

I ran your code with a pre-trained model on my own dataset and for one of the images I got this score "0.270, -0.016, -0.008, -0.015, -0.006", Could you please what these mean?

Thanks,

harrismohammed commented 3 years ago

98214042-8c945500-1f78-11eb-81c3-5ba111882d6c

The Values mean M, s, b, C, T respectively.

Screenshot from 2021-02-23 13-50-23

use this for G(I)

I am not able to find Alpha0, If you find let me know

2

AtefehBaniasadi commented 3 years ago

Hi

Thank you for your rapid response.

How can I use those scores to get the final decision? Indeed, I would like to know what is the label of each image (Real or Fake)?

Which one of these values (M, s, b, C, T ) can help me know if the image is live or spoof

Many thanks,

harrismohammed commented 3 years ago

you need to use those M,s,b,C,T values in the formula i have attached above. Substitute M in equation 3 and use s,b,C,T in g(I) equation.

Find the score by substituting the values in score equation

AtefehBaniasadi commented 3 years ago

Is there a python script in this repo to get this value(M,s,b,C,T) and compute the score?

harrismohammed commented 3 years ago

nope. it is not possible, you need to set alpha0 value by testing empirically, based on the dataset. you can use this code as a starter to train the dataset and test.

santo4ul commented 3 years ago

Calculating the final score seems a little complicated.

How do we set alpha empirically? any thumb rule?

Kapil-23 commented 3 years ago

Hi @santo4ul did you get clue to calculate score ?

jin1041 commented 8 months ago

@Kapil-23 did you get clue to calculate score ?