jacobhm98:

torch::Tensor input = torch::from_blob(sizedImage.data, {1, sizedImage.rows, sizedImage.cols, 3});


Try this:
/*cv::CV_8UC3*/
assert(
    sizedImage.type() == 16
);

torch::Tensor input = torch::from_blob(
    sizedImage.data,
    {1, sizedImage.rows, sizedImage.cols, 3},
    torch::kByte
);