Open carthach opened 8 years ago
Can you still reproduce that?
Good question. I'll try again this week and report back.
There may be some overhead due to the very large buffers possibly used in the computation chain (https://github.com/MTG/essentia/blob/master/src/essentia/streaming/phantombuffer.h#L69). We'll need to verify that, and if this is an issue, find better buffer sizes, or even make those configurable.
So I do a lot of batch processing within C++ which I mostly do in standard mode as outlined below the comments (normally I just pass vectors of audio retrieved from elsewhere).
I make declare some variables, algorithms and set the inputs/outputs of the algorithms to those variables, iterate through the files declaring a new audio algorithm for each file, resetting and recomputing.
For this kind of work it should make more sense to use a network right? Just set up the connections create a network then reassign the audio file, reset the network and run for each file in the list? Right?
The only problem is it's twice as slow. Is this generally the case for streaming versus standard? On ~500 44100 WAV files of ~10s in length it's 17s versus 33 seconds. Is my back procedure for the network correct? (code below).