diff --git a/README.md b/README.md index f73d876..8c8429a 100644 --- a/README.md +++ b/README.md @@ -3,18 +3,18 @@ Demo: https://eyaler.github.io/LordTubeMaster/#dQw4w9WgXcQ -Note as of September 2024 this is only supported on *Chromium desktop*. +Note as of late 2024 this is only supported on *Chromium desktop* (e.g. Chrome, Edge). Enable graphics/hardware acceleration browser setting to reduce lag. -Particularly for the WebGPU examples - make sure you are using a discrete GPU. +Particularly for the WebGPU examples - make sure your system graphics settings for the browser uses high performance / discrete GPU. To allow fullscreen zoom of output (with right-click) enable: `chrome://flags/#element-capture` (*Google Chrome 121+*), or -`chrome://flags/#enable-experimental-web-platform-features` (*Chromium 121+*). +`chrome://flags/#enable-experimental-web-platform-features` (*Chromium 121+*), and relaunch the browser. You can browse the effects with `Alt+↑` and `Alt+↓` The code demos usages with Wasm ([MediaPipe](https://ai.google.dev/edge/mediapipe/solutions/guide)), -WebGPU ([TensorFlow.js](https://www.tensorflow.org/js), [ONNX Runtime Web](https://onnxruntime.ai/docs/get-started/with-javascript/web.html), [Transformers.js](https://huggingface.co/docs/transformers.js/index)), +WebGPU ([ONNX Runtime Web](https://onnxruntime.ai/docs/get-started/with-javascript/web.html), [TensorFlow.js](https://www.tensorflow.org/js), [Transformers.js](https://huggingface.co/docs/transformers.js/index)), WebGL ([Three.js](https://threejs.org/), [SwissGL](https://google.github.io/swissgl/)), and VanillaJS. #### Known issues: diff --git a/script.js b/script.js index 23dd428..54e566b 100644 --- a/script.js +++ b/script.js @@ -14,7 +14,7 @@ import { } from 'https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@0.10.15/vision_bundle.mjs' const mediapipe_wasm_url = 'https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@0.10.15/wasm' -import {AutoModel, AutoProcessor, RawImage, env as transformersEnv} from 'https://cdn.jsdelivr.net/npm/@huggingface/transformers@3.0.0-alpha.17/dist/transformers.min.js' +import {AutoModel, AutoProcessor, RawImage, env as transformersEnv} from 'https://cdn.jsdelivr.net/npm/@huggingface/transformers@3.0.0-alpha.19/dist/transformers.min.js' import 'https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@4.21.0/dist/tf.min.js' import 'https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-webgpu@4.21.0/dist/tf-backend-webgpu.min.js'