A collection of openFrameworks apps for working with machine learning
A collection of real-time interactive applications and associated scripts for working with machine learning.
All apps contained here require openFrameworks to run, as well as a number of addons, listed below.
The openFrameworks apps are provided as source code, and can be built and compiled by using the project generator that comes with openFrameworks.
Several of these applications are coupled with python scripts which do some analysis of media (feature extraction, t-SNE, etc), whose results are then imported into your ofApp via JSON or some other means for further processing. Some of them can be replicated entirely within openFrameworks, and wherever possible (for example, t-SNE) such applications are also provided. The advantage of the scripts is that they can be used in other environments as well, and are much easier to port or implement from the preeminent machine learning frameworks.
The apps folder contains all of the individual openFrameworks apps, and their descriptions and usage instructions.
The osc-modules folder contains a set of applications which send or receive OSC in order to facilitate communication with other applications, and are very easily used alongside Wekinator.
Some of the applications work on image/audio/text datasets. Example datasets are provided and can be downloaded with the provided scripts (see download_images.py
for image example). Additionally, some require pre-trained models which can also be downloaded. For the ones which require VGG weights, you can download that here.
All of the included applications (both in the apps and osc-modules folders) require some combination of the following addons. The readme for each app lists the addons required individually. The following is a complete list:
The addons also make use of ofxGui, ofxOsc, and ofxOpenCv, which are included in openFrameworks by default.
These addons are not currently used in ml4a-ofx, but are also relevant and may be wrapped into examples in the future:
These are some steps to get you up and running with ml4a-ofx:
openFrameworks
setup in it. This is the folder in which you would test your openFrameworks
setup as described above.ml4a-ofx
content. This folder does not have to be within the openFrameworks
folder.ml4a-ofx
app as a starting point. So simply duplicate any of the folders within ml4a-ofx/apps
and give the folder a custom name. Or work in the folder of the example project if you do not plan to re-use it anyways.readme.md
file of your project. It always contains the required addons you need to get your app running. Follow the links of each addon, check the installation guide and follow each one.
ml4a-ofx
folder and run sh setup.sh
. This will download the necessary data and place it in the data
folder.addons
subfolder of your openFrameworks
folder to work correctly.You can use the projectGenerator
app that is included in openFrameworks
.
openFrameworks
folder as described in the app. This has to be done on the first time only.create/update
tabimport
button, selecting your project’s folder. This should be located in your ml4a-ofx
folder. Your project name, project path and the addons list should update accordingly. If any of the addons is missing, the interface will notify you of that. Since you prepared your project in the above described steps, all should be good here. Otherwise, check the “Prepare your project” part again.projectGenerator
again since you don’t need it anymore for now.CMD + R
.If you run into any errors: The openFrameworks setup guides
might have some explanations or possible steps. Otherwise, it always helps to google the error (seriously!) and try to figure out what’s going on. In case you get completely stuck, you might find help here by opening an issue. Include any error message you find and try to explain the problem as good as possible. This will help resolve any issue a lot.
[Feel free to add documentation here]
[Feel free to add documentation here]