-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error loading vision model in 0.51 #1073
Comments
New ONNX models for Phi-3 vision and Phi-3.5 vision have been uploaded to support no-image, single-image, and multi-image scenarios. You can download the new ONNX models to use with ONNX Runtime GenAI v0.5.1. |
Downloaded the new model. Previously there were onnx models specifically for DML or CUDA. Not sure if that is a reason.
|
Can you try running the
The uploaded ONNX model in the GPU folder should work for both CUDA and DML. We're working on adding the support needed to run the same ONNX model on CPU, CUDA, and DML. |
@elephantpanda What version of Windows are you using? We currently rely on WIC for image decoding. The failure seems to be related to initializing WIC. |
I am using a Windows 10 cloud computer to run this. So I don't really have control over upgrading this to Windows 11. BTW, I didn't get this bug in 0.4.0 I believe so I think this may be a new thing. If I am to release software to the public which runs GenAI I would expect it to work on Windows 10 and Windows 11. If it is relying on Windows 11 only libraries that doesn't seem great. Unless I can add those libraries to my software. Although WIC says it works from Vista onwards so I don't think that would be the problem. A nice error message saying "This doesn't work on Windows 10" or "missing library" would be a small nicety. BTW, I am running this in Unity, so if it is relying on an external image library I might have to add that to my project if I knew what was needed. |
@elephantpanda Yes, the WIC dependency was newly introduced in 0.5.0. And since it works with Vista+, Windows 10 shouldn't be a problem. Could you please check if these libraries are available in your environment? Especially |
c# 0.51 Directml
OnnxRuntimeGenAIException: Error encountered while parsing 'D:\Phi3OnnxVision\genai_config.json' JSON Error: Unknown value: visual_features at line 48 index 53
Didn't have this error when running in 0.40
The text was updated successfully, but these errors were encountered: