You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2020/01/17 01:31:54 UTC

[GitHub] [incubator-mxnet] moneypi opened a new pull request #17354: fix error "TypeError: 'zip' object is not subscriptable" in deepspeec…

moneypi opened a new pull request #17354: fix error "TypeError: 'zip' object is not subscriptable" in deepspeec…
URL: https://github.com/apache/incubator-mxnet/pull/17354
 
 
   …h.cfg training
   
   ## Description ##
   When traing speech_recognition by command `python main.py --configfile deepspeech.cfg`, I will get an error:
   `Traceback (most recent call last):
     File "main.py", line 299, in <module>
       data_train, data_val, args = load_data(args)
     File "main.py", line 173, in load_data
       save_feature_as_csvfile=save_feature_as_csvfile)
     File "/home/luke/tmp/mxnet/example/speech_recognition/stt_io_bucketingiter.py", line 105, in __init__
       self.data[buck].append(self.trainDataList[i])
   TypeError: 'zip' object is not subscriptable`
   
   
   ## Checklist ##
   ### Essentials ###
   Please feel free to remove inapplicable items for your PR.
   - [ ] All changes have test coverage:
   - [ ] To the best of my knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change
   
   
   ## Comments ##
   Just like file https://github.com/apache/incubator-mxnet/blob/master/example/speech_recognition/stt_io_iter.py, use the same logic:
   `self.trainDataList = list(zip(durations, audio_paths, texts))`
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-mxnet] leezu commented on issue #17354: fix error "TypeError: 'zip' object is not subscriptable" in deepspeec…

Posted by GitBox <gi...@apache.org>.
leezu commented on issue #17354: fix error "TypeError: 'zip' object is not subscriptable" in deepspeec…
URL: https://github.com/apache/incubator-mxnet/pull/17354#issuecomment-575989083
 
 
   @ChaiBapchya yes, it's a "Py3 only bug".

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-mxnet] leezu merged pull request #17354: fix error "TypeError: 'zip' object is not subscriptable" in deepspeec…

Posted by GitBox <gi...@apache.org>.
leezu merged pull request #17354: fix error "TypeError: 'zip' object is not subscriptable" in deepspeec…
URL: https://github.com/apache/incubator-mxnet/pull/17354
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services