ECP5 Face Identification Quick Start Guide
Application Note
© 2019 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal.
All other brand or product names are trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
FPGA-AN-02010-1.0 9
Set the output number of FC6 layer.
Set ‘num_output’ to the number of dataset class.
The training code of face identification is for the object classification as MNIST application. Therefore, the final
output number of the fully-connected model is the number of object class. The default value of FC6 output is 9295.
Figure 2.4. Last Fully-connected Layer Output Number Setting
Update the following variables in train.sh as per your environment setup.
CAFFE_ROOT – with compiled caffe location.
OPT – GPU number or comment out to use CPU only.
Figure 2.5. train.sh Parameter Setting Example
Run the train.sh script.
Figure 2.6. Executing train.sh Script Command
Figure 2.7 shows a training status example.