...
Then use snnf_model_creater tools to convert model files. snnf_model_creater is now available for Ubuntu 20.04 and above.
View file | ||
---|---|---|
|
snnf_model_creater [source file] [target path] [model name]
...
Code Block |
---|
./snnf_model_creater ./vnn_yolov5suint8.c ./yolov5sModel/ YoloV5sDetection newFilePath ./yolov5sModel/YoloV5sDetectionModelPostProcess.cpp copy and rename complete: "./yolov5sModel/YoloV5sDetectionModelPostProcessYoloV5sDetectionPostProcess.cpp" newFilePath ./yolov5sModel/YoloV5sDetectionModelInfo.cpph" copy and rename complete: "./yolov5sModel/YoloV5sDetectionModelInfo.cpp" newFilePath ./yolov5sModel/YoloV5sDetectionModel.h copy and rename complete: "./yolov5sModel/YoloV5sDetectionModelYoloV5sDetectionPostProcess.hcpp" newFilePath ./yolov5sModel/YoloV5sDetectionModelPostProcess.h copy and rename complete: "./yolov5sModel/YoloV5sDetectionModelPostProcessYoloV5sDetectionModel.h" newFilePath ./yolov5sModel/YoloV5sDetectionModel.cpp copy and rename complete: "./yolov5sModel/YoloV5sDetectionModel.cpp" Target file size: 84928583 Model Generate Complete! |
After execution, the model file used by SNNF will be generated in the output path:
...
Put the generated cpp file into the directory:nnmodels/sources/models/customized/YoloV5sDetection
Put the generated header file into the directory:nnapi/include/models/customized/YoloV5sDetection
Modify nnmodes/makefile_sources.mk,add files related to the YOLOV5s model to the project:
...