andgate / mnist

Handwritten digit recognizer built with pytorch and solid js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MNIST Demo

Simple MNIST demo for machine learning practice.

Model is built with pytorch, and UI is build with solid-js.

Building

Create a python virtual environment with python -m venv env. Activate the environment with

  • Windows CMD: .\env\Scripts\activate.bat
  • Windows Powershell: .\env\Scripts\Activate.ps1
  • Linux/MacOs: source env/bin/activate

Install dependencies with pip install -r requirements.txt. Save modified dependencies with pip freeze > requirements.txt.

Run model.py with python to generate the model.

Use pnpm run build to build the project.

Build output is in the docs folder, which is hosted by github pages.

About

Handwritten digit recognizer built with pytorch and solid js


Languages

Language:Jupyter Notebook 46.1%Language:TypeScript 37.3%Language:Python 9.5%Language:JavaScript 3.8%Language:CSS 2.8%Language:HTML 0.7%