{
			error(e)
		}
	}

	const runNet = async (data) => {
		if (!net) error("Net not loaded yet.");

		const input = reorderChannelsAndRemoveAlpha(Array.from(data).map((pix) => (pix / 255.0) * 0.45 - 0.225));
		const out = await timer(() => net(new Float32Array(input)));

		const arr = Array.from(new Float32Array(out[0]));
		const index = arr.indexOf(Math.max(...arr));

		resultText.textContent = labels[index];
	};

	loadLet();
</script>
</body>
</html>