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 -r
The plugins will be available in the torchplugins
directory. It is recommended to copy the folder torchplugins
to the Package directory of your Max installation e.g ~/Documents/Max 8/Packages/torchplugins
.
It is useful to link the folder torchplugins
to the packages directory of your Max installation e.g ~/Documents/Max 8/Packages
. This way, you can edit the source code and the changes will be reflected in Max.
An exemplary patcher is available in the extras
directory. The patcher loads a model and runs inference on a given image.
The path to the models must be specified in Max settings.
nn-tilde - A Max/MSP, PureData external for loading pytorch models.