Skip to content

Commit

Permalink
versions bump
Browse files Browse the repository at this point in the history
  • Loading branch information
eyaler committed Oct 27, 2024
1 parent b625d43 commit 48c4f8d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ WebGL ([Three.js](https://threejs.org/), [SwissGL](https://google.github.io/swis

<br>

#### Demo Video:
#### Demo video:

(Using RTX 3070 Ti laptop @ 1920x1080)

[Demo Video](https://github.com/user-attachments/assets/1e03f147-b229-4d9f-a340-ea8969830e50)

<br>

#### High-level architecture and modules:
#### High-level architecture and implemented modules:
![Architecture](media/LordTubeMaster.svg)

<br>
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<hr>
<optgroup label="WebGPU">
<option value="modnet_transformers_webgpu">MODNet portrait matting (Transformers.js)</option>
<option value="cartoonization_tfjs_webgpu">Whitebox cartoonization (TensorFlow.js)</option>
<option value="cartoonization_tfjs_webgpu">White-box cartoonization (TensorFlow.js)</option>
<option value="teed_edge_detection_ort_webgpu">TEED edge detection (ONNX Runtime web)</option>
</optgroup>
<hr>
Expand All @@ -37,7 +37,7 @@
</optgroup>
<hr>
<optgroup label="Meta">
<option value="recode_original">Recode original</option>
<option value="passthrough_recode">Pass-through recoding</option>
<option value="loop">Loop all effects</option>
<option value="random">Randomize all effects</option>
</optgroup>
Expand Down
6 changes: 3 additions & 3 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import {
} from 'https://cdn.jsdelivr.net/npm/@mediapipe/[email protected]/vision_bundle.mjs'
const mediapipe_wasm_url = 'https://cdn.jsdelivr.net/npm/@mediapipe/[email protected]/wasm'

import {AutoModel, AutoProcessor, RawImage, env as transformersEnv} from 'https://cdn.jsdelivr.net/npm/@huggingface/[email protected].0-alpha.20/dist/transformers.min.js'
import {AutoModel, AutoProcessor, RawImage, env as transformersEnv} from 'https://cdn.jsdelivr.net/npm/@huggingface/[email protected].1/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@4.22.0/dist/tf.min.js'
import 'https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tf-backend-webgpu.min.js'

import * as ort from 'https://cdn.jsdelivr.net/npm/[email protected]/dist/ort.webgpu.min.mjs'
Expand Down Expand Up @@ -589,7 +589,7 @@ async function capture() {
}
}
}
if (effect.value in effect_funcs && !effect.value.includes('recode')) {
if (effect.value in effect_funcs && !effect.value.includes('recod')) {
await effect_funcs[effect.value](W, H, rgbx, ...yuv_data, models, videoFrame, canvasCtx, gl_engines)
if (effect.value.includes('tfjs_webgpu'))
await queue.onSubmittedWorkDone() // This reduces lag. See also: https://github.com/tensorflow/tfjs/issues/6683#issuecomment-1219505611, https://github.com/gpuweb/gpuweb/issues/3762#issuecomment-1400514317
Expand Down

0 comments on commit 48c4f8d

Please sign in to comment.