This PR adds code for running mgeval as a standalone module, including:
A __main__.py file
An update to the documentation, indicating how to use the script
A bugfix for bar_used_pitch calculation
Context
I'm developing a system to evaluate the output of different music generationg RNNs, and I'm using mgeval to evaluate these models. The system uses python 3 and therefore it's incompatible with mgeval as a library. The workaround I found is to run mgeval as a standalone module, producing the metrics and saving them to a pickle.
I think this could be an useful feature for other people as well, and I'm willing to make any required adjustments
Contribution
This PR adds code for running
mgeval
as a standalone module, including:__main__.py
filebar_used_pitch
calculationContext
I'm developing a system to evaluate the output of different music generationg RNNs, and I'm using
mgeval
to evaluate these models. The system uses python 3 and therefore it's incompatible withmgeval
as a library. The workaround I found is to runmgeval
as a standalone module, producing the metrics and saving them to a pickle.I think this could be an useful feature for other people as well, and I'm willing to make any required adjustments