Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hoanglayor/handwritten-digit-recognition
Handwritten Digit Recognition using simple DL model
https://github.com/hoanglayor/handwritten-digit-recognition
fastapi handwritten-digit-recognition pytorch streamlit
Last synced: 2 months ago
JSON representation
Handwritten Digit Recognition using simple DL model
- Host: GitHub
- URL: https://github.com/hoanglayor/handwritten-digit-recognition
- Owner: HoangLayor
- Created: 2024-10-17T00:19:12.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-10-22T03:42:18.000Z (4 months ago)
- Last Synced: 2024-10-23T05:39:38.440Z (4 months ago)
- Topics: fastapi, handwritten-digit-recognition, pytorch, streamlit
- Language: Jupyter Notebook
- Homepage: https://hoanglayor-handwritten-digit--streamlit-appstreamlit-app-jmbim3.streamlit.app/
- Size: 48.5 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
># Handwritten Digit Recognition using PyTorch
>>This project trains a simple DL model on the MNIST dataset to recognize handwritten digits.## Installation
```python
pip install -r requirements.txt
```
----
# ***Training & Evaluation***
```
📂 src
├── 📂 checkpoints
│ ├── 📂 checkpoint_1
│ └── 📂 checkpoint_2
├── 📂 data
│ ├── 📂 MNIST
│ └── 📄 dataset.py
├── 📂 models
│ └── 📄 model.py
├── 📂 test_images
│ ├── 📄 00.png
│ ├── 📄 01.png
│ └── ...
├── 📂 training
│ ├── 📄 evaluation.py
│ └── 📄 train.py
├── 📂 utils
│ └── 📄 utils.py
├── 📄 main.py
└── 📄 mnist.ipynb
```
__Train & Eval__
```python
python src/main.py
```
----
# ***Deploy***
## API
```
📂 api_app
├── 📂 models
│ └── 📄 model.py
├── 📂 utils
│ ├── 📄 preprocess.py
│ └── 📄 utils.py
├── 📄 api.py
├── 📄 inference.py
└── 📄 run.py
```
__Run FastAPI__
```python
python api_app/run.py
```
- [127.0.0.1:8000](http://127.0.0.1:8000/docs)
## Streamlit
```
📂 streamlit_app
├── 📂 models
│ └── 📄 model.py
├── 📂 utils
│ ├── 📄 predict.py
│ ├── 📄 preprocess.py
│ └── 📄 utils.py
└── 📄 streamlit_app.py
```
__Run streamlit app__
```python
streamlit run streamlit_app/streamlit_app.py
```
- [https://hoanglayor-handwritten-digit--streamlit-appstreamlit-app-jmbim3.streamlit.app/](https://hoanglayor-handwritten-digit--streamlit-appstreamlit-app-jmbim3.streamlit.app/)