Open nghiapq77 opened 2 years ago
Maybe related:
I tried converting pretrained PyTorch model to ONNX using native torch support via torch.onnx.export but it seems like it does not support bicubic interpolation used in ViT architecture. I see that you are providing pretrained ONNX, how do you convert your model to ONNX?
Many thanks!
I just had the same issue. Apparently when i set model inputs to have size (224,224) it's fine.
Using (224, 224) image size would allow to skip the interpolation step, thanks to:
in:
I tried converting pretrained PyTorch model to ONNX using native torch support via torch.onnx.export but it seems like it does not support bicubic interpolation used in ViT architecture. I see that you are providing pretrained ONNX, how do you convert your model to ONNX?
Many thanks!