If you’ve already stored the cv::Mats in a std::vector, you could append the tensor_imgs into inputs and pass this batch of tensors to the model.
PS: you can post code snippets by wrapping them into three backticks ```, which makes debugging easier