-
Notifications
You must be signed in to change notification settings - Fork 432
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
Assertion Error: pyroomacoustics.build_rir.fast_rir_builder #205
Comments
Hi @moonlightSong , thanks for reporting the error. Can you please provide the OS, python version, platform, and how you installed the package ? Thanks! |
@fakufaku Thanks for reply. compute_rir is given by:
|
Thank you very much for providing the extra information. |
In pyroomacoustics/pyroomacoustics/room.py Line 1761 in 869ebc3
at this line pyroomacoustics/pyroomacoustics/room.py Line 1848 in 869ebc3
the time is adjusted. When use room.compute_rir() directly instead of rewrite it like posted above, the code doesn't complain. In
time is not adjusted. so it seems that get_rir() is causing the problem because it didn't adjust the time. |
Sorry for coming back so late to this issue. Indeed, the code in soundsource is something left-over from the previous implementation of the Room class. |
No worries. But if there are 2 places where the rir can be obtained, it is
better that they are consistent, otherwise it is error-prone.
…On Tue, Feb 16, 2021 at 12:58 AM Robin Scheibler ***@***.***> wrote:
Sorry for coming back so late to this issue. Indeed, the code in
soundsource is something left-over from the previous implementation of the
Room class.
In recent version of pyroomacoustics, the preferred way to get the room
impulse response is via the Room class, see the doc here
<https://pyroomacoustics.readthedocs.io/en/pypi-release/pyroomacoustics.room.html#create-the-room-impulse-response>
.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#205 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIZLUVYMVE6ELZLAP23VKYDS7ICOTANCNFSM4V6FA25A>
.
|
Thank you so much. You really helped me.
|
I meet the same error when I generating the reverberation based on WHAMR! scripts. |
Hi @SilentIcyMoon
|
Hi @fakufaku RuntimeError: module compiled against API version 0xf but this version of numpy is 0xd And I further solved the above issue by changing the versions of some modules, now I share the modules' versions being used now based on my situation: I hope these information will be helpful for someone who is facing the same issue. |
@SilentIcyMoon thanks for reporting back! The version is pretty old so I am not surprised there are some problems with the compilation 😭 |
File "...\Anaconda3\lib\site-packages\pyroomacoustics\soundsource.py", line 254, in get_rir
fast_rir_builder(ir, time, alpha, visibility.astype(np.int32), Fs, fdl)
File "pyroomacoustics\build_rir.pyx", line 53, in pyroomacoustics.build_rir.fast_rir_builder
AssertionError
Hi there,
Any idea what might lead to the above error message?
The text was updated successfully, but these errors were encountered: