Khadas vim3 Convert ONNX model

thanks a lot. Please do this for me as soon as you can…

@NG1368 I test it just now . it work fine .
This is where I revised it

  1. 0_import_model.sh
NAME=slim-320
#$convert_tf \
#    --tf-pb ./model/inception_v3_2016_08_28_frozen.pb \
#    --inputs input \
#    --input-size-list '299,299,3' \
#    --outputs InceptionV3/Predictions/Reshape_1 \
#    --net-output ${NAME}.json \
#    --data-output ${NAME}.data 

$convert_caffe \
    --caffe-model /home/khadas/tmp/slim-320.prototxt   \
    --caffe-blob /home/khadas/tmp/slim-320.caffemodel \
    --net-output ${NAME}.json \
    --data-output ${NAME}.data
  1. 1_quantize_model.sh
NAME=slim-320
  1. 2_export_case_code.sh
NAME=slim-320

This all the file in output dir

drwxrwxr-x 3 khadas khadas   4096 4月  22 18:16 ./
drwxrwxr-x 6 khadas khadas   4096 4月  22 18:18 ../
-rw-rw-r-- 1 khadas khadas    569 4月  22 18:16 BUILD
-rw-rw-r-- 1 khadas khadas  38571 4月  22 18:16 .cproject
-rw-rw-r-- 1 khadas khadas   5811 4月  22 18:16 main.c
-rw-rw-r-- 1 khadas khadas   1996 4月  22 18:16 makefile.linux
-rw-rw-r-- 1 khadas khadas   1215 4月  22 18:16 nbg_meta.json
drwxrwxr-x 2 khadas khadas   4096 4月  22 18:16 openvx_case/
-rw-rw-r-- 1 khadas khadas   2190 4月  22 18:16 .project
-rw-rw-r-- 1 khadas khadas 489961 4月  22 18:16 slim-320.nb
-rw-rw-r-- 1 khadas khadas  12679 4月  22 18:16 slim320.vcxproj
-rw-rw-r-- 1 khadas khadas    358 4月  22 18:16 vnn_global.h
-rw-rw-r-- 1 khadas khadas   3625 4月  22 18:16 vnn_post_process.c
-rw-rw-r-- 1 khadas khadas    458 4月  22 18:16 vnn_post_process.h
-rw-rw-r-- 1 khadas khadas  24003 4月  22 18:16 vnn_pre_process.c
-rw-rw-r-- 1 khadas khadas   1537 4月  22 18:16 vnn_pre_process.h
-rw-rw-r-- 1 khadas khadas   7816 4月  22 18:16 vnn_slim320.c
-rw-rw-r-- 1 khadas khadas    961 4月  22 18:16 vnn_slim320.h

NB file can be generated normally

2 Likes

thanks for test it. but I again face with those errors. can you send me your generated ngb_unify file?
I work in ubuntu 18.04 system and nothing change from yolov3 test. I dont know what is problem.

@NG1368 https://share.weiyun.com/5FsHZzt

thanks…
but i can’t download it. I am out of China and haven’t Wechat or QQ account. I try to create an account in QQ, but it didn’t send me code to mobile number.

@NG1368 I will try to sent you with other ways

@NG1368 https://mega.nz/file/E8ZiyS4D

Thanks a lot… it needs decreption key.

@NG1368 https://mega.nz/file/E8ZiyS4D#y8jEI7270tpkfhh-rHrHDrP9ix7Dwrpr5a1tSnU3Upw

thanks for reply… can you send me all ngb_unify folder?
sorry… but I need them for my project. I have to get answer from this model.

@NG1368 I think you need to convet by youself . Buecase you need to modified the parameter in conversion script. Wrong parameters affect accuracy .