BartPoint commited on
Commit
6c72a59
1 Parent(s): 00e5cd7

Update app_multi.py

Browse files
Files changed (1) hide show
  1. app_multi.py +1 -1
app_multi.py CHANGED
@@ -106,7 +106,7 @@ for model_name in multi_cfg.get('models'):
106
  if 'enc_p.emb_phone.weight' in cpt['weight']:
107
  old_shape = cpt['weight']['enc_p.emb_phone.weight'].shape
108
  new_shape = net_g.enc_p.emb_phone.weight.shape
109
- if old_shape != new_shape:
110
  print(f"Upgrading enc_p.emb_phone.weight size: {old_shape} -> {new_shape}")
111
  weight = cpt['weight']['enc_p.emb_phone.weight']
112
  upgraded_weight = torch.zeros(new_shape)
 
106
  if 'enc_p.emb_phone.weight' in cpt['weight']:
107
  old_shape = cpt['weight']['enc_p.emb_phone.weight'].shape
108
  new_shape = net_g.enc_p.emb_phone.weight.shape
109
+ if old_shape != new_shape:
110
  print(f"Upgrading enc_p.emb_phone.weight size: {old_shape} -> {new_shape}")
111
  weight = cpt['weight']['enc_p.emb_phone.weight']
112
  upgraded_weight = torch.zeros(new_shape)