Skip to content

Commit e4fafa7

Browse files
authored
Bug Fix
1 parent 002ac36 commit e4fafa7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/quantization/Helper.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ void Helper::preprocessInput(MNN::CV::ImageProcess* pretreat, int targetWidth, i
113113
(float)(originalHeight - 1) / (float)(targetHeight - 1));
114114
// crop method
115115
// trans.setTranslate(16.0f, 16.0f);
116+
pretreat->setMatrix(trans);
116117
pretreat->convert(bitmap32bits, originalWidth, originalHeight, 0, input);
117118

118119
stbi_image_free(bitmap32bits);

0 commit comments

Comments
 (0)