Closed Doken-Tokuyama closed 4 years ago
Hmm...It works fine now on my end. Can you wait a bit and try again, please? I had to update the repo too so maybe it is still loading.
Also, as I suggested, the factory reset your copy and try it again because it should work.
Specifically, the problem is the generate.py file due to wrong imports. I am attaching the latest working version so that you can replace it manually if it still does not work for you.
I just tested it and it works fine so most likely as I said its the repo cache issues. Just gotta wait basically :)
Let me know please, in a few hours how it goes and if it still does not work.
generate.zip Thank you.
Hi Alex,
Not it works perfectly, Thanks very much.
You are welcome :)
Hi Alex,
I checked and the problem it's not fixed. Can you solve it? Thanks.
I can see 2 problems:
1.- Prepare directory sctructure and MIDI processor
@title Prepare directory sctructure and MIDI processor
!mv midi-neural-processor midi_processor %cd /content/MusicTransformer-Pytorch/
mv: cannot stat 'midi-neural-processor': No such file or directory /content/MusicTransformer-Pytorch
2.- Generate, Plot, Graph, Save, Download, and Render the resulting output Output:
========================= midi_root: ./dataset/e_piano/ output_dir: output primer_file: /content/MusicTransformer-Pytorch/dataset/maestro-v2.0.0/2018/MIDI-Unprocessed_Chamber1_MID--AUDIO_07_R3_2018_wav--2.midi force_cpu: False
target_seq_length: 2048 num_prime: 512 model_weights: /content/MusicTransformer-Pytorch/rpr/results/best_acc_weights.pickle beam: 0
rpr: True max_sequence: 2048 n_layers: 6 num_heads: 8 d_model: 512
dim_feedforward: 1024
Traceback (most recent call last): File "generate.py", line 93, in
main()
File "generate.py", line 53, in main
raw_mid = encode_midi(f)
NameError: name 'encode_midi' is not defined
Successfully exported the output to output folder. To primer.mid and rand.mid
FileNotFoundError Traceback (most recent call last)