Kangarroar commited on
Commit
288512c
1 Parent(s): 191b469

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -32,7 +32,7 @@ logging.getLogger('numba').setLevel(logging.WARNING)
32
  project_name = "Unnamed"
33
  model_path = f'./checkpoints/Unnamed/model_ckpt_steps_192000.ckpt'
34
  config_path=f'./checkpoints/Unnamed/config.yaml'
35
- hubert_gpu=False
36
  svc_model = Svc(project_name,config_path,hubert_gpu, model_path)
37
  print('model loaded')
38
 
@@ -40,8 +40,10 @@ wav_fn='raw/cilliafinal.wav'#支持多数音频格式,无需手动转为wav
40
  demoaudio, sr = librosa.load(wav_fn)
41
  key = -8 # 音高调整,支持正负(半音)
42
  # 加速倍数
43
- hubert_gpu = True
44
  pndm_speedup = 20
45
  wav_gen='queeeeee.wav'#直接改后缀可以保存不同格式音频,如flac可无损压缩
46
  f0_tst, f0_pred, audio = run_clip(svc_model,file_path=wav_fn, key=key, acc=pndm_speedup, use_crepe=True, use_pe=True, thre=0.05,
47
- use_gt_mel=False, add_noise_step=500,project_name=project_name,out_path=wav_gen)
 
 
 
32
  project_name = "Unnamed"
33
  model_path = f'./checkpoints/Unnamed/model_ckpt_steps_192000.ckpt'
34
  config_path=f'./checkpoints/Unnamed/config.yaml'
35
+ hubert_gpu=True
36
  svc_model = Svc(project_name,config_path,hubert_gpu, model_path)
37
  print('model loaded')
38
 
 
40
  demoaudio, sr = librosa.load(wav_fn)
41
  key = -8 # 音高调整,支持正负(半音)
42
  # 加速倍数
43
+
44
  pndm_speedup = 20
45
  wav_gen='queeeeee.wav'#直接改后缀可以保存不同格式音频,如flac可无损压缩
46
  f0_tst, f0_pred, audio = run_clip(svc_model,file_path=wav_fn, key=key, acc=pndm_speedup, use_crepe=True, use_pe=True, thre=0.05,
47
+ use_gt_mel=False, add_noise_step=500,project_name=project_name,out_path=wav_gen)
48
+
49
+