GithubHelp home page GithubHelp logo

ValueError: When compiling the inner function of scan the following error has been encountered about biaxial-rnn-music-composition HOT 2 CLOSED

danieldjohnson avatar danieldjohnson commented on July 17, 2024
ValueError: When compiling the inner function of scan the following error has been encountered

from biaxial-rnn-music-composition.

Comments (2)

SeekPoint avatar SeekPoint commented on July 17, 2024

also test in main branch by copy the directory music

rzai@rzai00:/prj/biaxial-rnn-music-composition---main$ python main.py
Using gpu device 0: GeForce GTX 1080 (CNMeM is disabled, cuDNN 5005)
Loaded chpn-p14_format0
Loaded bk_xmas2_format0
Loaded grieg_waechter
Loaded scn15_7_format0
Loaded grieg_kobold
Traceback (most recent call last):
File "main.py", line 42, in
pcs = multi_training.loadPieces("music")
File "/home/rzai/prj/biaxial-rnn-music-composition---main/multi_training.py", line 22, in loadPieces
outMatrix = midiToNoteStateMatrix(os.path.join(dirpath, fname))
File "/home/rzai/prj/biaxial-rnn-music-composition---main/midi_to_statematrix.py", line 8, in midiToNoteStateMatrix
pattern = midi.read_midifile(midifile)
File "/usr/local/lib/python2.7/dist-packages/midi/fileio.py", line 158, in read_midifile
return reader.read(midifile)
File "/usr/local/lib/python2.7/dist-packages/midi/fileio.py", line 9, in read
pattern = self.parse_file_header(midifile)
File "/usr/local/lib/python2.7/dist-packages/midi/fileio.py", line 18, in parse_file_header
raise TypeError, "Bad header in MIDI file."
TypeError: Bad header in MIDI file.
rzai@rzai00:
/prj/biaxial-rnn-music-composition---main$ git remote -v
origin https://github.com/hexahedria/biaxial-rnn-music-composition.git (fetch)
origin https://github.com/hexahedria/biaxial-rnn-music-composition.git (push)
rzai@rzai00:/prj/biaxial-rnn-music-composition---main$ vim main.py
rzai@rzai00:
/prj/biaxial-rnn-music-composition---main$

from biaxial-rnn-music-composition.

danieldjohnson avatar danieldjohnson commented on July 17, 2024

Closing as a duplicate of #16

(The second error you get seems to be unrelated, and indicates that one of your MIDI files is bad. Try removing that file from your dataset.)

from biaxial-rnn-music-composition.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.