Skip to content
This repository has been archived by the owner on Oct 13, 2022. It is now read-only.

compute_and_store_features() got an unexpected keyword argument 'augment_fn' #22

Closed
lvchigo opened this issue Nov 18, 2020 · 10 comments
Closed

Comments

@lvchigo
Copy link

lvchigo commented Nov 18, 2020

  • hi; when i use mini_librispeech dataset and change dataset path, the error coming...

pip list:
python 3.7
torch 1.6.0+cu101
torchaudio 0.6.0
torchvision 0.7.0+cu101
lhotse 0.1.1
k2 0.1

1

@qindazhu
Copy link
Collaborator

what are the dev-clean-3 and train-clean-5 here? can you try to run with the original script to see if you get the same error? I mean, just clone the repo and don't change any code in it.

@danpovey
Copy link
Contributor

danpovey commented Nov 18, 2020 via email

@qindazhu
Copy link
Collaborator

Not sure, will check

@qindazhu
Copy link
Collaborator

OK, it should be augmenter with pip package lhotse 0.1.1,

CutSet.compute_and_store_features.__code__.co_varnames
('self', 'extractor', 'storage', 'augmenter', 'executor', 'mix_eagerly', 'futures', 'cut', 'cut_set')

but in master branch of lhotse, it now is augment_fn

>>> lhotse.CutSet.compute_and_store_features.__code__.co_varnames
('self', 'extractor', 'storage', 'augment_fn', 'executor', 'mix_eagerly', 'futures', 'cut', 'cut_set')

https://github.com/lhotse-speech/lhotse/blob/2167c774383b815dc0929e9cc6bb7d26eec0fccb/lhotse/cut.py#L325

@pzelasko can you update pip package of lhotse?

@lvchigo for now, you can just do

git clone https://github.com/lhotse-speech/lhotse
cd lhotse
pip install -e '.[dev]'

to install lhotse from local src (don't forget uninstall your previous version)

@pzelasko
Copy link
Collaborator

pzelasko commented Nov 18, 2020 via email

@jtrmal
Copy link

jtrmal commented Nov 18, 2020 via email

@lvchigo
Copy link
Author

lvchigo commented Nov 19, 2020

  • thank you guys... it's worked...

  • uninstall lhotse 0.1.1

  • install lhotse 0.2.1

  • final pip list:
    python 3.7
    torch 1.6.0+cu101
    torchaudio 0.6.0
    torchvision 0.7.0+cu101
    lhotse 0.2.1
    k2 0.1

@lvchigo lvchigo closed this as completed Nov 19, 2020
@danpovey
Copy link
Contributor

RE automatic builds that upload to pip, I think @csukuangfj might be able to comment.
I believe there we have some kind of automated build but currently only uploads artifacts to github, not pip which would require password.

@csukuangfj
Copy link
Collaborator

csukuangfj commented Nov 19, 2020 via email

@pzelasko
Copy link
Collaborator

pzelasko commented Nov 19, 2020 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants