Yet-Another-EfficientDet-Pytorch-Convert-ONNX-TVM icon indicating copy to clipboard operation
Yet-Another-EfficientDet-Pytorch-Convert-ONNX-TVM copied to clipboard

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

Open radiachkik opened this issue 3 years ago • 0 comments

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?

radiachkik avatar Sep 08 '20 14:09 radiachkik