-
Notifications
You must be signed in to change notification settings - Fork 672
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
Add Ray tracing method for RIR #2850
Conversation
test/torchaudio_unittest/prototype/functional/autograd_test_impl.py
Outdated
Show resolved
Hide resolved
sound_speed: float = 343, | ||
energy_thres: float = 1e-7, | ||
time_thres: float = 10, # 10s | ||
hist_bin_size: float = 0.004, # 4ms |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can also add air_absorption as the input argument.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the air_absorption
parameter be part of the more global simulate_rir_[hybrid]()
function? From what I understand in PRA it is used here https://github.com/LCAV/pyroomacoustics/blob/b3e36a6451e25bc700bc723e6d267645d43ac10f/pyroomacoustics/room.py#LL2331C2-L2331C3, i.e. it does not impact how the energy histogram is computed?
…s but needs cleaning
Summary: Revamped version of pytorch#3234 (which was also revamp of pytorch#2850) Differential Revision: D49197174
Summary: Revamped version of pytorch#3234 (which was also revamp of pytorch#2850) Differential Revision: D49197174 Pulled By: mthrok
Summary: Revamped version of pytorch#3234 (which was also revamp of pytorch#2850) Differential Revision: D49197174 Pulled By: mthrok
Summary: Revamped version of pytorch#3234 (which was also revamp of pytorch#2850) Differential Revision: D49197174 Pulled By: mthrok
Summary: Revamped version of pytorch#3234 (which was also revamp of pytorch#2850) Differential Revision: D49197174 Pulled By: mthrok
Summary: Revamped version of pytorch#3234 (which was also revamp of pytorch#2850) Differential Revision: D49197174 Pulled By: mthrok
Summary: Revamped version of pytorch#3234 (which was also revamp of pytorch#2850) Differential Revision: D49197174 Pulled By: mthrok
Summary: Revamped version of pytorch#3234 (which was also revamp of pytorch#2850) Differential Revision: D49197174 Pulled By: mthrok
Summary: Revamped version of pytorch#3234 (which was also revamp of pytorch#2850) Differential Revision: D49197174 Pulled By: mthrok
Summary: Revamped version of pytorch#3234 (which was also revamp of pytorch#2850) Differential Revision: D49197174 Pulled By: mthrok
Summary: Revamped version of pytorch#3234 (which was also revamp of pytorch#2850) Differential Revision: D49197174 Pulled By: mthrok
Summary: Revamped version of pytorch#3234 (which was also revamp of pytorch#2850) Differential Revision: D49197174 Pulled By: mthrok
Summary: Revamped version of pytorch#3234 (which was also revamp of pytorch#2850) Differential Revision: D49197174 Pulled By: mthrok
Summary: Revamped version of pytorch#3234 (which was also revamp of pytorch#2850) Differential Revision: D49197174 Pulled By: mthrok
Summary: Revamped version of pytorch#3234 (which was also revamp of pytorch#2850) Differential Revision: D49197174 Pulled By: mthrok
Summary: Revamped version of pytorch#3234 (which was also revamp of pytorch#2850) Differential Revision: D49197174 Pulled By: mthrok
Summary: Revamped version of pytorch#3234 (which was also revamp of pytorch#2850) Differential Revision: D49197174 Pulled By: mthrok
Summary: Revamped version of pytorch#3234 (which was also revamp of pytorch#2850) Differential Revision: D49197174 Pulled By: mthrok
Summary: Revamped version of pytorch#3234 (which was also revamp of pytorch#2850) Differential Revision: D49197174 Pulled By: mthrok
Summary: Revamped version of pytorch#3234 (which was also revamp of pytorch#2850) Differential Revision: D49197174 Pulled By: mthrok
Summary: Revamped version of pytorch#3234 (which was also revamp of pytorch#2850) Differential Revision: D49197174 Pulled By: mthrok
Summary: Revamped version of pytorch#3234 (which was also revamp of pytorch#2850) Differential Revision: D49197174 Pulled By: mthrok
Summary: Revamped version of pytorch#3234 (which was also revamp of pytorch#2850) Differential Revision: D49197174 Pulled By: mthrok
Summary: Revamped version of pytorch#3234 (which was also revamp of pytorch#2850) Differential Revision: D49197174 Pulled By: mthrok
Summary: Revamped version of pytorch#3234 (which was also revamp of pytorch#2850) Differential Revision: D49197174 Pulled By: mthrok
Summary: Revamped version of pytorch#3234 (which was also revamp of pytorch#2850) Differential Revision: D49197174 Pulled By: mthrok
Addressed via #3655 |
This PR adds the
ray_tracing()
helper to compute a RIR (part of #2624). The implementation is heavily based onpyroomacoustics
.Current status: support for 2D and 3D shoebox room is OK, results are very very close to those ofReady for reviewpyroomacoustics
.My C++ is weak / rusty, so any suggestion on style / perf / best practices are more than welcome.
Lots of TODOs left:Donemake autograd work properlyLeaving this as potential future work as it is not immediately needednum_rays
CC @nateanl