urinieto / msaf

Music Structure Analysis Framework
MIT License
478 stars 79 forks source link

Log progress in collection mode #138

Closed carlthome closed 10 months ago

carlthome commented 10 months ago

Just a proposal (feel free to close!).

When running MSAF on SALAMI, it takes a while to process every feature, but there's no visible output during msaf.run.process in collection mode, so I thought my computer had frozen/crashed.

Would be nice to see some progress reporting with TQDM or similar. Turns out joblib already has support for printing some progress in the style of the following:

[Parallel(n_jobs=4)]: Using backend LokyBackend with 4 concurrent workers.
[Parallel(n_jobs=4)]: Done  33 tasks      | elapsed:    5.3s
[Parallel(n_jobs=4)]: Done 154 tasks      | elapsed:  1.1min

This PR enables that.

urinieto commented 10 months ago

Fantastic, thanks!