Skip to content

Pytorch implementation of LearnableUpsamplingLayer (NaturalSpeech, Tan et al., 2022)

Notifications You must be signed in to change notification settings

Joshua-1995/LearnableUpsamplingLayer-Pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

LearnableUpsamplingLayer-Pytorch

Pytorch implementation of LearnableUpsamplingLayer (NaturalSpeech, Tan et al., 2022)


Usage

'''
y : phoneme hidden sequence [N, C, T]
duration_pred : phoneme duration [N, T]
src_mask : mask of phoneme hidden sequence [N, 1, T]

'''

from model import LearnableUpsamplingLayer

lu = LearnableUpsamplingLayer(in_channels, out_channels)
y, mel_mask = lu(y, duration_pred, src_mask) 

About

Pytorch implementation of LearnableUpsamplingLayer (NaturalSpeech, Tan et al., 2022)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages