axinc-ai / ailia-models

The collection of pre-trained, state-of-the-art AI models for ailia SDK
2.04k stars 325 forks source link

image_encoder_hiera_t.onnx Not working with web onnx #1554

Open Quicksticks-oss opened 1 month ago

Quicksticks-oss commented 1 month ago

Hello I am trying to have this work in the web using web ort but i cant get it to load any ideas?

image_encoder_hiera_t.onnx image

    const modelPath = "/public/models/image_encoder_hiera_t.onnx";
    const imageEncoder = await ort.InferenceSession.create(modelPath);
    console.log(imageEncoder);
kyakuno commented 1 month ago

@Quicksticks-oss I think this error is not a model error, but an error in the onnx runtime itself. I recommend trying SAM2 after confirming the operation with other models.