Skip to content
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

Microsoft.ML.OnnxRuntime.OnnxRuntimeException: "[ErrorCode:InvalidGraph] Load model Error Node (BeamSearch_node) has input size 12 not in range [min=5, max=10] #18506

Closed
DimQ1 opened this issue Nov 19, 2023 · 1 comment
Labels
platform:windows issues related to the Windows platform

Comments

@DimQ1
Copy link

DimQ1 commented Nov 19, 2023

Describe the issue

What happened?
I try to run example https://github.com/onnxruntime/Whisper-HybridLoop-Onnx-Demo

I followed the instructions and converted the Whisper model.

Run example and get the following error:

Microsoft.ML.OnnxRuntime.OnnxRuntimeException: "[ErrorCode:InvalidGraph] Load model from E:\Work\Dimq1\source\OpenAI\Whisper-HybridLoop-Onnx-Demo\AudioNoteTranscription\bin\Debug\net8.0-windows7.0\Onnx\model.onnx failed:This is an invalid model. In Node, ("BeamSearch_node", BeamSearch, "com.microsoft", -1) : ("log_mel": tensor(float),"max_length": tensor(int32),"min_length": tensor(int32),"num_beams": tensor(int32),"num_return_sequences": tensor(int32),"length_penalty": tensor(float),"repetition_penalty": tensor(float),"","","","","",) -> ("sequences",) , Error Node (BeamSearch_node) has input size 12 not in range [min=5, max=10]."

At the same time onnx model which I get as a resul work fine with python.

To reproduce

Follow instractions from source
https://github.com/DimQ1/Whisper-HybridLoop-Onnx-Demo/tree/shdmitry/test-onnx-whisper-tiny

image
model.zip.001.zip
model.zip.002.zip

Urgency

No response

Platform

Windows

OS Version

11

ONNX Runtime Installation

Built from Source

ONNX Runtime Version or Commit ID

1.16.2

ONNX Runtime API

C#

Architecture

X64

Execution Provider

Default CPU

Execution Provider Library Version

No response

@github-actions github-actions bot added the platform:windows issues related to the Windows platform label Nov 19, 2023
@DimQ1
Copy link
Author

DimQ1 commented Nov 25, 2023

I resolve the issue using correct nugets

@DimQ1 DimQ1 closed this as completed Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform:windows issues related to the Windows platform
Projects
None yet
Development

No branches or pull requests

1 participant