Code Monkey home page Code Monkey logo

Comments (7)

danabo avatar danabo commented on July 25, 2024

What is in createSequence.sh ?

from magenta.

oatmeal3000 avatar oatmeal3000 commented on July 25, 2024

$ cat createSequence.sh
MIDI_DIRECTORY=/home/oatmeal/HiMusic/MIDI/Dance
SEQUENCES_TFRECORD=/home/oatmeal/HiMusic/Output/Dance_sequences.tfrecord

bazel run //magenta/scripts:convert_midi_dir_to_note_sequences --
--midi_dir=$MIDI_DIRECTORY
--output_file=$SEQUENCES_TFRECORD
--recursive

from magenta.

danabo avatar danabo commented on July 25, 2024

Can you run with the --alsologtostderr flag and share the output?

So it would be
bazel run //magenta/scripts:convert_midi_dir_to_note_sequences --
--midi_dir=$MIDI_DIRECTORY
--output_file=$SEQUENCES_TFRECORD
--recursive
--alsologtostderr

from magenta.

oatmeal3000 avatar oatmeal3000 commented on July 25, 2024

Outputs are the same after adding the flag.

WARNING: /home/oatmeal/.cache/bazel/_bazel_oatmeal/c3300a0566708e561674ab71c996c139/external/protobuf/WORKSPACE:1: Workspace name in /home/oatmeal/.cache/bazel/_bazel_oatmeal/c3300a0566708e561674ab71c996c139/external/protobuf/WORKSPACE (@main) does not match the name given in the repository's definition (@protobuf); this will cause a build error in future versions.
INFO: Found 1 target...
Target //magenta/scripts:convert_midi_dir_to_note_sequences up-to-date:
bazel-bin/magenta/scripts/convert_midi_dir_to_note_sequences
INFO: Elapsed time: 0.264s, Critical Path: 0.00s

INFO: Running command line: bazel-bin/magenta/scripts/convert_midi_dir_to_note_sequences '--midi_dir=/home/oatmeal/HiMusic/MIDI/Dance' '--output_file=/home/oatmeal/HiMusic/Output/Dance_sequences.tfrecord' --recursive --alsologtostderr
ERROR: Non-zero return code '245' from command: Process exited with status 245.

from magenta.

danabo avatar danabo commented on July 25, 2024

Hmm I am still not sure what is producing the error code.

Can you do two things?
Run the binary without bazel (just run the command that bazel prints in the INFO statement). Just to be sure this is not related to bazel.

bazel-bin/magenta/scripts/convert_midi_dir_to_note_sequences '--midi_dir=/home/oatmeal/HiMusic/MIDI/Dance' '--output_file=/home/oatmeal/HiMusic/Output/Dance_sequences.tfrecord' --recursive --alsologtostderr

Second thing is to see if importing tensorflow works. From doing a bit of googling this sounds like an issue with your tensorflow install. You can just delete everything in convert_midi_dir_to_note_sequences.py and replace it with one line: "import tensorflow as tf"
Build and run the binary again.

from magenta.

oatmeal3000 avatar oatmeal3000 commented on July 25, 2024

It turned out that it is due to the corruption of tensorflow installation. Previously it had been successfully installed, but somehow it cannot work any more, then I reinstalled tensorflow and the problem just disappear.
Thanks very much!!

from magenta.

danabo avatar danabo commented on July 25, 2024

Glad you figured it out.

from magenta.

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.