Skip to content

Latest commit

 

History

History

MaxCaptions

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

MaxCaptions

Input captions in Max/MSP and send them to RunwayML to generate synthesized images using AttnGAN models.

Requirements

This example uses the Node for Max API and the Socket.io library to enable real-time communications between Max and RunwayML. Running the example requires:

  • Basic knowledge of command line and git commands
  • Max 8
  • Node.js
  • NPM

Node.js and NPM are used extensively for Javascript applications, therefore, there are plenty of installation guides available online. For example: Get NPM.

Running the Example

  • Make sure you have installed the required software.
  • Clone or download the repository and place ALL the example files at the desired folder location.
  • Navigate to the example folder, run the following command, and wait for NPM to install the required packages:
$ npm install
  • Open the RunwayML app, create a workspace, and add the AttnGAN model. Click on the Run Remotely button and wait for the model to initialize.
  • Check the RunwayML Socket.io port under Network > Socket.io (Default is port 3000).

MaxCaptions RunwayML

  • Open the MaxCaptions.maxpat file.
  • Click on the Start button to initialize the script.
  • Make sure the Port number box matches the RunwayML Socket.io port. Click on the Connect to Port button.
  • Type a caption in the text box and click on the Send button.

MaxCaptions Preview

  • Keep an eye on the Max console for helpful messages and errors.

MaxCaptions Console

  • Check RunwayML and wait for the synthesized image to be displayed.

MaxCaptions RunwayML

Examining the Example

This example is displayed in Presentation Mode by default. To examine how this example is built, use the icons at the bottom of the Max window to toggle Edit Mode and unlock the patch.

MaxCaptions Edit