Fixed model paths

This commit is contained in:
2026-01-02 11:31:32 +01:00
parent 6dac8493e6
commit 012da8ff54

View File

@@ -4,8 +4,8 @@ export async function loadMNIST(device, sampleCount = 1000) {
return new Uint8Array(await res.arrayBuffer()); return new Uint8Array(await res.arrayBuffer());
} }
const imgRaw = await loadFile("../../models/train-images-idx3-ubyte"); const imgRaw = await loadFile("./models/train-images-idx3-ubyte");
const lblRaw = await loadFile("../../models/train-labels-idx1-ubyte"); const lblRaw = await loadFile("./models/train-labels-idx1-ubyte");
const header = 16; const header = 16;
const fullCount = lblRaw.length - 8; const fullCount = lblRaw.length - 8;