mirror of
https://github.com/hexahigh/games.git
synced 2025-12-11 20:15:38 +01:00
fixed model?
This commit is contained in:
parent
f9460828bb
commit
c59e376fe5
@ -6,13 +6,11 @@
|
||||
|
||||
async function createModel() {
|
||||
const checkpointURL = URL + "model.json"; // model topology
|
||||
const metadataURL = URL + "metadata.json"; // model metadata
|
||||
|
||||
const recognizer = speechCommands.create(
|
||||
"BROWSER_FFT", // fourier transform type, not useful to change
|
||||
undefined, // speech commands vocabulary feature, not useful for your models
|
||||
checkpointURL,
|
||||
metadataURL);
|
||||
checkpointURL);
|
||||
|
||||
// check that model and metadata are loaded via HTTPS requests.
|
||||
await recognizer.ensureModelLoaded();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user