Spaces:
Sleeping
Sleeping
File size: 279 Bytes
5bcf511 7071ffd 5bcf511 e24bfba 5bcf511 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import torch
from numpy import finfo
from model import Tacotron2
from hparams import create_hparams
def load_model(hparams):
model = Tacotron2(hparams)
if hparams.fp16_run:
model.decoder.attention_layer.score_mask_value = finfo('float16').min
return model
|