File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,22 @@ grep -n '.yml' $FILENAME | cut -d ":" -f 1 \
68
68
sed -i ' s/aligned: True/aligned: False/g' " $sub_config_path "
69
69
done
70
70
done
71
+
72
+
73
+ # NPU lacks operators such as deformable_conv, depthwise_conv2d_transpose,
74
+ # which will affects ips. Here, we reduce the number of coco training sets
75
+ # for npu tipc bencnmark. This is a temporary hack.
76
+ # # TODO(duanyanhui): add vision ops for npu
77
+ train_img_num=` cat $REPO_ROOT_PATH /dataset/coco/annotations/instances_train2017.json | grep -o file_name | wc -l`
78
+ exp_num=8
79
+ if [ ${train_img_num} != ${exp_num} ]; then
80
+ echo " Replace with npu tipc coco training annotations"
81
+ mv $REPO_ROOT_PATH /dataset/coco/annotations/instances_train2017.json $REPO_ROOT_PATH /dataset/coco/annotations/instances_train2017_bak.json
82
+ wget https://paddle-device.bj.bcebos.com/tipc/instances_train2017.json
83
+ mv instances_train2017.json $REPO_ROOT_PATH /dataset/coco/annotations/
84
+ rm -f instances_train2017.json
85
+ fi
86
+
71
87
# pass parameters to test_train_inference_python.sh
72
88
cmd=" bash test_tipc/test_train_inference_python.sh ${FILENAME} $2 "
73
89
echo $cmd
You can’t perform that action at this time.
0 commit comments