Giter Site home page Giter Site logo

yutingyao / steel_defect_detection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chhiilnos1996/ece285_steel_defect_detection

0.0 0.0 0.0 122.22 MB

Kaggle 2019 steel defect detection contest, final project for course ECE285

Jupyter Notebook 98.94% Python 1.06%

steel_defect_detection's Introduction

ECE 285 Final Project (D): Severstal Steel Defect Detection

Authors: Chi-Hsin Lo, Subrato Chakravorty, Utkrisht Rajkumar

Description

This is project D: Severstal Steel Defect Detection using semantic segmentation by team 3Nature_2Journal_8GPU.

The dataset for this project can be found here. To run with our default path setup, create a new folder called "inputs" in the same directory as the one containing this cloned respository. Download and extract the dataset inside "inputs." The kaggle submission kernel can be found here. It contains the code to upload submission.csv files and submit to Kaggle. Inside the kernel, load the dataset called ece285_submissions to access all generated submission files. The submissions can be directly downloaded from kaggle here.

Requirements

All the package requirements can be found in requirements.txt. To install the requirements:

git clone https://github.com/ucrajkumar/ece285
cd ece285
pip install -r requirements.txt

If working in a conda environment, use:

conda install --file requirements.txt

The required file structure to run with our default paths are as follows: File Structure

  • Current Directory
    • Inputs
      • Downloaded data from Kaggle
    • ece285 (this repo)

Code organization

file name Description of file
Demo.ipynb Qualitatively evaluate all models on validation and test set images
Figures.ipynb Recreate figures from report
Train.ipynb Train u-net, u-net with residual encoder, and u-net with inverted residual encoder
deeplabv3.ipynb Train deeplabv3+
Inference.ipynb Predict on test set and export results
data_gen.py Data generator for loading train, validation, and test images
model.py Code for building all 4 models
utils.py Accuracy and loss metrics, conversion from mask to RLE and vice-versa, and post-processing
train_idx.npy indices for training set
val_idx.npy indices for validation set

folder name Description of file
ex_images Example validation and test images for Demo.ipynb
history Training history for each model
models Trained model files
submissions Exported results on test set

*Note: The submission for deeplab was too large to upload onto github. However, it is in ece285_submissions folder in Kaggle.

steel_defect_detection's People

Contributors

ucrajkumar avatar subratochakravorty avatar chhiilnos1996 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.