Giter Club home page Giter Club logo

midi2params's People

Contributors

rodrigo-castellon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

midi2params's Issues

[Bug] Randint error in `trim_and_preprocess()` during model training

Hello!
I've been trying to train a model using my own data, but I ran into an error when running the trainscript file:

Epoch #1
yee_bach_passion#2
[Instrument(program=0, is_drum=False, name="")]
yee_bach_passion#41
[Instrument(program=0, is_drum=False, name="")]
...
yee_bach_passion#1
[Instrument(program=0, is_drum=False, name="")]
yee_bach_passion#21
[Instrument(program=0, is_drum=False, name="")]
Traceback (most recent call last):
  File "midi2params/trainscript.py", line 409, in <module>
    main()
  File "midi2params/trainscript.py", line 155, in main
    batch = trim_and_preprocess(batch, config)
  File "/home/poohcom1/midi2params_env/midi2params/midi2params/train_utils.py", line 93, in trim_and_preprocess
    subclip_start = np.random.randint(50, final_idx - 50 - len_subclip)
  File "mtrand.pyx", line 748, in numpy.random.mtrand.RandomState.randint
  File "_bounded_integers.pyx", line 1247, in numpy.random._bounded_integers._rand_int64
ValueError: low >= high

This always happens during the first epoch after the program printed a few file.

I'm still not familiar with the code base so I'm not sure how the upper limit is being calculated, and whether the issue has something to do with my dataset, so any pointers would be appreciated!

Cheers

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.