|
`.npy` files under this folder are downloaded from ONNX model of FaceNet generated by following commands, which is licensed under the Apache 2.0. |
|
|
|
### How to Generate FaceNet ONNX Model |
|
|
|
Following this [guide](../facenet_nhwc/README.md#how-to-generate-facenet-tflite-model) to generate the FaceNet TFLite model, use ['tflite2onnx'](https://github.com/onnx/tensorflow-onnx) tool to convert TFLite model to ONNX model: |
|
|
|
``` |
|
python -m tf2onnx.convert --tflite facenet.tflite --output facenet.onnx --inputs-as-nchw input_1 --inputs input_1 |
|
``` |