roywei commented on issue #15431: [MXNet 1.5.0.rc2] Issues with asnumpy() method
URL: 
https://github.com/apache/incubator-mxnet/issues/15431#issuecomment-510236197
 
 
   @Wallart your code is running fine on my machine. I'm testing on[ LJ-Speech 
Dataset](https://keithito.com/LJ-Speech-Dataset/)
   
   added a few lines in `main` to format the text files, and everything is 
plotted, and  `asnumpy()` works fine. Could you try without Docker?
   
   ```
   if __name__ == '__main__':
       logging.basicConfig()
       logging.getLogger().setLevel(logging.INFO)
   
       params = {
           'max_wav_value': 32768.0,  # for 16 bits files
           'sampling_rate': 22050,
           'filter_length': 1024,
           'hop_length': 256,
           'win_length': 1024,
           'n_mel_channels': 80,
           'mel_fmin': 0.0,
           'mel_fmax': 8000.0
       }
       with open('~/Downloads/LJSpeech-1.1/metadata.csv', encoding='utf-8') as 
f:
           for line in f:
               record = line.split('|')
               file_name = record[0] + '.txt'
               content = record[2]
               with open('~/Downloads/LJSpeech-1.1/wavs/' + file_name, 'w', 
encoding='utf-8') as text_output:
                   text_output.write(content)
   
       french = WavDataset('~/Downloads/LJSpeech-1.1/wavs', text_to_sequence, 
**params)
       assert type(french[0]) == tuple
   ```
   
   

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to