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

Cannot use the converted efficientdet-d0.pth model in onnxjs #11

Open
radiachkik opened this issue Sep 8, 2020 · 0 comments
Open

Cannot use the converted efficientdet-d0.pth model in onnxjs #11

radiachkik opened this issue Sep 8, 2020 · 0 comments

Comments

@radiachkik
Copy link

Hey there,

I'm having trouble using the converted model in onnxjs. I used the pretrained D0 model and the demo convert command:

python3 convert/convert_onnx.py

After successfull export, this simple Javascript code:

const myOnnxSession = new onnx.InferenceSession();
myOnnxSession.loadModel("./efficientdet-d0.onnx");

produces following error:

Uncaught (in promise) TypeError: int64 is not supported
    f tensor.ts:388
    p tensor.ts:420
    fromProto tensor.ts:245
    getValue attribute.ts:147
    e attribute.ts:34
    s graph.ts:110
    buildGraph graph.ts:260
    t graph.ts:139
    from graph.ts:77
    load model.ts:25
    initialize session.ts:85
    event instrument.ts:294
    initialize session.ts:81
    loadModel session.ts:63
    u onnx.min.js:14
    u onnx.min.js:14
    a onnx.min.js:14

Did anyone try to run the converted model with onnxjs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant