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

Why is results from main.py and results of trtexec engine different #49

Open
TwinkleYR opened this issue Jun 2, 2021 · 0 comments
Open

Comments

@TwinkleYR
Copy link

the results of trtexec engine has problem as below:
[ 0.7829 -0.24191 12.481 ... 0.0031602 0.0011548 0.0015741]
Device:
<pycuda._driver.DeviceAllocation object at 0x7f7a72775170>]
Traceback (most recent call last):
File "/home/wangyr/TensorRT/yolov5-tensorrt/main.py", line 399, in
trt_result = profile_trt(build_engine(onnx_path, using_half), batch_size, 10, 100)
File "/home/wangyr/TensorRT/yolov5-tensorrt/main.py", line 327, in profile_trt
boxes = np.array(yolo_outputs[1].host).reshape(batch_size, -1, 4)[0, 0:num_det, 0:4]
IndexError: list index out of range

the results of main.py is correct

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