data.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:loop 作者: facebookresearch 项目源码 文件源码
def loader(self, path):
        feat = np.load(path)

        txt = feat['phonemes'].astype('int64')
        txt = torch.from_numpy(txt)

        audio = feat['audio_features']
        audio = torch.from_numpy(audio)

        spkr = os.path.basename(path).split('_')[0]

        return txt, audio, spkr
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号