SvelteKit app for running a Teachable Machine image model with webcam inference in the browser.
@tensorflow/tfjs@teachablemachine/imagenpm install
Export your model from Teachable Machine (Image Project).
Copy exported files into:
static/tm-my-image-model/
At minimum this folder should include model.json, metadata.json, and the weight shard files.
npm run dev
Open the app, click Start, and allow camera access.
npm run build
npm run preview
/tm-my-image-model/.