CrossLink-NX Object Counting Using VGG Quick Start Guide
Application Note
© 2020 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.
8 FPGA-AN-02024-1.0
2.3. Training the Machine
For the detailed procedure in machine training, refer to the Training the Machine section in CrossLink-NX Object
Counting Using VGG CNN Accelerator IP (FPGA-RD-02200).
To train the machine:
1. Check the training dataset path in the training script file train.sh.
Figure 2.3. Dataset Folder Path Check
The subdataset path can be set in the training code @src/dataset/kitti.py and can be used in combination with the
--data_path option while triggering training using train.py to get the desired path. For example, you can have
<data_path>/training/images and <data_path>/training/labels.
Figure 2.4. Dataset List, Image, and Label Data Path
2. Create a train.txt file.
$ cd data/humancnt/
$ python dataset_create.py
Figure 2.5. Create a Label File