From acc0a8d1ccd4f082249b68d6a86b448f1e9373f4 Mon Sep 17 00:00:00 2001 From: EdwinWong Date: Tue, 6 Feb 2024 16:54:30 +0800 Subject: [PATCH] fix: onnx runtime version --- js/onnx.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/onnx.js b/js/onnx.js index fc06fa0..b234c53 100644 --- a/js/onnx.js +++ b/js/onnx.js @@ -1,9 +1,9 @@ -import "https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/ort.min.js"; +import "https://cdn.jsdelivr.net/npm/onnxruntime-web@1.16.3/dist/ort.min.js"; import npyjs from "https://esm.sh/npyjs"; import { imageSize } from "./state.js"; import { modelData, onnxMaskToImage } from "./onnx_helper.js"; -ort.env.wasm.wasmPaths = "https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/"; +ort.env.wasm.wasmPaths = "https://cdn.jsdelivr.net/npm/onnxruntime-web@1.16.3/dist/"; export let model = null; let modelType = null;