Skip to content

Conversation

@osadj
Copy link
Contributor

@osadj osadj commented May 26, 2017

No description provided.

@danpovey danpovey merged commit c9d7ccf into kaldi-asr:kaldi_52 May 26, 2017
@danpovey
Copy link
Contributor

This did not work, it crashed the scripts.

LOG (nnet3-init[5.1]:main():nnet3-init.cc:80) Initialized raw neural net and wrote it to exp/cnn_aug_1b_cifar100/configs//ref.raw
nnet3-info exp/cnn_aug_1b_cifar100/configs//ref.raw
Traceback (most recent call last):
  File "steps/nnet3/xconfig_to_configs.py", line 306, in <module>
    main()
  File "steps/nnet3/xconfig_to_configs.py", line 301, in main
    check_model_contexts(args.config_dir, args.nnet_edits)
  File "steps/nnet3/xconfig_to_configs.py", line 265, in check_model_contexts
    .format(model))
  File "steps/libs/common.py", line 117, in get_command_stdout
    return stdout if type(stdout) is str else stdout.decode()
UnboundLocalError: local variable 'str' referenced before assignment

I changed it to:

return stdout if type(stdout) is type('str') else stdout.decode()

which I now realize is not very clear because any string would have been OK, not just 'str'.

@osadj
Copy link
Contributor Author

osadj commented May 30, 2017 via email

@danpovey
Copy link
Contributor

danpovey commented May 30, 2017 via email

@jtrmal
Copy link
Contributor

jtrmal commented May 30, 2017 via email

@osadj
Copy link
Contributor Author

osadj commented May 30, 2017 via email

@osadj
Copy link
Contributor Author

osadj commented May 30, 2017 via email

@jtrmal
Copy link
Contributor

jtrmal commented May 30, 2017 via email

@danpovey
Copy link
Contributor

danpovey commented May 30, 2017 via email

@osadj
Copy link
Contributor Author

osadj commented May 30, 2017 via email

@danpovey
Copy link
Contributor

danpovey commented May 30, 2017 via email

danpovey pushed a commit that referenced this pull request May 30, 2017
kkm000 pushed a commit to kkm000/kaldi that referenced this pull request Jun 20, 2017
Skaiste pushed a commit to Skaiste/idlak that referenced this pull request Sep 26, 2018
Skaiste pushed a commit to Skaiste/idlak that referenced this pull request Sep 26, 2018
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

Successfully merging this pull request may close these issues.

3 participants