Spaces:
No application file
No application file
File size: 290 Bytes
6755a2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
from typing import Tuple
import numpy as np
from .clip import ClipSeq
def stat_clipseq_duration(
clipseq: ClipSeq,
) -> Tuple[np.array, np.array]:
clip_duration = [clip.duration for clip in clipseq]
(hist, bin_edges) = np.histogram(clip_duration)
return hist, bin_edges
|