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

Generate melody with basic_rnn #894

Closed
EvilMudkip opened this issue Sep 25, 2017 · 14 comments
Closed

Generate melody with basic_rnn #894

EvilMudkip opened this issue Sep 25, 2017 · 14 comments

Comments

@EvilMudkip
Copy link

Hi,

I'm trying to generate a basic melody using the code shown in the tutorial, and I've got 2 questions. Note I'm a beginner, hence my questions may be really simple.

  1. When I type in Python:
    BUNDLE_PATH=<E:\Storage\Documents\FEI_AI\magenta\BUNDLES>
    It returns Syntax Error,pointing at '<'

So I used:
BUNDLE_PATH='E:\Storage\Documents\FEI_AI\magenta\BUNDLES'
It proceeds without error. But is it correct? Same goes with the next line involving CONFIG.

  1. After typing:
    melody_rnn_generate \
    I typed:
    --config=${CONFIG}
    It returns Invalid Syntax, and points at '$'.

Need advice, thank you!

@Calvin-Shen
Copy link

you should type --config='basic_rnn'

@EvilMudkip
Copy link
Author

@mbs6176966 It returns syntax error.
capture

@EvilMudkip
Copy link
Author

@mbs6176966
I tried typing the whole thing out, but I still get an error...
capture

@Calvin-Shen
Copy link

Calvin-Shen commented Sep 25, 2017

you should type all command in one line,don't copy and paste,try this way!!! not using "\"

@EvilMudkip
Copy link
Author

Hi, I tried typing them all in one line, but the same error still shows up...

capture

@Calvin-Shen
Copy link

have you been in magenta environment? run the command like:"source activate magenta" in your terminal. you should not run the python.

@Calvin-Shen
Copy link

2017-09-25 4 14 25

@EvilMudkip
Copy link
Author

@mbs6176966 Thanks for the guidance, but a new error comes up:

'melody_rnn_generate' is not recognized as an internal or external command, operable program or batch file.

capture

@Calvin-Shen
Copy link

Calvin-Shen commented Sep 25, 2017

ok~,have nerver encountered this problem! but run the python file may help. just like "python /Users/calvin/Desktop/magenta-master/magenta/models/melody_rnn/melody_rnn_generate.py -config='basic_rnn' --bundle_file=/Users/calvin/Desktop/mag/basic_rnn.mag --output_dir=/Users/calvin/Desktop/ --num_outputs=1 --num_steps=128 --primer_melody="[60]" "

@Calvin-Shen
Copy link

run the python file melody_rnn_generate.py in melody_rnn attached the args "--config ....."

@EvilMudkip
Copy link
Author

@mbs6176966 Hi, I've tried your suggestion, but now an error comes up:

untitled

And the error code is:

Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll.

@cghawthorne
Copy link
Contributor

That appears to be an issue with the MKL library on Windows. I'm not familiar with exactly what the issue is, but you could try uninstalling MKL with the instructions here: https://docs.anaconda.com/mkl-optimizations/

@EvilMudkip
Copy link
Author

@cghawthorne Hi, I'm not able to remove mkl on Windows, since nomkl is not available on Windows. If I remove mkl completely, the error will ask for numpy to be installed. if I type conda install numpy mkl will be installed along with numpy.

@cghawthorne
Copy link
Contributor

Hmm, I'm not really sure. You could try using a non-Ananconda Python build or maybe ask on the Anaconda issue tracker.

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

3 participants