lhotse-speech / lhotse

Tools for handling speech data in machine learning projects.
https://lhotse.readthedocs.io/en/latest/
Apache License 2.0
904 stars 204 forks source link

Fix feature_dim of Spectrogram extractors. #1294

Closed csukuangfj closed 4 months ago

csukuangfj commented 4 months ago

There is no num_ceps in SpectrogramConfig.


This PR fixes the following error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/fangjun/open-source/lhotse/lhotse/features/kaldi/extractors.py", line 312, in feature_dim
    return self.config.num_ceps
AttributeError: 'SpectrogramConfig' object has no attribute 'num_ceps'