forked from mrq/DL-Art-School
Fix video processor
This commit is contained in:
parent
50ca17bb0a
commit
4c2ee66fe4
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user