background image

 

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 

Содержание ECP5 Versa

Страница 1: ...ECP5 Face Identification Quick Start Guide Application Note FPGA AN 02010 1 0 October 2019...

Страница 2: ...nd with all faults and all risk associated with such information is entirely with Buyer Buyer shall not rely on any data and performance specifications or parameters provided herein Products sold by L...

Страница 3: ...ine with TensorFlow 11 2 5 Generating the Frozen pb File 11 3 Generating the Binary File 12 3 1 Programming the Bitstream and Binary files to VIP Board and SD Card 12 Technical Support Assistance 13 R...

Страница 4: ...sted 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 w...

Страница 5: ...how to train a machine and create a frozen file for the Lattice Machine Learning development using the Lattice s Embedded Vision Development Kit It assumes that the reader is familiar with the basic...

Страница 6: ...f their respective holders The specifications and information herein are subject to change without notice 6 FPGA AN 02010 1 0 1 1 Design Process Overview The design process involves the following step...

Страница 7: ...For more information on how to install Caffe go to https caffe berkeleyvision org Note Caffe has some dependencies of environment and library packages Lattice cannot help on resolving all installatio...

Страница 8: ...ective holders The specifications and information herein are subject to change without notice 8 FPGA AN 02010 1 0 2 3 Training the Machine with Caffe Check three script files in the train folder as sh...

Страница 9: ...m_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...

Страница 10: ...FPGA AN 02010 1 0 Figure 2 7 Training Status Example Figure 2 8 Machine Training Output File Create the inference network model proto file The inference network mode is different from the training pr...

Страница 11: ...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...

Страница 12: ...subject to change without notice 12 FPGA AN 02010 1 0 3 Generating the Binary File For the detailed procedure in creating the binary file refer to the Creating Binary File with sensAI section ECP5 Fa...

Страница 13: ...laimers 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 su...

Страница 14: ...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 herei...

Страница 15: ...www latticesemi com...

Отзывы: