This repository contains a collection of plugins for loading pytorch models in Max/MSP, Unity and other engines/frameworks.
They can load different models, but they were developed to load the models used for this project.
git clone --recursive git@github.com:rodrigodzf/torchplugins.git
From the root directory, run:
sh ./bin/build.sh
The plugins will be available in the externals
directory. It is recommended to copy the plugins to the externals
directory of your Max installation e.g ~/Documents/Max 8/Packages/torchplugins/externals
.
An exemplary patcher is available in the extras
directory. The patcher loads a model and runs inference on a given image. The pre-trained models can be downloaded from here.
The path to the models must be specified in Max settings.
nn-tilde - A Max/MSP, PureData external for loading pytorch models.