Part Number: TDA2SX
Hi:
I trained caffemodel by my own dataset using scripts "/home/liuyuyuan/caffe-jacinto-models-caffe-0.17/scripts/train_image_object_detection.sh." Training parameters are shown as blow:
elif [ $dataset = "ti-helmet-detection" ] #ti-face-detection1
then
train_data="/home/liuyuyuan/caffe-jacinto/data/helmet_detection/mydata/lmdb/mydata_trainval_lmdb"
test_data="/home/liuyuyuan/caffe-jacinto/data/helmet_detection/mydata/lmdb/mydata_test_lmdb"
name_size_file="/home/liuyuyuan/caffe-jacinto/data/helmet_detection/test_name_size.txt"
label_map_file="/home/liuyuyuan/caffe-jacinto/data/helmet_detection/labelmap.prototxt"
num_test_image=24
num_classes=2
min_dim=256
#ssd_size='512x512'
resize_width=512
resize_height=256
crop_width=512
crop_height=256
small_objs=0
ker_mbox_loc_conf=1
batch_size=4 #32 #16
#ignore lables are marked as diff in TI dataset
use_difficult_gt=1
#solver params
type="SGD" #"SGD" #Adam #"Adam"
max_iter=120000 #120000 #64000 #32000
stepvalue1=60000 #60000 #32000 #16000
stepvalue2=90000 #90000 #48000 #24000
base_lr=1e-2 #1e-2 #1e-4 #1e-3
#set it to 4.0 for poly
power=1.0
#0.0005 (orignal SSD), 0.0001
weight_decay_L2=0.0001
use_batchnorm_mbox=1
else
echo "Invalid dataset name"
exit
fi
Then i convert this TIDL SSD model using the deploy.prototxt and caffemodel from “/home/liuyuyuan/caffe-jacinto-models-caffe-0.17/scripts/training/ti-helmet-detection/JDetNet/20191031_11-44_ds_PSP_dsFac_32_hdDS8_1/initial/ti-helmet-detection_ssdJacintoNetV2_iter_120000.caffemodel"
and I change the "keep_top_k: 200" to "keep_top_k:20" in the deploy.prototxt.But the model converted runs very poor at objection detetion.And this caffemodel has a good performrnce on the PC,here is the contrast:
SO my first Question is why could be this?
AND there is another question that when i convert caffemodel using “/...../sparse/ti-helmet-detection_ssdJacintoNetV2_iter_120000.caffemodel" , but the model converted runs very slow on TDA2x platform,it caused black screen and
i even couldn't load cpu info or print performance statistics.Obviously EVE didn't call.
here is my import file tidl_import_JDetNet.txt:
# Default - 0
randParams = 0
# 0: Caffe, 1: TensorFlow, Default - 0
modelType = 0
# 0: Fixed quantization By tarininng Framework, 1: Dyanamic quantization by TIDL, Default - 1
quantizationStyle = 1
# quantRoundAdd/100 will be added while rounding to integer, Default - 50
quantRoundAdd = 25
numParamBits = 8
# 0 : 8bit Unsigned, 1 : 8bit Signed Default - 1
inElementType = 0
inputNetFile = "/home/liuyuyuan/caffe-jacinto-models-caffe-0.17/scripts/training/ti-helmet-detection/JDetNet/20191031_11-44_ds_PSP_dsFac_32_hdDS8_1/sparse/deploy.prototxt"
inputParamsFile = "/home/liuyuyuan/caffe-jacinto-models-caffe-0.17/scripts/training/ti-helmet-detection/JDetNet/20191031_11-44_ds_PSP_dsFac_32_hdDS8_1/sparse/ti-helmet-detection_ssdJacintoNetV2_iter_120000.caffemodel"
outputNetFile = "..\..\test\testvecs\config\tidl_models\jdetnet\tidl_net_jdetNet_ssd.bin"
outputParamsFile = "..\..\test\testvecs\config\tidl_models\jdetnet\tidl_param_jdetNet_ssd.bin"
rawSampleInData = 1
preProcType = 4
sampleInData = "..\..\test\testvecs\input\4.jpg #trace_dump_0_512x256.y
tidlStatsTool = "..\quantStatsTool\eve_test_dl_algo.out.exe"
#layersGroupId = 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 0
#conv2dKernelType = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
layersGroupId = 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 2 2 2 0
conv2dKernelType = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
BTW:LINUX TDA2x REL.TIDL.01.01.03.00 4EVE
And Q2:why does this happen?
These questions upset me for a while!
Am I missing something?Pls help!Thanks!
Regards
Z.Y Wang








