Giter VIP home page Giter VIP logo

humanprotain's Introduction

Human Protein Atlas Image Classification (kaggle)

Overview

Implementing human protein atlas image classification from kaggle using tensorflow.

Environment

conda create -n protein python=3.6 anaconda
activate protein
# or for unix
source activate protein
conda install tensorflow-gpu
conda install keras
pip install kaggle
conda update --all

Place the API credintials instructed here. https://github.com/Kaggle/kaggle-api

Go to the working directory you decide.

git clone https://github.com/meitetsu3/HumanProtain.git
cd HumanProtein
kaggle competitions download -c human-protein-atlas-image-classification

Extract the downloaded zip file.

Create input folder and move the extracted folders and csv files under input folder.

Preparing data

go to code folder which is assumed working directory. Open TFRecord.py with your favorite IDE / editor.

In this project, we are converting the image files to TFRecord files.

create input_tf folder under the working directory. Copy sample_submission.csv under the input folder, and name it test.csv. The run the TFRecord.py.

You will get 12 Train-?.tfrecord files containing more than 31k training images(each stacked array of 4 gray scale images with different filters) and lables (multi-lables). It also creates Test-.tfrecord file which contains all the test images.

Based on your system and preference, change the number of files you create.

Run CheckTFRecord.py to visualize some of the images from the tfrecord files. It shows 2 images with the first 3 channel (R,G,B) and another image swapping the 3rd channel B with Y.

image here:

First training

Reviewing the model performance

Predicting

humanprotain's People

Contributors

meitetsu3 avatar

Watchers

James Cloos 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.