Code Monkey home page Code Monkey logo

openface4arm's Introduction

Prerequisite (have openface and torch installed)

Go to openface workspace

$ cd ~/openface/models/openface

Downloading nn4.v1.t7 model

$ wget http://openface-models.storage.cmusatyalab.org/nn4.v1.ascii.t7.xz
$ unxz nn4.v1.ascii.t7.xz

Downloading nn4.small2.v1.t7 model

$ wget http://openface-models.storage.cmusatyalab.org/nn4.small2.v1.ascii.t7.xz
$ unxz nn4.small2.v1.ascii.t7.xz

Convert model from ascii to binary

$ th
th> require 'nn'
th> require 'dpnn'
th> net = torch.load('nn4.v1.ascii.t7', 'ascii')
torch.save('nn4.v1.t7', net)
th> net = torch.load('nn4.small2.v1.ascii.t7', 'ascii')
torch.save('nn4.small2.v1.t7', net)

Solve out of memory problem when installing torch on TK1

modify torch/extra/cutorch/rocks/cutorch-scm-1.rockspec by replacing "-j$(getconf _NPROCESSORS_ONLN)" with "-j1".

Running openface_ros node

$ rosrun openface4ARM openface_ros.py

When interfacing odroid with android

$ rosrun openface4ARM openface_android.py

Start tranning (replace banana with member name. trainingProgress topic = 100 when finish training)

$ rostopic pub /cmdTrainning std_msgs/String "data: 'banana'"

Check capturing progress

$ rostopic echo /capturingProgress

Start recognition

$ rostopic pub -1 /cmdRecognition std_msgs/Bool "data: true"

Check Result

$ rostopic echo /recognitionResults

Reference

Install Openface

Solving Architecture issues

Torch file format

Install Torch on TK1

tk1-torch-install

openface4arm's People

Contributors

piliwilliam0306 avatar chinghengwang avatar

Watchers

James Cloos avatar Shoubin Li 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.