RVC-Project / Retrieval-based-Voice-Conversion-WebUI

Easily train a good VC model with voice data <= 10 mins!
MIT License
22.85k stars 3.43k forks source link

AMD segmentation fault (core dumped) python gui_v1.py #1503

Closed deadp closed 4 months ago

deadp commented 10 months ago

Unsure what this error means.

python gui_v1.py
/home/theuser/Downloads/RVC/RVC1006AMD_Intel/my_env/lib/python3.8/site-packages/torch/cuda/__init__.py:546: UserWarning: Can't initialize NVML
  warnings.warn("Can't initialize NVML")
2023-11-02 19:43:53.848996: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-11-02 19:43:57 | INFO | faiss.loader | Loading faiss with AVX2 support.
2023-11-02 19:43:57 | INFO | faiss.loader | Successfully loaded faiss with AVX2 support.
2023-11-02 19:43:57 | INFO | configs.config | Found GPU AMD Radeon RX 6700 XT
is_half:True, device:cuda:0
Input device: 9:Razer Seiren Mini: USB Audio (hw:2,0) (ALSA)
Output device: 34:WH-1000XM3 (JACK Audio Connection Kit)
cuda_is_available: True
2023-11-02 19:44:27 | INFO | fairseq.tasks.hubert_pretraining | current directory is /home/theuser/Downloads/RVC/RVC1006AMD_Intel
2023-11-02 19:44:27 | INFO | fairseq.tasks.hubert_pretraining | HubertPretrainingTask Config {'_name': 'hubert_pretraining', 'data': 'metadata', 'fine_tuning': False, 'labels': ['km'], 'label_dir': 'label', 'label_rate': 50.0, 'sample_rate': 16000, 'normalize': False, 'enable_padding': False, 'max_keep_size': None, 'max_sample_size': 250000, 'min_sample_size': 32000, 'single_target': False, 'random_crop': True, 'pad_audio': False}
2023-11-02 19:44:27 | INFO | fairseq.models.hubert.hubert | HubertModel Config: {'_name': 'hubert', 'label_rate': 50.0, 'extractor_mode': default, 'encoder_layers': 12, 'encoder_embed_dim': 768, 'encoder_ffn_embed_dim': 3072, 'encoder_attention_heads': 12, 'activation_fn': gelu, 'layer_type': transformer, 'dropout': 0.1, 'attention_dropout': 0.1, 'activation_dropout': 0.0, 'encoder_layerdrop': 0.05, 'dropout_input': 0.1, 'dropout_features': 0.1, 'final_dim': 256, 'untie_final_proj': True, 'layer_norm_first': False, 'conv_feature_layers': '[(512,10,5)] + [(512,3,2)] * 4 + [(512,2,2)] * 2', 'conv_bias': False, 'logit_temp': 0.1, 'target_glu': False, 'feature_grad_mult': 0.1, 'mask_length': 10, 'mask_prob': 0.8, 'mask_selection': static, 'mask_other': 0.0, 'no_mask_overlap': False, 'mask_min_space': 1, 'mask_channel_length': 10, 'mask_channel_prob': 0.0, 'mask_channel_selection': static, 'mask_channel_other': 0.0, 'no_mask_channel_overlap': False, 'mask_channel_min_space': 1, 'conv_pos': 128, 'conv_pos_groups': 16, 'latent_temp': [2.0, 0.5, 0.999995], 'skip_masked': False, 'skip_nomask': False, 'checkpoint_activations': False, 'required_seq_len_multiple': 2, 'depthwise_conv_kernel_size': 31, 'attn_type': '', 'pos_enc_type': 'abs', 'fp16': False}
[1]    219794 segmentation fault (core dumped)  python gui_v1.py

My lib versions

cat /etc/os-release && pacman -Qs rocm-device-libs && pip3 list | grep torch

NAME="Archcraft"
PRETTY_NAME="Archcraft"
ID=archcraft
ID_LIKE=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archcraft.io"
DOCUMENTATION_URL="https://wiki.archcraft.io"
SUPPORT_URL="https://www.reddit.com/r/archcraft"
BUG_REPORT_URL="https://github.com/archcraft-os/archcraft/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archcraft
local/rocm-device-libs 5.6.1-1
    ROCm Device Libraries
pytorch-lightning        1.7.7
torch                    2.0.1
torchdiffeq              0.2.3
torchmetrics             0.11.4
torchsde                 0.2.5
torchvision              0.15.2
GatienDoesStuff commented 10 months ago

Which GPU are you running ? Have you ever had torch working on any other projects ?

deadp commented 10 months ago

Hi Thanks for the response.

I'm running RX 6700 XT and yes I've had torch running fine on other projects.

GatienDoesStuff commented 10 months ago

Seems like the realtime GUI doesn't work on linux, though that's another issue entirely.

Can you try with the HSA_OVERRIDE_GFX_VERSION=10.3.0 env var ? It should allow it to work without segfaulting

github-actions[bot] commented 4 months ago

This issue was closed because it has been inactive for 15 days since being marked as stale.