w-okada / voice-changer

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

[ISSUE]: 'dict' object has no attribute 'append' #1016

Closed TheTrustedComputer closed 10 months ago

TheTrustedComputer commented 10 months ago

Voice Changer Version

git cloned master branch; closest version 1.5.3.17

Operational System

Arch Linux

GPU

AMD Radeon RX 5500 XT

Read carefully and check the options

Model Type

RVC

Issue Description

After clicking the "start" button in server mode, an error begins spamming the terminal output as described in the title. At the same time, there's no voice conversion. I tried to do a fresh installation of the program by cloning it to a different directory with another Anaconda environment, but the same issue persists. The screenshot below is from a new install with no changes to the settings. Here, I just clicked "start", and that's enough to show the errors. The previous versions worked fine, so there may be a regression somewhere. This only affects server operation; client mode seems not to have this problem.

Application Screenshot

Screenshot_20231123_212311

Logs on console

    Booting PHASE :__main__
    PYTHON:3.10.12 (main, Jul  5 2023, 18:54:27) [GCC 11.2.0]
    Activating the Voice Changer.
[Voice Changer] download sample catalog. samples_0003_t2.json
[Voice Changer] download sample catalog. samples_0003_o2.json
[Voice Changer] download sample catalog. samples_0003_d2.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/
    Booting PHASE :__mp_main__
    The server process is starting up.
    Booting PHASE :MMVCServerSIO
[Voice Changer] VoiceChangerManager initializing...
/home/thetrustedcomputer/.conda/envs/vcclient-dev/lib/python3.10/site-packages/torch/cuda/__init__.py:497: UserWarning: Can't initialize NVML
  warnings.warn("Can't initialize NVML")
[Voice Changer] model slot is changed -1 -> 6
................RVC
[Voice Changer] [RVCr2] Creating instance 
VoiceChangerV2 Initialized (GPU_NUM(cuda):2, mps_enabled:False, onnx_device:GPU)
[Voice Changer][RVC]: update_settings enableServerAudio:1
[Voice Changer][RVC]: update_settings serverInputDeviceId:15
[Voice Changer][RVC]: update_settings serverOutputDeviceId:15
[Voice Changer][RVC]: update_settings serverReadChunkSize:64
[Voice Changer][RVC]: update_settings serverOutputAudioGain:10
[Voice Changer][RVC]: update_settings f0Detector:rmvpe
[Voice Changer][RVC]: update_settings extraConvertSize:131072
[Voice Changer][RVC]: update_settings silentThreshold:0
[Voice Changer][RVC]: update_settings gpu:0
[Voice Changer][RVCr2] Initializing... 
gin_channels: 256 self.spk_embed_dim: 109
[Voice Changer] generate new embedder. (no embedder)
[Voice Changer] use torch contentvec Not implemented
[Voice Changer] Loading index...
Try loading... model_dir/6/added_IVF256_Flat_nprobe_1_KUM_v2.index
GENERATE INFERENCER<voice_changer.RVC.inferencer.RVCInferencerv2.RVCInferencerv2 object at 0x7f9c91ac0ac0>
GENERATE EMBEDDER<voice_changer.RVC.embedder.FairseqHubert.FairseqHubert object at 0x7f9cfda04640>
GENERATE PITCH EXTRACTOR<voice_changer.RVC.pitchExtractor.RMVPEPitchExtractor.RMVPEPitchExtractor object at 0x7f9cfda047c0>
[Voice Changer] [RVC] Initializing... done
[Voice Changer][RVC]: update_settings serverInputAudioGain:1
[Voice Changer][RVC]: update_settings serverAudioSampleRate:44100
[Voice Changer][RVC]: update_settings serverMonitorDeviceId:-1
[Voice Changer][RVC]: update_settings modelSlotIndex:1700723677006
[Voice Changer] VoiceChangerManager initializing... done.
[Voice Changer] MMVC_Rest initializing...
[Voice Changer] MMVC_Rest initializing... done.
[Voice Changer] MMVC_SocketIOApp initializing...
[Voice Changer] MMVC_SocketIOApp initializing... done.
[2023-11-23 20:56:06] connet sid : U6zr04_XtXr6oc-mAAAB
[2023-11-23 20:56:08] connet sid : 2A1oiatwoXaTdOA-AAAD
[Voice Changer] update configuration: serverAudioStated 1
[Voice Changer][RVC]: update_settings serverAudioStated:1
Devices:
  [Input]: ServerAudioDevice(kind='audioinput', index=15, name='default', hostAPI='ALSA', maxInputChannels=32, maxOutputChannels=32, default_samplerate=44100.0, available_samplerates=[]) None
  [Output]: ServerAudioDevice(kind='audiooutput', index=15, name='default', hostAPI='ALSA', maxInputChannels=32, maxOutputChannels=32, default_samplerate=44100.0, available_samplerates=[]) None
  [Monitor]: None None
Sample Rate:
  [Model]: 40000
  [Input]: 44100 -> True
  [Output]: 44100 -> True
Generated Strengths: for prev:(4096,), for cur:(4096,)
[Voice Changer] server audio performance []
                status: started:1, model_sr:40000, chunk:64
                input  : id:15, sr:44100, ch:32
                output : id:15, sr:44100, ch:32
MIOpen(HIP): Warning [SQLiteBase] Missing system database file: gfx1030_11.kdb Performance may degrade. Please follow instructions to install: https://github.com/ROCmSoftwarePlatform/MIOpen#installing-miopen-kernels-package
[Voice Changer] server audio performance []
                status: started:1, model_sr:40000, chunk:64
                input  : id:15, sr:44100, ch:32
                output : id:15, sr:44100, ch:32
[Voice Changer] server audio performance []
                status: started:1, model_sr:40000, chunk:64
                input  : id:15, sr:44100, ch:32
                output : id:15, sr:44100, ch:32
[Voice Changer] warming up... generating sola buffer.
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer] server audio performance []
                status: started:1, model_sr:40000, chunk:64
                input  : id:15, sr:44100, ch:32
                output : id:15, sr:44100, ch:32
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer] server audio performance []
                status: started:1, model_sr:40000, chunk:64
                input  : id:15, sr:44100, ch:32
                output : id:15, sr:44100, ch:32
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer] server audio performance []
                status: started:1, model_sr:40000, chunk:64
                input  : id:15, sr:44100, ch:32
                output : id:15, sr:44100, ch:32
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer][ServerDevice][audioInput_callback] ex: 'dict' object has no attribute 'append'
[Voice Changer] server audio performance []
                status: started:1, model_sr:40000, chunk:64
                input  : id:15, sr:44100, ch:32
                output : id:15, sr:44100, ch:32
omenrider commented 10 months ago

I had the same symptoms. After changing to v.1.5.3.16a, it works fine.

w-okada commented 10 months ago

It is bug. I'll fix it by next version.

w-okada commented 10 months ago

fixed. try v.1.5.3.17a

TheTrustedComputer commented 10 months ago

I can confirm that the fix is working; I'm closing the issue.