castorini / howl

Wake word detection modeling toolkit for Firefox Voice, supporting open datasets like Speech Commands and Common Voice.
Mozilla Public License 2.0
199 stars 30 forks source link

AlignedAudioClipMetadata class not present #25

Closed arvindsg closed 4 years ago

arvindsg commented 4 years ago

DATASET_PATH=data/fire-negative python -m howl.run.attach_alignment --align-type stub Traceback (most recent call last): File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/usr/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/arvind/beatthat/beatthat/howl/howl/run/attach_alignment.py", line 9, in from howl.data.dataset import AudioClipDatasetLoader, AudioDatasetMetadataWriter, AlignedAudioClipMetadata ImportError: cannot import name 'AlignedAudioClipMetadata'

arvindsg commented 4 years ago

I believe changing line 9 in attach_alignment to this fixes the issue

from howl.data.dataset import AudioClipDatasetLoader, AudioDatasetMetadataWriter from howl.data.dataset.base import AudioClipMetadata as AlignedAudioClipMetadata

daemon commented 4 years ago

Thanks for catching this -- yeah, that should work.

daemon commented 4 years ago

Closed with #26