Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


The Celebrity Face Match Demo
Anchor
The Celebrity Face Match Demo
The Celebrity Face Match Demo

...

Scroll Title
anchorPreparation Flow
titlePreparation Flow

Image Modified

As shown in the block diagram above, we are using a pre-trained network. We are using a pre-trained network as the task of facial recognition has been very well accomplished by different research groups. We used the network from Refik Can Malli (rcmalli), which was originally trained by Q. Cao on the FaceVGG2 dataset. As rcmalli's model was written with TensorFlow 1.14.0 and Keras 2.2.4, we updated it to TensorFlow version 2.2.0. You can find the updated model here. However, we are still using the weights from the original model.

...

Scroll Title
anchorInput Image to rcmallis ResNet50
titleInput Image to rcmallis ResNet50

Image Modified


Scroll Title
anchor[1,10,50,101,150,170] layer output as a block of six images, each block showing the 1st to 6th filter/neuron output
title[1,10,50,101,150,170] layer output as a block of six images, each block showing the 1st to 6th filter/neuron output

Image Modified

As you can see, the information gets more detailed the deeper you go into the network. The following layer inputs are composed of combinations of the previous layer outputs. in the last layers (170 of 176), you can see the information reached almost pixel-level details.

...

Scroll Title
anchorNXP i.MX 8M Plus Block Diagram
titleNXP i.MX 8M Plus Block Diagram

Image Modified

As the neural processing unit (NPU) from NXP needs a fully int8 quantized model, we have to look into the full int8 quantization of a TensorFlow lite or PyTorch model. Both libraries are supported by the eIQ library from NXP. This manual only works with the TensorFlow variant. The general overview of how to do the post-training quantization can be found on the TensorFlow website.

...

Scroll Title
anchorTF2.3 Converted Model
titleTF2.3 Converted Model

Image Modified

However, if we do not set the inference_input_type and inference_output_type, our model changes to:

...