Giter Site home page Giter Site logo

pavrmk / deep_learning Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 9.11 MB

Deep Learning image recognition with TensorFlow Keras. Created a Feed-Forward-Network from scratch and used pretrained networks MobileNetV2, ResNet50, and VGG16.

License: MIT License

Jupyter Notebook 99.84% Python 0.16%
image-recognition deep-learning feed-forward-neural-networks vgg16 resnet50 mobilenet mobilenetv2 python keras tensorflow

deep_learning's Introduction

Image Recognition with Deep Learning Models

This project was created in collaboration with @lenaromanenko during the @spicedacademy boot camp.

The project includes two sub-projects:

  1. Implementing a Feed-Forward-Network from scratch
  2. Writing an Image Classifier with pretrained networks: MobileNetV2, ResNet50, VGG16

1. Implementing a Feed-Forward-Network from scratch

This introductionary sub-project guides you through the steps of writing your own feed-forward-network for a fundamental understanding of the core principles of the Deep Learning models: https://github.com/lenaromanenko/deep_learning/blob/main/building_neural_network_from_scratch/Feed-Forward-Network.ipynb

2. Image Classifier with pretrained networks: MobileNetV2, ResNet50, VGG16

The goal of this project is to compare the different pre-trained networks and to build an image classifier using the best model. The program image_classifier.py accepts different pre-trained networks to find the anemone fishes (Nemo) in the image of an aquarium. Tested pre-trained networks include:

MobileNetV2
ResNet50
VGG16

Comparison of the three networks side-by-side:

In the direct comparison VGG16 provides the best results.

Improving the results of VGG16:

The predictions by VGG16 can be further improved by tweaking the image and the NumPy arrays before analyzing the picture.

1. Resizing the picture

Our model learns on the 224 by 224 Numpy arrays which are equal to 224x224 pixels frames. Since the image is too large, many fishes won’t fit into our 224x224 pixels frames. To solve this problem we can set the image width to a smaller size.

2. Changing steps for frame iterations

To analyze more objects on the picture we could iterate through the picture in smaller steps. This makes our predictions better but it also increases the time needed for predictions.

3. Adding a border to the picture

The fishes close to the borders of our picture would fit into less frames as compared to the fishes which are closer to the center. To solve this problem we can add a frame around our picture.



The effect of adding a border to the picture can be seen below:

deep_learning's People

Contributors

pavrmk avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.