You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have trained a Fastflow PyTorch model with openvinotoolkit/anomalib, then I exported it to ONNX format. Now I want to use OpenVino to run that ONNX model on an Nvidia GPU (RTX A6000). This, however, does not work, as the predictions generated that way are empty. It does work with that very same model on the CPU though.
Is this a bug or does OpenVino not support Nvidia GPUs?
Step-by-step reproduction
After training the model via anomalib and exporting it to ONNX format, I am using anomalib's inferencer to load and run the model. This basically involves the following code:
importopenvinoasovcore=ov.Core()
onnx=core.read_model("/path/to/model.onnx")
model=core.compile_model(model=onnx, device_name="GPU") # works with "CPU" heremodel(image)
With CPU the last line model(image) leads to a correct result like this:
It seems the problem is related to Nvidia GPUs being not fully supported in OpenVINO.
After I exported the model to ONNX / TensorRT format, everything works fine now.
OpenVINO Version
2024.1.0
Operating System
Ubuntu 20.04 (LTS)
Device used for inference
GPU
Framework
ONNX
Model used
Anomalib Fastflow
Issue description
I have trained a Fastflow PyTorch model with openvinotoolkit/anomalib, then I exported it to ONNX format. Now I want to use OpenVino to run that ONNX model on an Nvidia GPU (RTX A6000). This, however, does not work, as the predictions generated that way are empty. It does work with that very same model on the CPU though.
Is this a bug or does OpenVino not support Nvidia GPUs?
Step-by-step reproduction
After training the model via anomalib and exporting it to ONNX format, I am using anomalib's inferencer to load and run the model. This basically involves the following code:
With
CPU
the last linemodel(image)
leads to a correct result like this:With
GPU
the last line leads to an empty result:Relevant log output
No response
Issue submission checklist
The text was updated successfully, but these errors were encountered: