Skip to content

AttributeError: 'dict' object has no attribute 'start_shuffle' #1672

@yash-s20

Description

@yash-s20

this is the complete traceback -

Traceback (most recent call last): File ".../espnet/bin/asr_train.py", line 370, in <module> main(sys.argv[1:]) File ".../espnet/bin/asr_train.py", line 357, in main train(args) File ".../espnet/asr/pytorch_backend/asr.py", line 630, in train trainer.run() File ".../espnet/tools/venv/lib/python3.7/site-packages/chainer/training/trainer.py", line 349, in run six.reraise(*exc_info) File ".../espnet/tools/venv/lib/python3.7/site-packages/six.py", line 703, in reraise raise value File ".../espnet/tools/venv/lib/python3.7/site-packages/chainer/training/trainer.py", line 319, in run entry.extension(self) File ".../espnet/espnet/utils/training/iterators.py", line 28, in __call__ iterator.start_shuffle() AttributeError: 'dict' object has no attribute 'start_shuffle'
this is my train config -

# network architecture
# encoder related
etype: blstmp     # encoder architecture type
elayers: 4
eunits: 512
eprojs: 512
subsample: "1_2_2_1_1" # skip every n frame from input to nth layers
dropout-rate: 0.3
# decoder related
dlayers: 1
dunits: 512
dropout-rate-decoder: 0.1
# attention related
atype: location
adim: 512
aconv-chans: 10
aconv-filts: 100

# hybrid CTC/attention
mtlalpha: 0.7

# minibatch related
batch-size: 4
maxlen-in: 800  # if input length  > maxlen_in, batchsize is automatically reduced
maxlen-out: 150 # if output length > maxlen_out, batchsize is automatically reduced

# optimization related
opt: adadelta
epochs: 20
patience: 10
sortagrad: 1
# scheduled sampling option
sampling-probability: 0.0

report-cer: true
report-wer: true

Here's what I see in espnet/asr/pytorch_backend/asr_mix.py -
a list containing just train_iter is passed to ShufflingEnabler, which is a dictionary, and in the call method a start_shuffle attribute is called on the this, which is causing the error. Why is this so?
Also as you can see sortagrad is set to 1, and this error sprouts at the beginning of the second epoch.
Edit: file paths

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugbug should be fixed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions