• AI 語音RVC
  • 我撰寫了一篇 RVC 的教學文章,歡迎大家參考

AI 語音雖然不是很新的技術,但終於有人讓訓練、推理變得更簡單了!
RVC 是近期被開源出來針對 AI 語音的工具,可以輕鬆針對人聲進行模型訓練與推理轉換。
現在建議大家放下 AI 繪圖、ChatGPT,重拾當初使用它們的那個感動!

🔗相關連結與外國網友的分享

軟體



訓練集


外國網友分享

    8 天後

    請問我的顯卡跟cpu都跟文章內一樣
    但系統顯示讀不到我的顯卡
    請問原本有另外安裝什麼sdk或cuda之類的嗎

      您好,我沒有特別安裝什麼軟體,要說跟顯示卡有關的話,有安裝 Nvidia 提供的最新版本驅動程式。

      萌芽站長 請問一下,我按照步驟訓練完畢,但是在指定資料夾看不到訓練檔
      不知道可以怎麼處裡?

        Doreen 確認 RVC-beta\weights 中沒有出現 .pth 模型檔案嗎?有沒有錯誤出現在小黑窗?如果有相關截圖或資訊可以提供一下。

          萌芽站長
          是的,RVC-beta\weights 中沒有出現 .pth 模型檔案
          我上傳小黑窗尾部給您參考,會不會是路經名稱有中文!?

            Doreen 我自己會避免用中文作為路徑,很可能會出問題,可以先改成英文試試看,另外確保路徑中不要出現空格。

            Doreen 這個很怪,訓練到一半卡住我還沒遇過,不知道會不會是 VRAM 爆了?

              萌芽站長 第二台電腦跟您是同張顯卡,CPU可以跑到16,但還是一樣跑到一半沒動靜。
              看了一下效能,GPU 0%,但是溫度卻在70度左右。

                13 天後

                宣宣hhh 您好,截圖太寬了,不太能辨識文字了,建議直接把上頭的資訊複製上來。

                  萌芽站長

                  INFO:ZundaModel:{'train': {'log_interval': 200, 'seed': 1234, 'epochs': 20000, 'learning_rate': 0.0001, 'betas': [0.8, 0.99], 'eps': 1e-09, 'batch_size': 4, 'fp16_run': True, 'lr_decay': 0.999875, 'segment_size': 12800, 'init_lr_ratio': 1, 'warmup_epochs': 0, 'c_mel': 45, 'c_kl': 1.0}, 'data': {'max_wav_value': 32768.0, 'sampling_rate': 40000, 'filter_length': 2048, 'hop_length': 400, 'win_length': 2048, 'n_mel_channels': 125, 'mel_fmin': 0.0, 'mel_fmax': None, 'training_files': './logs\ZundaModel/filelist.txt'}, 'model': {'inter_channels': 192, 'hidden_channels': 192, 'filter_channels': 768, 'n_heads': 2, 'n_layers': 6, 'kernel_size': 3, 'p_dropout': 0, 'resblock': '1', 'resblock_kernel_sizes': [3, 7, 11], 'resblock_dilation_sizes': [[1, 3, 5], [1, 3, 5], [1, 3, 5]], 'upsample_rates': [10, 10, 2, 2], 'upsample_initial_channel': 512, 'upsample_kernel_sizes': [16, 16, 4, 4], 'use_spectral_norm': False, 'gin_channels': 256, 'spk_embed_dim': 109}, 'model_dir': './logs\ZundaModel', 'experiment_dir': './logs\ZundaModel', 'save_every_epoch': 5, 'name': 'ZundaModel', 'total_epoch': 30, 'pretrainG': 'pretrained/f0G40k.pth', 'pretrainD': 'pretrained/f0D40k.pth', 'gpus': '0', 'sample_rate': '40k', 'if_f0': 1, 'if_latest': 1, 'if_cache_data_in_gpu': 0}
                  WARNING:ZundaModel:H:\RVCAI\RVC-beta\train is not a git repository, therefore hash value comparison will be ignored.
                  Traceback (most recent call last):
                  File "H:\RVCAI\RVC-beta\train_nsf_sim_cache_sid_load_pretrain.py", line 534, in <module>
                  main()
                  File "H:\RVCAI\RVC-beta\train_nsf_sim_cache_sid_load_pretrain.py", line 50, in main
                  mp.spawn(
                  File "H:\RVCAI\RVC-beta\runtime\lib\site-packages\torch\multiprocessing\spawn.py", line 239, in spawn
                  return start_processes(fn, args, nprocs, join, daemon, start_method='spawn')
                  File "H:\RVCAI\RVC-beta\runtime\lib\site-packages\torch\multiprocessing\spawn.py", line 197, in start_processes
                  while not context.join():
                  File "H:\RVCAI\RVC-beta\runtime\lib\site-packages\torch\multiprocessing\spawn.py", line 160, in join
                  raise ProcessRaisedException(msg, error_index, failed_process.pid)
                  torch.multiprocessing.spawn.ProcessRaisedException:

                  -- Process 0 terminated with the following error:
                  Traceback (most recent call last):
                  File "H:\RVCAI\RVC-beta\runtime\lib\site-packages\torch\multiprocessing\spawn.py", line 69, in _wrap
                  fn(i, *args)
                  File "H:\RVCAI\RVC-beta\train_nsf_sim_cache_sid_load_pretrain.py", line 69, in run
                  dist.init_process_group(
                  File "H:\RVCAI\RVC-beta\runtime\lib\site-packages\torch\distributed\distributed_c10d.py", line 888, in init_process_group
                  store, rank, world_size = next(rendezvous_iterator)
                  File "H:\RVCAI\RVC-beta\runtime\lib\site-packages\torch\distributed\rendezvous.py", line 245, in _env_rendezvous_handler
                  store = _create_c10d_store(master_addr, master_port, rank, world_size, timeout)
                  File "H:\RVCAI\RVC-beta\runtime\lib\site-packages\torch\distributed\rendezvous.py", line 176, in _create_c10d_store
                  return TCPStore(
                  RuntimeError: unmatched '}' in format string

                    宣宣hhh 請問是在訓練時才遇到這個問題嗎?可能是相關路徑輸入有問題造成的。若有疑問請再提供相關參數截圖或資訊。