rodrigodzf / torchplugins

Max/MSP, PureData and Unity plugins to load Pytorch models

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Torchplugins

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.

Cloning

git clone --recursive git@github.com:rodrigodzf/torchplugins.git

Building

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.

Development

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.

Usage

Max/MSP

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.

Unity

Related repositories

nn-tilde - A Max/MSP, PureData external for loading pytorch models.

About

Max/MSP, PureData and Unity plugins to load Pytorch models

License:MIT License


Languages

Language:Max 76.2%Language:C++ 19.2%Language:CMake 3.5%Language:Shell 1.1%