I have solved the problem.
My solutions:

Using the TurboJPEG 10 library to load images instead of OpenCV
Before stacking images to compose an input tensor, we should resize the images to a smaller size.
Thank you so much!