fastaudio / fastai_audio

[DEPRECATED] 🔊️ Audio with fastaiv1
MIT License
160 stars 49 forks source link

changing segment_items to improve performance #40

Closed kevinbird15 closed 5 years ago

kevinbird15 commented 5 years ago

I believe this will speed up reruns when segmenting items. Basically instead of loading every file, I just look at the sample rate in the config and then move the loading to inside the if that checks if the file is already there.

mogwai commented 5 years ago

Good find. I think that originally we were using the the loaded sr from the file to calculate the cache file uri but now that is configured in the config._sr we don't need to load it.