Git Product home page Git Product logo

granolar's Introduction

Granolar

Granolar is a machine learning project that reconstructs grains of sound, it is executable with Python3.

Installation

See the requirements folder for the compulsory libraries

pip3 install -r requirements.txt

To train the model

Run

python3 vae_main.py

To load the trained model and start the synth

Run one of the following scripts:

- recover_model.py

- recover_model_batch.py

You need to have pyo installed, and also wxpython to have the pyo gui. Just run:

pip3 install pyo
pip3 install wxpython

The file simple_OSC_control.pd is a Pure Data patch for sending simple OSC messages to control the synth. To control recover_model.py you need to send one element tuples of floats in the range (0,1). To control recover_model_batch.py you need to send tuples of 16 floats in the range of (0,1).

Attention: Depending on the operating system and how the scripts are run, pyo could not work at all or crash. Running pyo on Windows doesn't work most of the time, depending on the computer. When running from an IDE you are advised to turn off the pyo GUI, as it can crash when you close it.

Content

this archive contains:

- database: folder with the database that will be use for the training

- mnist_vae: folder with the VAE apply to the mnist database

- references: folder with the documents of reference

- saved_model: folder containing the trained model of VAE

- trials_scripts: folder containing all the failed scripts

- loader.py: loader of the database

- loss_train_test.py: compute the loss, train, test and save the model

- vae_main.py: main project script

- vae_model.py: architecture of the model

- comparison.py: plot inputs and outputs, concatenate the output and convert it in .wav

- recover_model.py , recover_model_batch.py: granular synthesis of the VAE decoder's output, controlled by OSC

- simple_OSC_control.pd: Pure Data OSC controller for the synth

granolar's People

Contributors

ninon-io avatar alicerixte avatar manosplitsis avatar fouvreaux avatar lydiaronava avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.