Solved by maudzung in post #5 
              
              
                I have solved the problem. 
My solutions: 

Using the TurboJPEG 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!