Closed gnestor closed 7 years ago
Hey very cool project thanks, experiencing same issue when running. Thanks
Also experiencing this issue
Same here
+1
I also encountered this problem. A workaround:
In predict.py
starting at line 52:
- generate_response = basic_generator.generate(generate_request)
+ generate_response = basic_generator.generate(generate_request.input_sequence, generate_request.generator_options)
output = tempfile.NamedTemporaryFile()
midi_io.sequence_proto_to_midi_file(
- generate_response.generated_sequence, output.name)
+ generate_response, output.name)
This worked for me and now I'm trading fourths with a neural net. 👍
As I began playing around further, I hit similar bugs.
I believe the problems stem from the commit: https://github.com/googlecreativelab/aiexperiments-ai-duet/commit/22b52a3f18e27af92ae64da46a8ad8bad4a08c73 to move the local magenta
module beneath third_party
. There is logic in predict.py
and the local magenta
that expects the to access those local files.
I was able to fix this issue and another issue I encountered by moving the magenta
directory to be level with server.py
.
@almostimplemented Great Thanks the moving of magenta up a level got it working, 👍
https://github.com/googlecreativelab/aiexperiments-ai-duet/pull/1 resolves this for me!
@almostimplemented thanks, this works.
Sorry did catch that issue that i created by moving Magenta into the third_party folder. We were just trying to make sure that Magenta was properly credited as a third_party project and not part of this project, but it introduced that issue.
I appended the third_party folder to the system path which fixes the issue on my end. Please reopen if that doesn't solve it.
LGTM; thanks @tambien ! And bigger thanks in general for the code!
I followed the install instructions except that that pip failed on magenta:
So I followed the magenta install instructions and then activated the conda environment
source activate magenta
and thenpip install -r requirements.txt
andpython server.py
.