#MODEL UPLOADING ERROR.
1 messages · Page 1 of 1 (latest)
show a screenshot of the error, of your wokada, and also the model downlload link
Now it appears but when i start the voice changer, in my terminal it gives error like The following operation failed in the TorchScript interpreter.
Traceback of TorchScript (most recent call last):
RuntimeError: Expected size for first two dimensions of batch2 tensor to be: [1, 256] but got: [1, 768].
Traceback (most recent call last):
File "voice_changer\VoiceChangerManager.py", line 212, in change_voice
audio, vol, perf = self.vc.on_request(receivedData)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "torch\utils_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "voice_changer\VoiceChangerV2.py", line 162, in on_request
result, vol = self.process_audio(audio_in)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "voice_changer\VoiceChangerV2.py", line 126, in process_audio
audio, vol = self.vcmodel.inference(audio_in)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "voice_changer\RVC\RVCr2.py", line 239, in inference
self.pipeline.exec(
File "voice_changer\RVC\pipeline\Pipeline.py", line 235, in exec
out_audio = self.inferencer.infer(feats, p_len, pitch, pitchf, sid, skip_head, return_length, formant_length).float()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "voice_changer\RVC\inferencer\RVCInferencerv2.py", line 60, in infer
res = self.model.infer(
^^^^^^^^^^^^^^^^^
RuntimeError: The following operation failed in the TorchScript interpreter.
Traceback of TorchScript (most recent call last):
Here is my model link https://drive.google.com/file/d/1JocWG2A6KVUz6O9GgqXi_9o2klT4GJGl/view?usp=drive_link
!give-media-perms 1h @sudden bone
show also a screenshot of what voice changer you're using
you could be using a 1 yeard old version got off youtube
the files seem weird, it contains no .pth and has other useless files
you deffo are using something which is years old off youtube
I have used https://huggingface.co/Shadicti/deiteris-Fork/blob/main/voice-changer-windows-nvidia-b2332.zip this version
yup that's right then, i guess you read https://rentry.co/forkvoicechangerguide
did you make that model? or did u find it randomly?
if you made it, what program did u use?
I'm using safetensors file instead pth. In statting i run pth but the model does not appear in w-okada
I made
Rvc webui official local host
so, you mean rvc mainline?
https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/RVC1006Nvidia.7z This is the project i ran it
yup we commonly call that mainline since there's also other rvc forks
Oh
I see, wokada deiteris fork supports safetensors too iirc
did you upload only the safetensors and added index in wokada?
you don't need the other files for inference
Yeah.i uploaded safetensor and index. But actually in my training folder there's pth file too but i didn't use it
did u use tensorboard to train the model?
i'm not aware of a safetensors option for rvc mainline training tbh, it sounds weird
No what's that
Last update: Dec 24, 2024
The main reason to run safetensors is, i get this error while running pth file, Traceback (most recent call last):
File "restapi\MMVC_Rest_Fileuploader.py", line 67, in post_load_model
File "voice_changer\VoiceChangerManager.py", line 118, in load_model
slotInfo = RVCModelSlotGenerator.load_model(params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "voice_changer\RVC\RVCModelSlotGenerator.py", line 42, in load_model
slotInfo = cls._setInfoByPytorch(modelPath, slotInfo)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "voice_changer\RVC\RVCModelSlotGenerator.py", line 58, in _setInfoByPytorch
config_len = len(cpt["config"])
~~~^^^^^^^^^^
KeyError: 'config'
which pth did u use?
G_xxxx.pth is a generator weight in RVC
So i have to use D file?
D_xxxx.pth is a discriminator weight
Same happens
neither is a voice model
Lol
this is an index (usually generated at the end of the training) and a bunch of voice models saved every 20 epochs during training
In my logs, i can see only multiple G,D files that are saved in every 40 epoch
that's okay
I guess you did not check the box to save the model together with D/G saves
I see smiley_e1000 in weight folder
okay, so that's the final 1000 epoch model which is likely trash
I checked to save every epoch at wright
Hain 🙄
Rvc Web UI mainline
saves only one copy of D/G weights
saves the voice model at every save epoch together with D/G
so check assets/weights
if you did not check tensorboard for the best epoch and there's only one copy, it is most likely overtrained and not the best