TNN
TNN copied to clipboard
模型量化时报Segmentation fault (core dumped)
1. 使用环境(environment)
- OS: Ubuntu
- OS Version: ubuntu 1804
2. Github版本
- branch:
- commit(optional):
3. 详细描述bug 情况 (Describe the bug) 模型量化时遇到Segmentation fault 这样的问题。同时请教下,双输入的模型量化命令可否给个sample。感谢
- issue type: 模型量化
- original model: ONNX
4. 日志(Log)
量化命令:
./quantization_cmd -p /home/minbo/software/tnn_models/timm-mobilenet_sim.tnnproto -m /home/minbo/software/tnn_models/timm-mobilenet_sim.tnnmodel -i /home/minbo/software/TNN/quant_imgs/ -n 123.675,116.28,103.63 -s 0.017,0.017,0.017 -o /home/minbo/software/tnn_models/timm-mobilenet_sim_quant
proto: /home/minbo/software/tnn_models/timm-mobilenet_sim.tnnproto
model: /home/minbo/software/tnn_models/timm-mobilenet_sim.tnnmodel
input path: /home/minbo/software/TNN/quant_imgs/
bias: 123.675,116.28,103.63
scale: 0.017,0.017,0.017
output name: /home/minbo/software/tnn_models/timm-mobilenet_sim_quant
blob quantize method: 2
weight quantize method: 1
init model config success!
import: 2021_08_23_17_36_IMG_3521_00360.png type: 3
import: 2021_08_23_18_15_IMG_3536_03780.png type: 3
import: 2021_08_23_17_36_IMG_3521_00600.png type: 3
import: 2021_08_23_18_15_IMG_3536_01560.png type: 3
import: VID_20210823_094916_00270.png type: 3
import: 2021_08_23_17_36_IMG_3521_00300.png type: 3
import: 2021_08_23_18_15_IMG_3536_02250.png type: 3
import: 2021_08_23_18_15_IMG_3536_03330.png type: 3
import: VID_20210823_094916_00120.png type: 3
import: 2021_08_23_18_15_IMG_3536_03570.png type: 3
import: 2021_08_23_17_36_IMG_3521_00720.png type: 3
import: 2021_08_23_17_36_IMG_3521_00270.png type: 3
import: 2021_08_23_18_15_IMG_3536_03300.png type: 3
import: VID_20210823_094916_02760.png type: 3
import: VID_20210823_094916_00300.png type: 3
import: 2021_08_23_17_36_IMG_3521_00240.png type: 3
import total 16 files
import data set success!
Start to calculate blob scale ...
Init Feature Map done!
resize from 224x398x3 to 384x640x3
resize from 224x398x3 to 384x640x3
resize from 224x398x3 to 384x640x3
resize from 224x398x3 to 384x640x3
resize from 224x398x3 to 384x640x3
resize from 224x398x3 to 384x640x3
resize from 224x398x3 to 384x640x3
resize from 224x398x3 to 384x640x3
resize from 224x398x3 to 384x640x3
resize from 224x398x3 to 384x640x3
resize from 224x398x3 to 384x640x3
resize from 224x398x3 to 384x640x3
resize from 224x398x3 to 384x640x3
resize from 224x398x3 to 384x640x3
resize from 224x398x3 to 384x640x3
resize from 224x398x3 to 384x640x3
Collect Blob Range done!
resize from 224x398x3 to 384x640x3
Segmentation fault (core dumped)
5. 截图(Screenshots) If applicable, add screenshots to help explain your problem.