ffletcherr / face-recognition-liveness

Face detection and recognition + liveness detection and spoofing attack recognition using onnxruntime. Includes an easy-to-use Flask API and Dockerfile.
37 stars 17 forks source link

Convert Pytoch .pth to .onnx #4

Closed evandromoura closed 1 year ago

evandromoura commented 1 year ago

Hello my friend How do I convert .pth files to onnx?

I want to test other protocols. Because I have a case where the client managed to circumvent liveness with a fake photo.

ffletcherr commented 1 year ago

@evandromoura Use this script :

https://github.com/ffletcherr/face-recognition-liveness/blob/stable/code-liveness-DeepPixBis-2021-01-10/utils.py

evandromoura commented 1 year ago

Thank you man The conversion worked