they are later feed to libtorch for machine learning usage, which requires a 3D data. but I find I can directly reshape the tensor
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Creating a 4D matrix with one 3 channel frame and another 1 channel frame | 1 | 409 | January 21, 2021 | |
How pass RGB image Mat to keras(ONNX) model with channels_last data format? | 2 | 704 | March 25, 2022 | |
cv::Mat convert channel to float[] | 3 | 5608 | March 2, 2022 | |
Camera freezes on first frame with " Invalid number of channels in input image" in logcat | 5 | 1533 | June 14, 2021 | |
ONNX forward method returns 1*-1*-1 FLOAT32 in c++ opencv | 1 | 1063 | February 25, 2021 |