convert this model to onnx model

#3
by AbhishekSingh996 - opened

i am not able to convert pix2struct model to onnx model.

Hi @AbhishekSingh996 , how are you exporting the model to ONNX? Using Optimum command line, I can successfully export the model:

optimum-cli export onnx -m google/pix2struct-docvqa-base pix2struct_onnx

Note that the ONNX export of Pix2Struct was recently modified and it is not included in a release, so I would recommend to install Optimum from source for now.

I'll make sure that the export Space (https://huggingface.co/spaces/onnx/export) works fine as well.

Thanks buddy

Sign up or log in to comment