def _load_from_cache(self):
try:
return numpy.load(str(self.spectrogram_cache_file))
except ValueError:
log("Recalculating cached file {} because loading failed.".format(self.spectrogram_cache_file))
return self._calculate_and_save_spectrogram()
评论列表
文章目录