Audio-indexing off by one step
This commit is contained in:
parent
0061322cef
commit
1e903f5658
1 changed files with 1 additions and 1 deletions
|
|
@ -78,7 +78,7 @@ class Dataset(object):
|
||||||
if type(start_frame) == int:
|
if type(start_frame) == int:
|
||||||
start_frame_num = start_frame
|
start_frame_num = start_frame
|
||||||
else:
|
else:
|
||||||
start_frame_num = self.get_frame_id(start_frame) + 1 # 0-indexing ---> 1-indexing
|
start_frame_num = self.get_frame_id(start_frame)
|
||||||
start_idx = int(80. * (start_frame_num / float(hparams.fps)))
|
start_idx = int(80. * (start_frame_num / float(hparams.fps)))
|
||||||
|
|
||||||
end_idx = start_idx + syncnet_mel_step_size
|
end_idx = start_idx + syncnet_mel_step_size
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue