GithubHelp home page GithubHelp logo

mzhigarev / udaticy_mle_capstone Goto Github PK

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

Machine learning nanodegree capstone project

Jupyter Notebook 100.00%
machine-learning google-cloud-platform google-datalab google-storage bigquery udacity-nanodegree

udaticy_mle_capstone's Introduction

Image classifier

Image classifier is a Udacity capstone project.

Getting Started

The project consists of 2 parts:

  1. GetFiles.ipynb - data collection. Use this file to collect the data in case you want to do it manually. You can also download the dataset from this link.
  2. ClassifyImages.ipynb - main project.

Prerequisites

The project was build on Python 2.7 and Google Cloud Platform using:

  • Google VM instance
  • Google Datalab
  • Google BigQuery
  • Google Storage (optional)

To run the analysis please upload the files in your Google Cloud workspace. See "Setting up" section below.

Libraries and modules we used:

  • google.datalab
  • pandas
  • numpy
  • logging
  • pillow
  • os
  • random (optional)
  • json (optional)
  • urllib (optional)
  • requests (optional)
  • codecs (optional)
  • cv2 (optional)
  • pytube (optional)

Setting up

To make the project running in Google Cloud, follow the instruction below.

  1. set up your account and project in Google Cloud.
  2. create and connect to a Cloud Datalab instance
  3. go to /content/ directory by clicking Home icon (see 1). Create a notebook in home directory by clicking Notebook (see 2)

  1. insert code cell in your new notebook and run
!git clone https://github.com/mzhigarev/Udaticy_MLE_Capstone

to copy GitHub repo to your Google Datalab folder. This command will move the files into home directory ('/content/')

!gsutil mv /content/Udaticy_MLE_Capstone/* /content/

And lastly, remove unnecessary folders

import shutil
shutil.rmtree("/content/Udaticy_MLE_Capstone/")
shutil.rmtree("/content/datalab/")
  1. Due to GitHub limit for file size, not all files will be copied. You need manually upload files from Google Drive repository into your directory on Google Cloud.
  2. Finally your directory should contain these files and folders:
ad_test/
excel-word-classifier-tt/
ClassifyImages.ipynb
GetFiles.ipynb

now you can reference the folder with path "/content/", so for example GetFiles.ipynb has a path "/content/GetFiles.ipynb"

Optional

We pre-collected files for testing/training. If you want to collect your own set, please run GetFiles.ipynb on local machine.

We used OpenCV and Pytube for data collection and preparation (see GetFiles.ipynb). The libraries are optional, all files you can find here. In case you want to gather your own data, use the libs on your local machine.

Install the labraries:

!pip install pytube
!pip install opencv-python

udaticy_mle_capstone's People

Contributors

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