-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add known issues to readme; dont capture on focus, but add capture on…
… event change
- Loading branch information
Showing
3 changed files
with
10 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,8 +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} from 'https://cdn.jsdelivr.net/npm/@xenova/[email protected]/dist/transformers.min.js' | ||
// import {AutoModel, AutoProcessor, RawImage} from 'https://cdn.jsdelivr.net/npm/@huggingface/[email protected]/dist/transformers.min.js' | ||
import {AutoModel, AutoProcessor, RawImage} from 'https://cdn.jsdelivr.net/npm/@xenova/[email protected]/dist/transformers.min.js' | ||
// import {AutoModel, AutoProcessor, RawImage} from 'https://cdn.jsdelivr.net/npm/@huggingface/[email protected]/dist/transformers.min.js' | ||
// Note modnet on transformers v3 is 10x faster on chromium 128 but crashed on 129+. See: https://github.com/xenova/transformers.js/issues/943 | ||
|
||
import 'https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tf.min.js' | ||
import 'https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tf-backend-webgpu.min.js' | ||
|
@@ -68,12 +69,12 @@ video_url.addEventListener('change', e => { | |
video_url.addEventListener('focus', e => { | ||
skip_changed = false | ||
e.currentTarget.select() // Broken in Chrome. See: https://issues.chromium.org/issues/40345011#comment45 | ||
if (e.currentTarget.value) | ||
capture() | ||
}) | ||
|
||
let loop_mode | ||
effect.addEventListener('change', e => { | ||
if (e.currentTarget.value) | ||
capture() | ||
loop_mode = null | ||
if (e.currentTarget.value == 'loop' || e.currentTarget.value == 'random') { | ||
loop_mode = e.currentTarget.value | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters