Closed johentsch closed 2 years ago
I've got the same error. When ignoring this error in numba, compute_optimal_chroma_shift
works but the tutorial gets stuck at the next step, i.e. when computing the warping path with sync_via_mrmsdtw
. Here's what it outputs at this point:
AssertionError Traceback (most recent call last)
<ipython-input-9-ed7c0e4ec178> in <module>
6 step_weights=step_weights,
7 threshold_rec=threshold_rec,
----> 8 verbose=True)
c:\Users\cleme\OneDrive\Documents\EPFL\SV MA4\DMCL\synctoolbox\synctoolbox\synctoolbox\dtw\mrmsdtw.py in sync_via_mrmsdtw(f_chroma1, f_chroma2, f_onset1, f_onset2, input_feature_rate, step_sizes, step_weights, threshold_rec, win_len_smooth, downsamp_smooth, verbose, dtw_implementation, normalize_chroma, chroma_norm_ord, chroma_norm_threshold, visualization_title)
172 # Concatenate warping paths
173 wp = build_path_from_warping_paths(warping_paths=wp_list,
--> 174 anchors=anchors)
175
176 anchors_step1 = None
c:\Users\cleme\OneDrive\Documents\EPFL\SV MA4\DMCL\synctoolbox\synctoolbox\synctoolbox\dtw\utils.py in build_path_from_warping_paths(warping_paths, anchors)
190 # consistency checks
191 assert np.array_equal(wp[:, 0], anchor1), 'First entry of warping path does not coincide with anchor point'
--> 192 assert np.array_equal(wp[:, -1], anchor2), 'Last entry of warping path does not coincide with anchor point'
193
194 if path is None:
AssertionError: Last entry of warping path does not coincide with anchor point```
Dear @johentsch @clelf
thanks for letting us know about this problem. This seems to be due to a recent numba update. As a hotfix, you may use
pip install numba==0.54.1
to install a compatible numba version. The example notebooks should then run without problems. Please let us know if you still have problems after applying this!
I'll also create a new release of synctoolbox today with an updated setup.py. We will later look into making synctoolbox compatible with newer numba versions.
Thank you for looking into this! numba 0.54.1 is not available via pip but I managed to install it using pip install https://github.com/numba/numba/archive/refs/tags/0.54.1.zip
and the notebook ran through smoothly, thanks!
P.S.: However, it requires Python<3.10 and librosa>0.9.0 P.P.S.: Got to love the sonification examples at the end of the notebook! :ok_hand:
Good to hear that things are working for you now!
I do believe that numba 0.54.1 should be available on pypi (https://pypi.org/project/numba/0.54.1/#files). Are you using a special kind of processor architecture or operating system?
It was because I was on Python 3.10
Ah, I see, thank you! We'll make sure that synctoolbox works with newer versions of python and numba in a future release.
I will close this for now, please do not hesitate to reopen in case of further problems.
Hello
Your issue has been very helpful to me.
I also used Python 3.10 version and there was the same problem.
After reading the above issue, I downgraded the Python version to 3.9 and confirmed that it works well.
Thank you for your help
Hi there,
Thanks for making this code available!
Just cloned the repo and tried to run the notebook
sync_audio_score_full.ipynb
. For cell 7 (in the section "Finding optimal shift of chroma vectors"), I'm getting an error message. Posting the complete stacktrace here. Please let me know if you require more information to address this.