Giter Site home page Giter Site logo

guilhermeromano / cnn_mech_parts Goto Github PK

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

A deep learning project for classifying mechanical parts. Inspired by Promechs original work and using Mechanical Classification Benchmark dataset

Jupyter Notebook 57.67% Python 15.38% Batchfile 26.94%

cnn_mech_parts's Introduction

CNN_Mech_Parts

A deep learning project for classifying mechanical parts. Based on Promech2020/Mech-parts-classification-seq-model and using Mechanical Classification Benchmark dataset

Related Work

This is a project that is inspired by Sunny Tuladhar work of making a CNN to classify mechanical parts. I just took interest and improved the original code and model to have the same precision, but working with more classes while also adding some QOL changes to make it easier to keep track of all logs and plots.

Database

We are going to use Mechanical Classification Benchmark dataset B, that includes 18038 files from 3D warehouse and GrabCAD. Database A includes more files if needed.

Preparing data

The expected input is 224x224 images, so a script to take screenshots from the 3D files was included to help converting. In case this changes, just update both the script for extracting screenshots and the value of the input layer.

CNN Architecture

Very simple architecture, similar to AlexNet. We are going to use 224x224 grey scaled images to feed it. There is a code snippet to extract 8 screenchots of 3D models. The original database was MCB dataset B

CNN Architecture

Logs, Plots and Models

To help keep track of all the experiments while improving the model, I added a few callbacks to save the model and the training log.

These can be found in the models and logs folder, saved in .h5 and .csv format.

It'll also generated plots for training loss and error, aswell for validation. Lastly, it'll generate a confusion matrix of the last model trained.

Confusion Matrix

File structure

The current structure of files is to save your prepared data in the refined_data folder divided by datasets folders. If needed, this can be changed, just remember to change how the code will name your models, logs and plots.

cnn_mech_parts's People

Contributors

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