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
Currently speed augmentation (nlpaug/augmenter/audio/speed.py) behaves counterintuitively to what user may expect. Namely, the method for get_random_factor as defined there:
results in very small number of possible speeds used, e.g. for factor=(0.9, 1.1) there will be 3 values of speeds used (0.9, 1.0, 1.1). In particular, even lower amount of audio (than user would expect) will be augmented as there 1:3 probability that we sample the value 1.0!
User expects uniform sampling from the interval given by factor, so the get_random_factor should look like:
Currently
speed
augmentation (nlpaug/augmenter/audio/speed.py
) behaves counterintuitively to what user may expect. Namely, the method forget_random_factor
as defined there:results in very small number of possible speeds used, e.g. for
factor=(0.9, 1.1)
there will be 3 values of speeds used (0.9, 1.0, 1.1). In particular, even lower amount of audio (than user would expect) will be augmented as there 1:3 probability that we sample the value 1.0!User expects uniform sampling from the interval given by
factor
, so theget_random_factor
should look like:The text was updated successfully, but these errors were encountered: