Update index.js
Browse files
index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
-
import { env, AutoTokenizer, RawImage, Tensor } from '
|
2 |
-
import { getModelJSON, getModelFile } from "
|
3 |
-
import * as ort from "onnxruntime-web/webgpu";
|
4 |
|
5 |
const INPUT_IMAGE_SIZE = [960, 960];
|
6 |
const HEIGHT_FACTOR = 10;
|
|
|
1 |
+
import { env, AutoTokenizer, RawImage, Tensor } from 'https://cdn.jsdelivr.net/npm/@huggingface/transformers';
|
2 |
+
import { getModelJSON, getModelFile } from "https://cdn.jsdelivr.net/npm/@huggingface/transformers@3.0.2/src/utils/hub.js";
|
3 |
+
import * as ort from "https://cdn.jsdelivr.net/npm/onnxruntime-web@1.20.0/dist/ort.webgpu.mjs";
|
4 |
|
5 |
const INPUT_IMAGE_SIZE = [960, 960];
|
6 |
const HEIGHT_FACTOR = 10;
|