VIS-VAR / LGSC-for-FAS

Learning Generalized Spoof Cues for FaceAnti-spoofing
MIT License
226 stars 56 forks source link

About RandomPatch #23

Open MagicXiaoJing opened 4 years ago

MagicXiaoJing commented 4 years ago

image In paper, I see the great difference between the patch input and resize input. but in coding, I don't see the place you using random patch. Could you tell me whether you use random patch or not in the final? Very thanks !!

ZGSLZL commented 4 years ago

Hi, we do use 'RandomPatch' in the paper, but not in FaceForensics Benchmark.

MagicXiaoJing commented 4 years ago

Benchmark

Thanks. When using random patch in paper, it will be many subpatch from the face as input? And when inference, the face resize to 224x224 or the big image (larger than 224x224) as input?

silvercherry commented 4 years ago

Benchmark

Thanks. When using random patch in paper, it will be many subpatch from the face as input? And when inference, the face resize to 224x224 or the big image (larger than 224x224) as input?

Yes, I also meet this problem, if you do not use resize, then some pictures will exceed the picture size

MagicXiaoJing commented 4 years ago

perhaps training using random patch, evaluating using the resize.

silvercherry commented 4 years ago

perhaps training using random patch, evaluating using the resize.

Have you solved the problem in training?When using randompatch, some pictures may be subpatched

MagicXiaoJing commented 4 years ago

what is subpatched ??

silvercherry commented 4 years ago

what is subpatched ??

If you are using randompatch, start from the center of the face and add or subtract half of size, which sometimes exceeds the size of the entire picture. How do you handle it here

MagicXiaoJing commented 4 years ago

in that condition, give up randompatch, using orig img

gehaocool commented 3 years ago

When processing a high-resolution picture, the size of the face could exceed 224×224, so how to do the patching in this case? Just patching part of the face, or using an input image bigger than 224×224? And how do you get the "face images" from which to crop 224 patches?