Dynamic Axes with OpenVINO EP #7406
agrawalsourav98
started this conversation in
General
Replies: 2 comments 11 replies
-
Thanks for looking more into this!
|
Beta Was this translation helpful? Give feedback.
5 replies
-
@KoffeinKaio Can you run this python script and share the output? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I made a PR recently that fixed a bug related to loading external weights when using OpenVINO (see #7389). But recent testing has revealed that the fix works only in certain scenarios. I tested it using the following command to create a session,
The fix works when
device_type
is specified andGPU_X
is specified. But immich currenlty uses this,which doesn't work.
The issue here seems to be that
batch_size
is only recognized in the first case and not in any other case.There are 3 fixes for this that should work with every scenario,
batch_size
with-1
. This would mean reverting to something similar that was done earlier (changing inputs and outputs) but would support batches greater than 1.hugging_face
.device_id
, we usedevice_type
inprovider_options
and anywhere there is no GPU device available, we just use theCPUExecutionProvider
as there would be hardly any performance gain when usingOpenVINOExecutionProvider
withCPU
IMO the simplest would be 2 if we only do single batch inference or 1 which would retain similar behaviour as other EPs.
Previous discussion at #6869
What do you think @mertalev?
Beta Was this translation helpful? Give feedback.
All reactions