• Stars
    star
    282
  • Rank 146,549 (Top 3 %)
  • Language
    Python
  • Created almost 5 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Python+Numpy+PyQt implement CNN to recognize handwritten number

Overview

2022-11-28_17-29

For more presentations please visit: https://www.bilibili.com/video/BV127411b7hK

How to run

Prerequisites

  • Python3 (Tested in Python 3.8.10)
  • Pip
  • Venv

Run main GUI

  1. Create a Python virtual environment (Optional)
$ python3 -m venv venv
$ source venv/bin/activate
  1. Install the required packages
$ pip install -r requirements.txt
  1. Run the main GUI
$ python ./mnist_cnn_gui_main.py

You can modify the network structure in mnist_cnn_gui_main.py file, and two networks are provided by default.

Train model

Train Simple CNN:

$ python ./train_convnet.py

Train Deep CNN:

$ python ./train_deepnet.py

Acknowledgement

  • 《深度学习入门-基于Python的理论与实现》