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
This was found with a 1024 sampling rate, and found a significant sped up by lowering from 1024. The number of calls for firwin is significant. Its possible there are some optimizations that can be made here, otherwise, live dataset generation is not practical with its inefficiencies at relatively small sampling rates.
Note: Found the same issue with NewWideband, but haven't profiled it.
How to Reproduce the Bug
metadata=NarrowbandMetadata(
num_iq_samples_dataset=4096,
sample_rate=1024,
fft_size=2048,
impairment_level=2,
snr_db_min=0,
snr_db_max=100,
class_list=target_mods,
signal_duration_percent_min=100,
num_samples=None, # infinite
),
dataset=NewNarrowband(metadata)
# inside of some getitem method in a torch datasetdata, meta=next(dataset)
...
The text was updated successfully, but these errors were encountered:
Thanks for reporting this. Known issue for us and something we are working on. If you have separate breakouts for narrowband vs wideband profiling I'd be interested to see that. Our internal profiling showed that wideband is the problem with narrowband being less so. The problem comes down to the fact that for each signal generated it needs to be resampled to the appropriate bandwidth which is an expensive operation it an of itself, especially for small bandwidths, and also because we recompute the weights for the resampling PFB each time. I've got a couple ideas on how to improve that processing which will make it into the code in the near future.
FWIW the sample rate field doesn't change how fast or slow data is processed, it is just metadata that is used internally to we can report results in "real world" terms. The dataset generation runs as fast as it can irrespective of the sample rate, it's just compute limited right now.
Version
1.0.0 (Default)
System Information
OS: Ubuntu 24
Environment: Devcontainer
Torch 2.6.0
Description
There bottleneck in generating samples from the NewNarrowband dataset found here:
This was found with a 1024 sampling rate, and found a significant sped up by lowering from 1024. The number of calls for
firwin
is significant. Its possible there are some optimizations that can be made here, otherwise, live dataset generation is not practical with its inefficiencies at relatively small sampling rates.Note: Found the same issue with NewWideband, but haven't profiled it.
How to Reproduce the Bug
The text was updated successfully, but these errors were encountered: