Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Then use snnf_model_creater tools to convert model files. snnf_model_creater is now available for Ubuntu 20.04 and above.

View file
namesnnf_model_creater.tar.gz

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:

...

  1. Put the generated cpp file into the directory:nnmodels/sources/models/customized/YoloV5sDetection

    image-20250114-094857.pngImage Removedimage-20250114-094857.pngImage Added
  2. Put the generated header file into the directory:nnapi/include/models/customized/YoloV5sDetection

    image-20250114-094912.pngImage Removedimage-20250114-094912.pngImage Added
  1. Modify nnmodes/makefile_sources.mk,add files related to the YOLOV5s model to the project:

    image-20250114-094932.png

...