Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用quant_tool_uint8 出现段错误Segmentation fault #1430

Open
rexue2008 opened this issue Aug 22, 2023 · 0 comments
Open

使用quant_tool_uint8 出现段错误Segmentation fault #1430

rexue2008 opened this issue Aug 22, 2023 · 0 comments

Comments

@rexue2008
Copy link

./quant_tool_uint8 -m /mnt/hgfs/1/1111111111111/y.tmfile -i /mnt/hgfs/1/temp/ -o yolox_nano_int8.tmfile -g 3,208,208 -w 0,0,0 -s 0.003921,0.003921,0.003921 -y 416,416

---- Tengine Post Training Quantization Tool ----

Version : v1.2, 01:48:59 Aug 2 2023
Status : uint8, per-layer, asymmetric
Input model : /mnt/hgfs/1/1111111111111/y.tmfile
Output model: yolox_nano_int8.tmfile
Calib images: /mnt/hgfs/1/temp/
Scale file : NULL
Algorithm : 0
Dims : 3 208 208
Mean : 0.000 0.000 0.000
Scale : 0.004 0.004 0.004
BGR2RGB : ON
Center crop : OFF
Letter box : 416 416
YOLOv5 focus: OFF
Thread num : 4

[Quant Tools Info]: Step 0, load FP32 tmfile.
[Quant Tools Info]: Step 0, load FP32 tmfile done.
[Quant Tools Info]: Step 0, load calibration image files.
[Quant Tools Info]: Step 0, load calibration image files done, image num is 16.
[Quant Tools Info]: Step 1, find original calibration table.
[Quant Tools Info]: Step 1, images 00001 / 00016Segmentation fault (core dumped)

我使用了gdb读取了生成的core文件,内容如下:
gdb ./quant_tool_uint8 core
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./quant_tool_uint8...(no debugging symbols found)...done.

warning: core file may not match specified executable file.
[New LWP 58367]
[New LWP 58370]
[New LWP 58374]
[New LWP 58371]
[New LWP 58368]
[New LWP 58372]
[New LWP 58369]
[New LWP 58373]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./quant_tool_uint8 -m /mnt/hgfs/1/1111111111111/y.tmfile -i /mnt/hgfs/1/temp/ -'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000000000421af6 in get_input_data_cv(char const*, float*, int, int, int, float const*, float const*, int, int, int, int, int) ()
[Current thread is 1 (Thread 0x1484a368a7c0 (LWP 58367))]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant