Hi, there is a question that bothers me.
this code
for src in YOUR_VIDEO:
io.bind_cpu_input('src', src)
io.bind_ortvalue_input('r1i', rec[0])
io.bind_ortvalue_input('r2i', rec[1])
io.bind_ortvalue_input('r3i', rec[2])
io.bind_ortvalue_input('r4i', rec[3])
io.bind_ortvalue_input('downsample_ratio', downsample_ratio)
sess.run_with_iobinding(io)
in ONNX inference. What should i input in this value YOUR_VIDEO. Can you show me what kind of image or video data type should be inputed? Using cv2.imread() seems not work.
Here is my code
When it run to sess.run_with_iobinding(io),i got an error Invalid rank for input: src Got: 3 Expected: 4 Please fix either the inputs or the model.. The image data format of the picture is {ndarray:(1080, 1920, 3)}.
IT seems that i should input a four-dimensional data.
Hi, there is a question that bothers me. this code
in ONNX inference. What should i input in this value
YOUR_VIDEO
. Can you show me what kind of image or video data type should be inputed? Using cv2.imread() seems not work. Here is my codeWhen it run to
sess.run_with_iobinding(io)
,i got an errorInvalid rank for input: src Got: 3 Expected: 4 Please fix either the inputs or the model.
. The image data format of the picture is {ndarray:(1080, 1920, 3)}. IT seems that i should input a four-dimensional data.