CelebChat / rtvc /encoder /data_objects /utterance_batch.py
lhzstar
initial commits
6bc94ac
raw
history blame
342 Bytes
from pathlib import Path
import numpy as np
from typing import List
from encoder.data_objects.utterance import Utterance
class UtteranceBatch:
def __init__(self, utterance_path: List[Path], n_frames: int):
self.utterance = Utterance(utterance_path, None)
self.data = np.array(self.utterance.random_partial(n_frames)[0])