lgsc-for-fas-pytorch icon indicating copy to clipboard operation
lgsc-for-fas-pytorch copied to clipboard

Hello! Can you tell me how to use face_detector?

Open freyasa opened this issue 2 years ago • 1 comments

freyasa avatar Jul 15 '22 07:07 freyasa

Hi!

mtcnn face detector is used (https://github.com/timesler/facenet-pytorch)

model is instantiated here https://github.com/Podidiving/lgsc-for-fas-pytorch/blob/337889ad75a28ff6fa52242803064d35ff2a4810/src/datasets/datasets.py#L52

So, in order to create model, you need to define face_detector dict in train_config.yml, for example:

face_detector:
  image_size: <image_size>
  margin: <margin>

Have a nice day!

Podidiving avatar Jul 16 '22 12:07 Podidiving