Skip to content

Commit

Permalink
Merge branch 'now-model' of https://github.com/Mattk70/Chirpity-Electron
Browse files Browse the repository at this point in the history
 into now-model
  • Loading branch information
Mattk70 committed Nov 12, 2023
2 parents 3c4769a + 94971ea commit e01ad1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ onmessage = async (e) => {
const spec_width = e.data.width;
let image;
const signal = tf.tensor1d(buffer, 'float32');
const bufferTensor = myModel.normalise_audio(signal);
const bufferTensor = myModel.normalise_audio_batch(signal);
signal.dispose();
const imageTensor = tf.tidy(() => {
return myModel.makeSpectrogram(bufferTensor);
Expand Down
4 changes: 2 additions & 2 deletions js/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ let SEEN_LIST_UPDATE = false // Prevents list updates from every worker on ever

const DEBUG = false;

const DATASET = false;
const DATASET = true;
const adding_chirpity_additions = true;
const dataset_database = DATASET;

Expand Down Expand Up @@ -1304,7 +1304,7 @@ const convertSpecsFromExistingSpecs = async (path) => {
}

const saveResults2DataSet = (rootDirectory) => {
if (!rootDirectory) rootDirectory = '/mnt/608E21D98E21A88C/Users/simpo/PycharmProjects/Data/test';
if (!rootDirectory) rootDirectory = 'C:/Users/simpo/PycharmProjects/Data/test';
const height = 256, width = 384;
let t0 = Date.now()
let promise = Promise.resolve();
Expand Down

0 comments on commit e01ad1c

Please sign in to comment.