Hi,
I am facing this issue which has a mismatch shape.
I want to understand if it is due to the fp32 or int8 trt, and etlt file or is it due to image shape?
File “./common/magnet_infer.py”, line 56, in main
File “./detectnet_v2/scripts/inference.py”, line 194, in main
File “./detectnet_v2/scripts/inference.py”, line 150, in inference_wrapper_batch
File “./detectnet_v2/inferencer/trt_inferencer.py”, line 443, in infer_batch
ValueError: could not broadcast input array from shape (14745600) into shape (33841152)
Using TensorFlow backend.
2021-09-01 08:13:07,120 [INFO] iva.detectnet_v2.scripts.inference: Overlain images will be saved in the output path.
2021-09-01 08:13:07,120 [INFO] iva.detectnet_v2.inferencer.build_inferencer: Constructing inferencer
2021-09-01 08:13:07,285 [INFO] iva.detectnet_v2.inferencer.trt_inferencer: Reading from engine file at: /results/model/unpruned/export/LPD_Training_detectnet_v2_resnet18_detector_gpu0_fp32.trt
[TensorRT] WARNING: Current optimization profile is: 0. Please ensure there are no enqueued operations pending in this context prior to switching profiles
2021-09-01 08:13:08,313 [INFO] iva.detectnet_v2.scripts.inference: Initialized model
2021-09-01 08:13:08,314 [INFO] iva.detectnet_v2.scripts.inference: Commencing inference
0%| | 0/14 [00:00<?, ?it/s]
Traceback (most recent call last):
File “/usr/local/bin/tlt-infer”, line 8, in
sys.exit(main())
File “./common/magnet_infer.py”, line 56, in main
File “./detectnet_v2/scripts/inference.py”, line 194, in main
File “./detectnet_v2/scripts/inference.py”, line 150, in inference_wrapper_batch
File “./detectnet_v2/inferencer/trt_inferencer.py”, line 443, in infer_batch
ValueError: could not broadcast input array from shape (14745600) into shape (33841152)