Giter Site home page Giter Site logo

yuanhaogong / aetros-cli Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aetros/aetros-cli

0.0 3.0 0.0 104 KB

Python library to manage/monitor deep neural network training in AETROS Trainer

Home Page: http://aetros.com/trainer

License: MIT License

Makefile 0.08% Python 99.92%

aetros-cli's Introduction

AETROS CLI

This package is a python application you need to use when you want to train your deep artificial neural networks locally.

It basically retrieves all model information from AETROS, compiles and starts the training, attached with a special logger callback that sends all information to AETROS Trainer so you can monitor the whole training.

It also contains dataset provider (aetros.auto_dataset, with downloader, generator, in-memory iterator and augmentor) for image datasets which is used if you have a image dataset configured in AETROS Trainer.

More information at: http://aetros.com/trainer

Installation

$ sudo pip install aetros

# update
$ sudo pip install aetros --upgrade

Requirement: Python v2.x, Theano

Installation development version

If you want to install current master (which is recommended during the closed-beta) you need to execute:

$ git clone https://github.com/aetros/aetros-cli.git
$ cd aetros-cli
$ python setup.py install
$ aetros --help

You can alternatively to git clone download the zip at https://github.com/aetros/aetros-cli/archive/master.zip.

Usage

# show help with all available commands and options
$ aetros start --help
$ aetros predict --help

# create new training
$ API_KEY='MY_API_KEY' aetros start my/my-network --insights
> Training 'x82d0r' created and started. Open http://aetros.com/trainer/app?training=x82d0r to monitor the training.


# re-start a training
$ API_KEY='MY_API_KEY' aetros start x82d04
> Training 'x82d0r' restarted. Open http://aetros.com/trainer/app?training=x82d0r to monitor the training.

Use CTRL+C to stop gracefully the job (it will sync latest monitoring information, insights and weights). Press CTRL+C again to force shutdown.

Please note: If you use image datasets AETROS is downloading all images to current working directory at ./datasets/. Also you'll find after you handle with networks two additional folders in the current working directory ./networks and ./weights. All those directories will always be created in the current working directory.

API KEY

In front of each command you need to provide API_KEY="mykey" as environment variable. You find your keys at http://aetros.com/user/settings/api.

GPU

If you have setup CUDA correctly, you can train on NVIDIA GPUs to improve drastically the training speed. Theano supports NVIDIA GPUs starting with Kepla cores (>600 models).

Installation:

  • Install CUDA https://developer.nvidia.com/cuda-downloads (we assume you have 7.5)
  • Add cuda to your $PATH
  • Mac OSX: export PATH=$PATH:/Developer/NVIDIA/CUDA-7.5/bin (place it into ~/.bash_profile or ~/.zshrc if you use zsh - restart terminal after change)
  • Linux: export PATH=$PATH:/usr/local/cuda-7.5/bin (place it into ~/.bash_profile or ~/.zshrc if you use zsh - restart terminal after change)
  • Run aetros with --gpu: API_KEY='MY_API_KEY' aetros start my/my-network --gpu

CPU Multithreading

Theano supports multithreading to speed up training. To use it you need to make sure you have OpenMP installed.

To activate multithreading you can pass --mp 4 to say it should use 4 threads. This sets the THEANO_FLAGS and OMP_NUM_THREADS accordingly and may overwrite your settings in ~/.theanorc.

$ API_KEY='MY_API_KEY' aetros start my/my-network --mp 4

aetros-cli's People

Watchers

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