1.1 KiB
1.1 KiB
Models
This directory contains the various Magenta models.
Generators
All generators for NoteSequence-based models should expose their generator functionality by implementing the BaseSequenceGenerator abstract class defined in lib/sequence_generator.py. This allows all generators to communicate with a standard protocol (defined in protobuf/genator.proto) and will make it easier for various interfaces (e.g., MIDI controllers) to communicate with any model.
Note that the Melody models share a common implementation of the BaseSequenceGenerator interface in MelodyRnnSequenceGenerator, which they then invoke using the generate scripts in each model's directory (e.g., attention_rnn_generate.py).