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

Cuda 10.2+TensorRT 7.0.0.1, Inference issue, ValueError: could not broadcast input array from shape (3,4,3) into shape (3,4,1) #97

Open
ashuezy opened this issue Oct 15, 2020 · 0 comments

Comments

@ashuezy
Copy link

ashuezy commented Oct 15, 2020

[TensorRT] WARNING: Current optimization profile is: 0. Please ensure there are no enqueued operations pending in this context prior to switching profiles
INFO:root:The size of input image is not 3x768.
The input image will be resized keeping the aspect ratio.
Traceback (most recent call last):
  File "predict_tensorrt.py", line 325, in <module>
    run_prediction_folder()
  File "predict_tensorrt.py", line 313, in run_prediction_folder
    bboxes = myInference.do_inference(im, score_threshold=0.6, top_k=1000, NMS_threshold=0.2, NMS_flag=True)
  File "predict_tensorrt.py", line 214, in do_inference
    input_batch[0, :, left_pad:left_pad + input_image.shape[1], :] = input_image
ValueError: could not broadcast input array from shape (3,4,3) into shape (3,4,1)
@ashuezy ashuezy changed the title Cuda 10.2+TensorRT 7.0.0.1 Cuda 10.2+TensorRT 7.0.0.1, Inference issue, ValueError: could not broadcast input array from shape (3,4,3) into shape (3,4,1) Oct 15, 2020
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