-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to run render_piece #4
Comments
Hi @eoinroe! Thanks for pointing this out. There were some changes in the code sometime last year, and they were not properly documented in the README. The code needed some updates to keep up with the latest changes in Partitura (some of the code for computing features in the basismixer repository was moved to partitura). A few months ago, I made some updates (which are not fully finished) to have a more general way of training and evaluating the model. I would suggest that you use the To render a piece you need to do the following: # make sure that the basismixer environment is the latest version, which should use Partitura>=1.4.1
conda activate basismixer
cd path/to/basismixer
python ./bin/BasisMixerRender [OPTIONS] score_file midi_file.mid Unfortunately, I don't have time right now to fix all issues and merge everything into the main branch (probably not until after the summer or so), but hopefully you can use the Hope this helps! |
Hi @neosatrapahereje, thanks for this! I have followed your instructions and am not using the (basismixer) eoinroe@Eoins-MacBook-Pro basismixer % python ./bin/BasisMixerRender score_file /Users/eoinroe/Desktop/soundtrack_2_my_life/musicxml_cleaned.musicxml It appears that it is looking for the config file in the anaconda environment for some reason... I am unsure why this has happened since I followed your instructions carefully. Do you have any idea why? |
I deleted the conda environment because I had created it with the .yml file from the main branch which is slightly different. Then I set up the project from scratch. For some reason when I run (basismixer) eoinroe@Eoins-MacBook-Pro basismixer % /Users/eoinroe/PycharmProjects/basismixer/bin/BasisMixerRender -h I was able to successfully generate a performance by editing BasisMixerRender inside of PyCharm and hard coding the paths to the musical file I am using and the desired output for the midi file. But worth noting it does not seem to work out of the box just following the instructions you have given! |
That sounds like the basismixer package itself is not installed in the new environment. Can you check whether this is the case? You can try the following snippet in a terminal conda activate basismixer
python -c "import basismixer; print('basismixer is installed')" If the package is installed, you will simply see cd path/to/basismixer
pip install . After deleting the old environment and creating the new one, you need to install the package again inside the basismixer environment (since this is not done directly by conda). |
When running that command I get the following:
So I guess it is installed... These are the full list of commands I use to setup the project: git clone -b update_training https://github.com/CPJKU/basismixer.git On macOS you need to change the permissions to run the shell script so I do: chmod +x ./bin/BasisMixerRender And then to test: ./bin/BasisMixerRender -h Still getting the following, however: Traceback (most recent call last): |
I am unable to generate an expressive performance using the instructions provided. I have tried setting up the project using the instructions for both pip and conda but it makes no difference.
It isn't possible to run the following executable since it does not exists:
./bin/render_piece
The text was updated successfully, but these errors were encountered: