We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed9a00b commit c460b47Copy full SHA for c460b47
csrc/mmdeploy/preprocess/transform/normalize.cpp
@@ -103,8 +103,8 @@ class Normalize : public Transform {
103
} else if (to_rgb_) {
104
auto src_mat = to_mat(tensor, PixelFormat::kBGR);
105
Mat dst_mat;
106
- OUTCOME_TRY(cvt_color_.Apply(src_mat, dst_mat, PixelFormat::kBGR));
107
- dst = to_tensor(src_mat);
+ OUTCOME_TRY(cvt_color_.Apply(src_mat, dst_mat, PixelFormat::kRGB));
+ dst = to_tensor(dst_mat);
108
data[key] = std::move(dst);
109
}
110
0 commit comments