huguesva / Face-Anti-Spoofing-Neural-Network

Implementation of "Learning Deep Models for Face Anti-Spoofing: Binary or Auxiliary Supervision" in PyTorch.
87 stars 22 forks source link

Cannot find gen_anchor() function in utils.paf of 3DDFA #8

Open saif-mahmud opened 3 years ago

saif-mahmud commented 3 years ago

I haven't found gen_anchor() function in this file utils.paf (https://github.com/cleardusk/3DDFA/blob/master/utils/paf.py). @huguesva Can you please help me?

https://github.com/huguesva/Face-Anti-Spoofing-Neural-Network/blob/b1cb3a30af1c1a7390d03473a1bb304c4686842d/data_processing/data_process2.py#L139

super3100171 commented 3 years ago

You can use gen_img_paf() in paf.py There is anchor[anchor >= std_size - delta - 1] = std_size - delta - 1 return anchor and you can get Anchor