Skip to content

Commit 3e93f0e

Browse files
committed
ImageProcessor preprocess uses image_std for fill value if image_std is not an array
1 parent e6c2b6b commit 3e93f0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/base/image_processors_utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,7 @@ export class ImageProcessor extends Callable {
10061006

10071007
let image_std = this.image_std;
10081008
if (!Array.isArray(this.image_std)) {
1009-
image_std = new Array(image.channels).fill(image_mean);
1009+
image_std = new Array(image.channels).fill(image_std);
10101010
}
10111011

10121012
if (image_mean.length !== image.channels || image_std.length !== image.channels) {

0 commit comments

Comments
 (0)