Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: object of type 'SingleCutSampler' has no len() #67

Closed
cdxie opened this issue Oct 5, 2021 · 1 comment
Closed

TypeError: object of type 'SingleCutSampler' has no len() #67

cdxie opened this issue Oct 5, 2021 · 1 comment

Comments

@cdxie
Copy link
Contributor

cdxie commented Oct 5, 2021

hi,I run the decode steps of tdnn-lstm-ctc, I meet the following error:
-> def decode_dataset(
(Pdb) n

icefall/egs/librispeech/ASR/tdnn_lstm_ctc/decode.py(300)decode_dataset()
-> results = []
(Pdb)
icefall/egs/librispeech/ASR/tdnn_lstm_ctc/decode.py(302)decode_dataset()
-> num_cuts = 0
(Pdb)
icefall/egs/librispeech/ASR/tdnn_lstm_ctc/decode.py(304)decode_dataset()
-> try:
(Pdb)
icefall/egs/librispeech/ASR/tdnn_lstm_ctc/decode.py(305)decode_dataset()
-> num_batches = len(dl)
(Pdb)
TypeError: object of type 'SingleCutSampler' has no len()

Is this a problem with the version I used?

k2 version: 1.8

@csukuangfj
Copy link
Collaborator

Please update your icefall

@cdxie cdxie closed this as completed Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants