bnabis93 / vision-language-examples

Vision-lanugage model example code.
9 stars 0 forks source link

ViT onnx export #3

Closed bnabis93 closed 1 year ago

bnabis93 commented 1 year ago

Objective

TODO

bnabis93 commented 1 year ago

Simple ViT onnx export

Measure inference time.

$ python inference.py ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] 2023-04-05 01:24:35.075534148 [W:onnxruntime:Default, onnxruntime_pybind_state.cc:515 CreateExecutionProviderInstance] Failed to create TensorrtExecutionProvider. Please reference https://onnxruntime.ai/docs/execution-providers/TensorRT-ExecutionProvider.html#requirements to ensure all dependencies are met. Input name: pixel_values, output name: last_hidden_state Average Inference time: 0.006433 seconds