Git Product home page Git Product logo

oracleofdelph-ai's Introduction

Oracle of Delph.AI

a dance-to-divine text generator

by Trisha Chhabra, August Luhrs, and Claire Yuan

made for CIID's Machine Learning for Interaction Design class, July 2017, taught by Andreas Refsgaard and Gene Kogan

Overview

Inspired by the Oracle of Delphi, the High Priestess who served as a conduit through which the God Apollo could speak, we've created a tool that allows a user to give their god or gods an offering in the form of a dance and receive a personalized message from the divine.

The basic premise is -- a kinect paired with Wekinator tracks the user's dance (mainly just hand height) and will send a single message to a processing sketch that will run torch-rnn on a terminal, seeded by a unique word obtained from the dance. The RNN will then spit out a religious sounding message.

Our RNN was trained on five major religious texts (The KJ Bible, The Quran, The Gita, The Gospel of Buddha, and The Book of Mormon) for around 500 epochs (so, not long enough).

note: We had to get the duct-tape out when building this, since I (August) was running it on a windows computer connected to a cloud computer on paper space -- there are much easier ways to do this on A) a computer powerful enough to run torch.rnn and B) a mac or linux based computer that can run OFX. Hopefully you can get the gist of the process here, and figure out how to adapt it to you (in a better way than I did...)

Requirements

Hardware:

  • a Kinect (could be substituted with a webcam OSC app if your O.S. supports OFX, check ml4a)

Software:

Installation and Operation

Download all software mentioned above -- I won't be going into how to use each of them, so check the individual pages for info.

Make sure you've taken the following files out of /TorchText and placed them in your torch-rnn directory:

all.h5
all.json
allcheck8_34000.t7

(all.txt is the original text file of the five works, if you're curious)

The Order of Operation:

A) Open Kinect Joints sketch, run it, and make sure kinect is tracking user's skeleton

B) Open Weki Input Helper (firsttrain.inputproj) and make sure "Send and Monitor" tab is open, check to see if OSC is coming in from Kinect

C) Open Wekinator (firsttrain.wekiproj) and make sure OSC is coming in from Input Helper. (Running this will be the last step)

D) Open outputdancewords (sorry about the name...) and run it

E) open terminal, navigate to torch-rnn

so the final step is kinda wonky, but here's how we did it:

once everything is in place, have the user dance for a few seconds, then quickly press run on wekinator and then click on the terminal. almost immediately you should see the command appearing, and after it runs, the txt will pop up with the message.

Final Notes

This was all built in about 24 hrs (including training of the RNN) by three people who learned these tools the couple of days before coming up with the project concept, so if you find any problems or have suggestions, please let us know!

And again, thanks to Andreas Refsgaard and Gene Kogan, who not only taught us how to use everything, but the processing scripts are basically just their orginals with a few minor adjustments to make them fit our project. Check out their work!

oracleofdelph-ai's People

Contributors

augustluhrs avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

johndpope

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.