You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I've experienced these two issues when using crepe and spleeter libraries together, specifically when trying to call crepe.predict method after calling separate method of spleeter.
Here is a code in Google Colab:
/usr/local/lib/python3.10/dist-packages/tensorflow/python/framework/ops.py in _check_not_finalized(self)
3321 """
3322 if self._finalized:
-> 3323 raise RuntimeError("Graph is finalized and cannot be modified.")
3324
3325 def _add_op(self, op, op_name):
RuntimeError: Graph is finalized and cannot be modified.
To avoid this, we can write the following commands instead of the last string:
import tensorflow as tf
with tf.Graph().as_default():
times1, freqs1, confidence1, activation1 = crepe.predict(audio1, srate, viterbi=True)
In this case the prediction will be performed without errors.
But if we try to do another prediction after that, for example:
with tf.Graph().as_default():
times2, freqs2, confidence2, activation2 = crepe.predict(audio2, srate, viterbi=True)
Hello,
I've experienced these two issues when using crepe and spleeter libraries together, specifically when trying to call crepe.predict method after calling separate method of spleeter.
Here is a code in Google Colab:
The output is following:
...
To avoid this, we can write the following commands instead of the last string:
In this case the prediction will be performed without errors.
But if we try to do another prediction after that, for example:
then we'll get the following error:
To avoid this, we must call predict method for both files inside the same "with" section:
But sometimes it is impossible.
The following versions were used:
The text was updated successfully, but these errors were encountered: