Open GuoQuanhao opened 3 months ago
They are not the same. If you want to get the same result you should resize the Image object instead of resize NDArray use OpenCVImageFactory
class
See this example: https://github.com/deepjavalibrary/djl/blob/master/examples/src/main/java/ai/djl/examples/inference/cv/SemanticSegmentation.java#L89
Does NDImageUtils.resize has the same result with cv2.resize? They all use bilinear by default. I got some diff between NDImageUtils.resize and cv2.resize