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
When the number of frames is 21, int(num_frames/2) evaluates to 10 and min(10,num_frames) also evaluates to 10 meaning we get random.choice(10, 10) which is invalid and throws an error. A correct if condition would look like if int(num_frames / 2) < 11 instead of if num_frames<=20. Would submitting a PR that fixes this be appropriate?
The text was updated successfully, but these errors were encountered:
I ran into an issue with
generate_blink_seq_randomly
while testing short audio inputs.For reference,
src.generate_batch.py
has the following implementation ofgenerate_blink_seq_randomly
:When the number of frames is 21,
int(num_frames/2)
evaluates to10
andmin(10,num_frames)
also evaluates to10
meaning we getrandom.choice(10, 10)
which is invalid and throws an error. A correct if condition would look likeif int(num_frames / 2) < 11
instead ofif num_frames<=20
. Would submitting a PR that fixes this be appropriate?The text was updated successfully, but these errors were encountered: