Closed mongrelite closed 2 years ago
Hi, I've updated the colab and fixed the chord module bug. But looks like there are other problems not relating to omnizart but the official setup of colab session, I can't test other modules. The problem might not exist on your side, so if you could help run some tests, I will be very appreciative.
Hey again, after your update the environment setup works pretty well. However now there's a problem with the transcription part, specifically no matter what module I try I get the following error
OpError: /content/omnizart/omnizart/checkpoints/music/music_piano/variables/variables.data-00000-of-00001; No such file or directory
This could be due to the inconsistency between the path of downloaded checkpoints and imported module.
Since after the setup, the current path is in /content/omnizart
, so when execute omnizart
or importing anything from omnizart will refer to current path, not the installed one (which should be in /usr/local/lib/python3.7/dist-packages/omnizart
).
That's why the module can't find the checkpoints because the checkpoints were saved in a different path.
Try %cd
to other directory should fix the problem and make sure this comes before importing omnizart.
Hey again,
Your advice worked to fix that error message, but now I get this across all models:
UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above. [[node model_1/conv2d_1/Conv2D (defined at /usr/local/lib/python3.7/dist-packages/omnizart/music/prediction.py:183) ]] [Op:__inference_predict_function_135953]
Function call stack: predict_function
Thank you for your speedy responses by the way, I appreciate it
Yes, that is exactly what I mentioned about. This issue seems like the default environment setup of colab is broken, more specifically, the cuDNN and cuda setup. This also happened before. I've also confirmed that if you build a new simple convolution model and feed input to it, it will also fail. So this is not an issue relates to omnizart.
Hi, I had a similar issue with cuDNN and cuda setup error, and I resolved it by changing the runtime to TPU on colab
I think this issue should be fixed now, since the remaining runtime error is not related to this project.
Hey there,
I was able to get Colab to install omnizart with the deprecated-legacy command mentioned in an earlier issue thread. However, I'm unable to run the chords, vocals and most other models without getting the error below
2021-11-26 13:30:18 Extracting feature 2021-11-26 13:30:24 Loading model 2021-11-26 13:30:24 Using built-in model /usr/local/lib/python3.7/dist-packages/omnizart/checkpoints/chord/chord_v1 for transcription. WARNING:tensorflow:SavedModel saved prior to TF 2.5 detected when loading Keras model. Please ensure that you are saving the model with model.save() or tf.keras.models.save_model(), NOT tf.saved_model.save(). To confirm, there should be a file named "keras_metadata.pb" in the SavedModel directory.
RuntimeError Traceback (most recent call last)