Code Monkey home page Code Monkey logo

galaxy-classifier's Introduction

Galaxy Image Classifier

A CNN to classify images different types of galaxies - spiral, elliptical, and irregular.

Trained and tested on 16 gigs of RAM, i7-8750H, GTX 1060 all at stock settings.

Check requirements.txt and packages_neded.txt for module information.

Quick start

To train:

  • First generate the training command using generate_training_command.py. The command relies on specifying the absolute path so the script will generate the command specific to your environment.
    python generate_training_command.py
  • Then execute the command which will be of this form:
    python your_project_path\retrain.py --bottleneck_dir=your_project_path\bottlenecks --how_many_training_steps 500 --model_dir=your_project_path\inception --output_graph=your_project_path\retrained_graph.pb --output_labels=your_project_path\retrained_labels.txt --image_dir your_project_path\tf_files
    You can change the number of training steps and other parameters inside the generate_training_command.py file.

To predict

python label_image.py test_images/ellipticaltest.jpg

Output:

elliptical (score = 98.54690)
spiral (score = 0.86201)
irregular (score = 0.59109)

galaxy-classifier's People

Contributors

bkataru avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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