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 11
2.4. Training the Machine with TensorFlow
To train the machine with TensorFlow:
Run the command in the code root directory:
$ python face-identification.py --data_dir=<path of data directory>
Figure 2.9. Machine Training Output File
Check the training status on TensorBoard by running the command below.
$ tensorboard –logdir=<path of log directory>
Figure 2.10. TensorBoard – Launch
2.5. Generating the Frozen (*pb) File
Use the command below to generate the frozen protobuf(.pb) file:
$ python face-identification.py --log_dir=<path of log(checkpoint) directory> --freeze_model
Figure 2.11. *pb File Generation from Checkpoint