Fix video processor

This commit is contained in:
James Betker 2020-09-11 13:10:14 -06:00
parent 50ca17bb0a
commit 4c2ee66fe4

View File

@ -39,7 +39,7 @@ class FfmpegBackedVideoDataset(data.Dataset):
secs = it / self.frame_rate + self.start_at
mins = int(secs / 60)
hours = int(mins / 60)
secs = secs - (mins * 60)
secs = secs - (mins * 60) - (hours * 3600)
mins = mins % 60
return '%02d:%02d:%06.3f' % (hours, mins, secs)