taeseunglee / ml-project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image-Processing

Objective

Make an application that notices what input image is by using image processing.

References

About Dataset

What is a data set?

A data set (or dataset) is a collection of data. Most commonly a data set corresponds to the contents of a single database table, or a single statistical data matrix, where every column of the table represents a particular variable, and each row corresponds to a given member of the data set in question.

How can we get a image data set?

  1. Type "Image tag" in https://image.google.com. And click "inspect" after clicking right click.
  2. Copy and paste below code at console tab. (You maybe copy twice) Then you will get "url.txt". In "url.txt", there are image urls.
// pull down jquery into the JavaScript console
var script = document.createElement('script');
script.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(script);

// grab the URLs
var urls = $('.rg_di .rg_meta').map(function() { return JSON.parse($(this).text()).ou; });

// write the URls to file (one per line)
var textToSave = urls.toArray().join('\n');
var hiddenElement = document.createElement('a');
hiddenElement.href = 'data:attachment/text,' + encodeURI(textToSave);
hiddenElement.target = '_blank';
hiddenElement.download = 'urls.txt';
hiddenElement.click();
  1. Using download.py, download images in url.txt. (You should delete images that you failed to download. These are not images.)
  2. Because there are many thing you don't want, you should clean(refine) data set.

What is the keras?

Keras is a high-level neural networks API, written in Python and capable of running on top of TensorFlow, CNTK, or Theano. It was developed with a focus on enabling fast experimentation. Being able to go from idea to result with the least possible delay is key to doing good research.

Use Keras if you need a deep learning library that:

  • Allows for easy and fast prototyping (through user friendliness, modularity, and extensibility).
  • Supports both convolutional networks and recurrent networks, as well as combinations of the two.
  • Runs seamlessly on CPU and GPU.

Flow Chart of this program

Flow chart of this program

Flow Chart of VGG model

Flow chart of VGG model

Terminologies

Epoch

One Epoch is when an ENTIRE dataset is passed forward and backward through the neural network only ONCE.

Batch Size

Total number of training examples present in a single batch.

Iterations

Iterations is the number of batches needed to complete one epoch.

About


Languages

Language:Python 96.9%Language:JavaScript 3.1%