Wener Notes

ONNX Runtime

约 1 分钟阅读
标签:运行时
JavaScript
import * as ort from 'onnxruntime-web';
// Load the model and create InferenceSession
const modelPath = 'path/to/your/onnx/model';
const session = await ort.InferenceSession.create(modelPath);
// Load and preprocess the input image to inputTensor
// ...
// Run inference
const outputs = await session.run({ input: inputTensor });
console.log(outputs);

关联信息

反向链接、本文链接的其他页面和外部资料。

References

GitHub7 条
其他外链1 条
最近更新commit e6a0237Edit

On this page