-
Notifications
You must be signed in to change notification settings - Fork 451
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
ModuleNotFoundError: No module named 'midi2dict' #177
Comments
I am facing the same problem. Have you solve it ? @MrAliAmani |
Are there anyone to give some advices? @MrAliAmani @lxueaa @cclauss @themanojkumar |
midi2dict has been updated to the roc directory under auxiliary folder, aiming to convert MIDI output into DiffSinger-formatted input. We sincerely apologize for any issues caused by oversight. |
@UranusYu Thanks for your reply. By the way, how to replace the open_ai_llm using the local model with open_ai api? |
This project is based on the semantic-kernel and currently supports models from OpenAI, Azure, and Hugging Face. MusicAgent has been specifically designed for OpenAI and Azure APIs, with potential future support for Hugging Face. If you have a strong preference for loading local models, you may try uploading the parameters to Hugging Face and utilize the semantic-kernel guidance to supplement the relevant code in MusicAgent. https://devblogs.microsoft.com/semantic-kernel/how-to-use-hugging-face-models-with-semantic-kernel/
|
@UranusYu Thanks! As my understanding, I only need to add the below codes to Are there other things need to be paid attention? Or which open-source model is recommended? Can MusicAgent using the local openai api, just like |
Thank you for your response. The midi2dict issue has been solved but I keep getting another error. The chekpoints exist in Diffsinger/checkpoints folder and I get an index error. Please help me solve it. /content/muzic/musicagent TensorFlow Addons (TFA) has ended development and introduction of new features. For more information see: tensorflow/addons#2807 warnings.warn( |
I think you should place the |
I get this error when running '!python agent.py --config config.yaml'
/content/muzic/musicagent
2023-12-04 10:03:54.786370: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-12-04 10:03:58.516882: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/lib64-nvidia
2023-12-04 10:03:58.517179: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/lib64-nvidia
2023-12-04 10:03:58.517201: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
/usr/local/lib/python3.8/site-packages/tensorflow_addons/utils/tfa_eol_msg.py:23: UserWarning:
TensorFlow Addons (TFA) has ended development and introduction of new features.
TFA has entered a minimal maintenance and release mode until a planned end of life in May 2024.
Please modify downstream libraries to take dependencies from other repositories in our TensorFlow community (e.g. Keras, Keras-CV, and Keras-NLP).
For more information see: tensorflow/addons#2807
warnings.warn(
Traceback (most recent call last):
File "agent.py", line 351, in
agent = MusicAgent(args.config, mode="cli")
File "agent.py", line 41, in init
self.pipes = init_plugins(self.config)
File "/content/muzic/musicagent/plugins.py", line 98, in init_plugins
pipes["muzic/roc"] = MuzicROC(config)
File "/content/muzic/musicagent/plugins.py", line 168, in init
self._init_toolkit(config)
File "/content/muzic/musicagent/plugins.py", line 172, in _init_toolkit
from main import main as roc_processer
File "/content/muzic/musicagent/models/muzic/roc/main.py", line 13, in
from midi2dict import midi_to_lyrics
ModuleNotFoundError: No module named 'midi2dict'
The text was updated successfully, but these errors were encountered: