You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to add a conversion mechanism for the Opts classes to/from dict? It would make it much easier for me to integrate kaldifeat in Lhotse. I'm using dataclasses for configuration of all feature extractors, like this:
# Read a dictconfig= {"frame_shift": 0.012, "use_energy": True}
extractor=kaldifeat.Fbank(kaldifeat.FbankOptions.from_dict(config))
# Store to a dictconfig2=extractor.opts.to_dict()
# config2 = {... a list of all settings ...}
The text was updated successfully, but these errors were encountered:
Would it be possible to add a conversion mechanism for the
Opts
classes to/from dict? It would make it much easier for me to integrate kaldifeat in Lhotse. I'm using dataclasses for configuration of all feature extractors, like this:https://github.com/lhotse-speech/lhotse/blob/f5bd2063291b7d789d4b8a2a50396d2ffa76eb2c/lhotse/features/fbank.py#L9-L31
Example API could look like this:
The text was updated successfully, but these errors were encountered: