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
It will crash, because of this line: since you can't call randint(0,0).
Beyond crashing, I think there's an off-by-one error here: if the data is of size D and you ask for samples of N frames, then the range of valid start indices is [0, D-N] (including D-N), not [0, D-N).
Suggested fix: update line 139 in sample.py as such:
If your data has
n_frames
and you ask for samples that aren_frames
long:It will crash, because of this line: since you can't call
randint(0,0)
.Beyond crashing, I think there's an off-by-one error here: if the data is of size D and you ask for samples of N frames, then the range of valid start indices is [0, D-N] (including D-N), not [0, D-N).
Suggested fix: update line 139 in sample.py as such:
The text was updated successfully, but these errors were encountered: