Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vzhou842/cnn-from-scratch

A Convolutional Neural Network implemented from scratch (using only numpy) in Python.
https://github.com/vzhou842/cnn-from-scratch

computer-vision convolutional-neural-networks guide machine-learning neural-network python

Last synced: about 2 months ago
JSON representation

A Convolutional Neural Network implemented from scratch (using only numpy) in Python.

Awesome Lists containing this project

README

        

# A Convolution Neural Network (CNN) From Scratch
This was written for my 2-part blog post series on CNNs:

- [CNNs, Part 1: An Introduction to Convolution Neural Networks](https://victorzhou.com/blog/intro-to-cnns-part-1/)
- [CNNs, Part 2: Training a Convolutional Neural Network](https://victorzhou.com/blog/intro-to-cnns-part-2/)

To see the code (forward-phase only) referenced in Part 1, visit the [forward-only](https://github.com/vzhou842/cnn-from-scratch/tree/forward-only) branch.

## Usage

Install dependencies:

```bash
$ pip install -r requirements.txt
```

Then, run it with no arguments:

```bash
$ python cnn.py
$ python cnn_keras.py
```

You can also [run this code in your browser](https://repl.it/@vzhou842/A-CNN-from-scratch-Part-2).

## More

You may also be interested in [a Neural Network implemented from scratch in Python](https://github.com/vzhou842/neural-network-from-scratch), which was written for my [introduction to Neural Networks](https://victorzhou.com/blog/intro-to-neural-networks/).