diff --git a/api/src/main/java/ai/djl/modality/cv/BufferedImageFactory.java b/api/src/main/java/ai/djl/modality/cv/BufferedImageFactory.java index 16ece00dd0d..6eef92cc724 100644 --- a/api/src/main/java/ai/djl/modality/cv/BufferedImageFactory.java +++ b/api/src/main/java/ai/djl/modality/cv/BufferedImageFactory.java @@ -108,7 +108,6 @@ public Image fromNDArray(NDArray array) { BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB); int[] raw = array.toUint8Array(); IntStream.range(0, imageArea) - .parallel() .forEach( ele -> { int x = ele % width; @@ -127,7 +126,6 @@ public Image fromNDArray(NDArray array) { BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB); int[] raw = array.toUint8Array(); IntStream.range(0, imageArea) - .parallel() .forEach( ele -> { int x = ele % width;