-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. fix interpreter bar exceeded 2. add yolov5s post process test 3. fix multithread conflict Change-Id: I98e805589dde4cc83c27865d9f658a90b3bf4ff7
- Loading branch information
Showing
15 changed files
with
105 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ pushd $TEST_DIR | |
|
||
$DIR/test1.sh | ||
$DIR/test2.sh | ||
|
||
$DIR/test3.sh | ||
$DIR/test4.sh | ||
|
||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
# test case: test yolov5s preprocess and postprocess | ||
set -ex | ||
|
||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" | ||
|
||
model_transform.py \ | ||
--model_name yolov5s \ | ||
--model_def ${REGRESSION_PATH}/model/yolov5s.onnx \ | ||
--input_shapes=[[1,3,192,1024]] \ | ||
--output_names=350,498,646 \ | ||
--scale=0.0039216,0.0039216,0.0039216 \ | ||
--pixel_format=rgb \ | ||
--test_input=${REGRESSION_PATH}/image/dog.jpg \ | ||
--test_result=yolov5s_top_outputs.npz \ | ||
--post_handle_type=yolo \ | ||
--mlir yolov5s.mlir | ||
|
||
run_calibration.py yolov5s.mlir \ | ||
--dataset ${REGRESSION_PATH}/dataset/COCO2017 \ | ||
--input_num 100 \ | ||
-o yolov5s_cali_table | ||
|
||
model_deploy.py \ | ||
--mlir yolov5s.mlir \ | ||
--quantize INT8 \ | ||
--chip bm1684x \ | ||
--calibration_table yolov5s_cali_table \ | ||
--fuse_preprocess \ | ||
--test_input ${REGRESSION_PATH}/image/dog.jpg \ | ||
--test_reference yolov5s_top_outputs.npz \ | ||
--except "yolo_post" \ | ||
--compare_all \ | ||
--model yolov5s_int8.bmodel |