fix size mismatch for dec.conv_post.weight
This commit is contained in:
parent
78562af83d
commit
58a2cd9f68
@ -85,9 +85,12 @@ def merge(path1,path2,alpha1,sr,f0,info,name):
|
||||
opt["weight"][key] = (alpha1*(ckpt1[key].float())+(1-alpha1)*(ckpt2[key].float())).half()
|
||||
# except:
|
||||
# pdb.set_trace()
|
||||
opt["config"] = ckpt1["config"]
|
||||
'''
|
||||
if(sr=="40k"):opt["config"] = [1025, 32, 192, 192, 768, 2, 6, 3, 0, "1", [3, 7, 11], [[1, 3, 5], [1, 3, 5], [1, 3, 5]], [10, 10, 2, 2], 512, [16, 16, 4, 4,4], 109, 256, 40000]
|
||||
elif(sr=="48k"):opt["config"] = [1025, 32, 192, 192, 768, 2, 6, 3, 0, "1", [3, 7, 11], [[1, 3, 5], [1, 3, 5], [1, 3, 5]], [10,6,2,2,2], 512, [16, 16, 4, 4], 109, 256, 48000]
|
||||
elif(sr=="32k"):opt["config"] = [513, 32, 192, 192, 768, 2, 6, 3, 0, "1", [3, 7, 11], [[1, 3, 5], [1, 3, 5], [1, 3, 5]], [10, 4, 2, 2, 2], 512, [16, 16, 4, 4,4], 109, 256, 32000]
|
||||
'''
|
||||
opt["sr"]=sr
|
||||
opt["f0"]=1 if f0=="是"else 0
|
||||
opt["info"]=info
|
||||
|
Loading…
Reference in New Issue
Block a user