Git Product home page Git Product logo

algeriancoinclassifier's Introduction

Model README

Description

This repository contains a convolutional neural network (CNN) model implemented using TensorFlow and Keras for classifying images of coins. The model is designed to classify images into one of seven classes, corresponding to different coin denominations: 1, 5, 10, 20, 50, 100, and 200.

Model Architecture

The model architecture consists of two main parts: a CNN and a multi-layer perceptron (MLP). Here's an overview of the architecture:

  • CNN Network: The CNN part of the model comprises several convolutional and pooling layers to extract features from input images.
    • Convolutional Layer 1: 16 filters, 3x3 kernel size, ReLU activation, padding='same'
    • Max Pooling Layer 1: 2x2 pool size
    • Convolutional Layer 2: 32 filters, 3x3 kernel size, ReLU activation, padding='same'
    • Max Pooling Layer 2: 2x2 pool size
    • Convolutional Layer 3: 64 filters, 3x3 kernel size, ReLU activation, padding='same'
    • Max Pooling Layer 3: 2x2 pool size
    • Convolutional Layer 4: 128 filters, 3x3 kernel size, ReLU activation, padding='same'
    • Max Pooling Layer 4: 2x2 pool size
    • Convolutional Layer 5: 256 filters, 3x3 kernel size, ReLU activation, padding='same'
  • Transition: Global average pooling layer to transition between CNN and MLP.
  • MLP Network: The MLP part of the model consists of fully connected layers.
    • Dense Layer: 256 neurons, ReLU activation
    • Output Layer: 7 neurons for predicting 7 classes, softmax activation

๐Ÿš€ Demo

Demo

Usage

You can use this model to classify images of coins into their respective denominations. Simply load the model and pass the image data to it for prediction.

# Example usage
from tensorflow.keras.models import load_model
import numpy as np

# Load the model
model = load_model('path_to_model')

# Example image data (replace with your own)
image_data = np.random.random((1, 256, 256, 3))

# Make predictions
predictions = model.predict(image_data)

algeriancoinclassifier's People

Contributors

oussamaabderraoufattia 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.