mirror of
https://github.com/storytold/storyteller-ml.git
synced 2026-10-24 08:36:10 +00:00
Update fakeyou_infer-v2.py
This commit is contained in:
@@ -158,7 +158,7 @@ def get_vc(model_path):
|
|||||||
else:
|
else:
|
||||||
net_g = SynthesizerTrnMs768NSFsid_nono(*cpt["config"])
|
net_g = SynthesizerTrnMs768NSFsid_nono(*cpt["config"])
|
||||||
del net_g.enc_q
|
del net_g.enc_q
|
||||||
print(net_g.load_state_dict(cpt["weight"], strict=False))ss
|
print(net_g.load_state_dict(cpt["weight"], strict=False))
|
||||||
net_g.eval().to(device)
|
net_g.eval().to(device)
|
||||||
if (is_half):net_g = net_g.half()
|
if (is_half):net_g = net_g.half()
|
||||||
else:net_g = net_g.float()
|
else:net_g = net_g.float()
|
||||||
|
|||||||
Reference in New Issue
Block a user