Closed mengpengfei closed 3 years ago
@mengpengfei Please see: https://github.com/deepjavalibrary/djl/issues/970
DJL resize use PyTorch interpolate C++ API. The implementation is slightly different from torchvision's resize.
I use opencv to resize the picture,then the problem is solved. Can you make djl compatible with OpenCV?
@mengpengfei It's hard to choose which implementation to use, there are many different implementations:
None of above produce the exactly the same result. In ideal case, the resize algorithm should match the model was trained on. For DJL, choosing OpenCV mean break other models.
We made a few assumption:
The inference result of djl is different from The inference result of pytorch。I had check all my code,but I still can not find the problem,please help me.blow is the code of pytorch and the code of djl