w-okada / voice-changer

リアルタイムボイスチェンジャー Realtime Voice Changer
Other
15.27k stars 1.64k forks source link

Help with gpu (amd) #1208

Open BorbTheBird opened 1 month ago

BorbTheBird commented 1 month ago

Voice Changer Version

MMVCServerSIO_win_onnxdirectML-cuda_v.1.5.3.18a

Operational System

Win 11

GPU

Radeon RX 7800 XT

Read carefully and check the options

Model Type

RVC

Issue Description

Ive tried changing gpu to gpu1 but it continues to use the integrated gpu

Application Screenshot

image image

image

Logs on console

D:\ais\rvcvc\MMVCServerSIO_win_onnxdirectML-cuda_v.1.5.3.18a\MMVCServerSIO>MMVCServerSIO.exe -p 18888 --https false --content_vec_500 pretrain/checkpoint_best_legacy_500.pt --content_vec_500_onnx pretrain/content_vec_500.onnx --content_vec_500_onnx_on true --hubert_base pretrain/hubert_base.pt --hubert_base_jp pretrain/rinna_hubert_base_jp.pt --hubert_soft pretrain/hubert/hubert-soft-0d54a1f4.pt --nsf_hifigan pretrain/nsf_hifigan/model --crepe_onnx_full pretrain/crepe_onnx_full.onnx --crepe_onnx_tiny pretrain/crepe_onnx_tiny.onnx --rmvpe pretrain/rmvpe.pt --model_dir model_dir --samples samples.json Booting PHASE :main PYTHON:3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] Activating the Voice Changer. [Voice Changer] download sample catalog. samples_0004_t.json [Voice Changer] download sample catalog. samples_0004_o.json [Voice Changer] download sample catalog. samples_0004_d.json [Voice Changer] model_dir is already exists. skip download samples. Internal_Port:18888 protocol: HTTP


Please open the following URL in your browser.
http://<IP>:<PORT>/
In many cases, it will launch when you access any of the following URLs.
http://127.0.0.1:18888/

[VCClient] Access http://127.0.0.1:18888/ [VCClient] wait web server...0 http://127.0.0.1:18888/ [VCClient] wait web server...10 http://127.0.0.1:18888/ [VCClient] wait web server...20 http://127.0.0.1:18888/ [Voice Changer] generate new embedder. (no embedder) [Voice Changer] Loading index... [Voice Changer] Index file is not found [VCClient] wait web server...30 http://127.0.0.1:18888/ [VCClient] wait web server... done 200 [2024-05-17 20:21:01] connet sid : H0fz8xM_tQnhUo8QAAAC [2024-05-17 20:21:01] connet sid : w6zU2SOLK6_0364hAAAD [Voice Changer] update configuration: gpu 2 EP Error D:\a_work\2\s\onnxruntime\core\providers\dml\dml_provider_factory.cc(132)\onnxruntime_pybind11_state.pyd!00007FFCF6412FFB: (caller: 00007FFCF6412D81) Exception(1) tid(30e4) C0262002 Specified display adapter handle is invalid. when using ['DmlExecutionProvider'] Falling back to ['CPUExecutionProvider'] and retrying. [Voice Changer] generate new embedder. (anyway) EP Error D:\a_work\2\s\onnxruntime\core\providers\dml\dml_provider_factory.cc(132)\onnxruntime_pybind11_state.pyd!00007FFCF6412FFB: (caller: 00007FFCF6412D81) Exception(2) tid(30e4) C0262002 Specified display adapter handle is invalid. when using ['DmlExecutionProvider'] Falling back to ['CPUExecutionProvider'] and retrying. [Voice Changer] Loading index... [Voice Changer] Index file is not found Pipeline has been deleted [Voice Changer] update configuration: gpu 1 [Voice Changer] generate new embedder. (anyway) [Voice Changer] Loading index... [Voice Changer] Index file is not found Pipeline has been deleted

EDIT: I managed to get it using the gpu memory but it still uses cpu for processing