Code Monkey home page Code Monkey logo

ar-unsupervised-learning's Introduction

Unsupervised Learning of Assistive Camera Views by an Aerial Co-robot in Augmented Reality Multitasking Environments

===============================================================

Python module to train weighted GMMs using CUDA (via CUDAMat)

Citation

If you use this work or draw inspiration from it, kindly cite this using:

@INPROCEEDINGS{8793587,
  author={Bentz, William and Dhanjal, Sahib and Panagou, Dimitra},
  booktitle={2019 International Conference on Robotics and Automation (ICRA)}, 
  title={Unsupervised Learning of Assistive Camera Views by an Aerial Co-robot in Augmented Reality Multitasking Environments}, 
  year={2019},
  volume={},
  number={},
  pages={3003-3009},
  keywords={Visualization;Task analysis;Cameras;Robot vision systems},
  doi={10.1109/ICRA.2019.8793587}}

Contents

Dependencies

Installation

Clone wgmm and CUDAMat in local install path:

cd ${INSTALL_PATH}
git clone https://github.com/sahibdhanjal/Weighted-Expectation-Maximization.git
git clone https://github.com/cudamat/cudamat.git

Compile and install CUDAMat:

cd ${INSTALL_PATH}/cudamat
sudo python setup.py install

Run CUDAMat tests (optional, requires nose):

cd ${INSTALL_PATH}/cudamat
nosetests

Run wgmm tests (optional, requires nose):

cd ${INSTALL_PATH}/wgmm
nosetests

Install wgmm:

cd ${INSTALL_PATH}/wgmm
sudo pip install .

Example Usage

import wgmm.gpu as wgmm

X = some_module.load_training_data()

# N - training examples
# D - data dimension
# K - number of GMM components
N, D = X.shape
K = 128

wgmm.init()
gmm = wgmm.GMM(K,D)

thresh = 1e-3 # convergence threshold
n_iter = 20 # maximum number of EM iterations
init_params = 'wmc' # initialize weights, means, and covariances

# train GMM
gmm.fit(X, thresh, n_iter, init_params=init_params)

# retrieve parameters from trained GMM
weights = gmm.get_weights()
means = gmm.get_means()
covars = gmm.get_covars()

# compute posteriors of data
posteriors = gmm.compute_posteriors(X)

For testing it on randomly generated data, you can run python gmmtest.py from the examples folder. On setting appropriate flags, a data file and a plot (only for 1D/3D case) will also be generated.

Documentation

Documentation for GGMM by Eric Battenberg available here

ar-unsupervised-learning's People

Contributors

ebattenberg avatar sahibdhanjal avatar chocobo1 avatar tspthomas avatar

Stargazers

Tomasz Komoszeski avatar

Watchers

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